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

org.hyperledger.fabric.protos.peer.PeerEvents Maven / Gradle / Ivy

There is a newer version: 2.2.26
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: peer/events.proto

package org.hyperledger.fabric.protos.peer;

public final class PeerEvents {
  private PeerEvents() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code protos.EventType}
   */
  public enum EventType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * REGISTER = 0;
     */
    REGISTER(0),
    /**
     * BLOCK = 1;
     */
    BLOCK(1),
    /**
     * CHAINCODE = 2;
     */
    CHAINCODE(2),
    /**
     * REJECTION = 3;
     */
    REJECTION(3),
    /**
     * FILTEREDBLOCK = 4;
     */
    FILTEREDBLOCK(4),
    UNRECOGNIZED(-1),
    ;

    /**
     * REGISTER = 0;
     */
    public static final int REGISTER_VALUE = 0;
    /**
     * BLOCK = 1;
     */
    public static final int BLOCK_VALUE = 1;
    /**
     * CHAINCODE = 2;
     */
    public static final int CHAINCODE_VALUE = 2;
    /**
     * REJECTION = 3;
     */
    public static final int REJECTION_VALUE = 3;
    /**
     * FILTEREDBLOCK = 4;
     */
    public static final int FILTEREDBLOCK_VALUE = 4;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static EventType valueOf(int value) {
      return forNumber(value);
    }

    public static EventType forNumber(int value) {
      switch (value) {
        case 0: return REGISTER;
        case 1: return BLOCK;
        case 2: return CHAINCODE;
        case 3: return REJECTION;
        case 4: return FILTEREDBLOCK;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        EventType> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public EventType findValueByNumber(int number) {
              return EventType.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return org.hyperledger.fabric.protos.peer.PeerEvents.getDescriptor().getEnumTypes().get(0);
    }

    private static final EventType[] VALUES = values();

    public static EventType valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private EventType(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:protos.EventType)
  }

  public interface FilteredBlockOrBuilder extends
      // @@protoc_insertion_point(interface_extends:protos.FilteredBlock)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional string channel_id = 1;
     */
    java.lang.String getChannelId();
    /**
     * optional string channel_id = 1;
     */
    com.google.protobuf.ByteString
        getChannelIdBytes();

    /**
     * 
     * The position in the blockchain
     * 
* * optional uint64 number = 2; */ long getNumber(); /** * repeated .protos.FilteredTransaction filtered_transactions = 4; */ java.util.List getFilteredTransactionsList(); /** * repeated .protos.FilteredTransaction filtered_transactions = 4; */ org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction getFilteredTransactions(int index); /** * repeated .protos.FilteredTransaction filtered_transactions = 4; */ int getFilteredTransactionsCount(); /** * repeated .protos.FilteredTransaction filtered_transactions = 4; */ java.util.List getFilteredTransactionsOrBuilderList(); /** * repeated .protos.FilteredTransaction filtered_transactions = 4; */ org.hyperledger.fabric.protos.peer.PeerEvents.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 { // Use FilteredBlock.newBuilder() to construct. private FilteredBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FilteredBlock() { channelId_ = ""; number_ = 0L; filteredTransactions_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private FilteredBlock( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); channelId_ = s; break; } case 16: { number_ = input.readUInt64(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { filteredTransactions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } filteredTransactions_.add( input.readMessage(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { filteredTransactions_ = java.util.Collections.unmodifiableList(filteredTransactions_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_FilteredBlock_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_FilteredBlock_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.class, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.Builder.class); } private int bitField0_; public static final int CHANNEL_ID_FIELD_NUMBER = 1; private volatile java.lang.Object channelId_; /** * optional string channel_id = 1; */ 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; } } /** * optional string channel_id = 1; */ 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_; /** *
     * The position in the blockchain
     * 
* * optional uint64 number = 2; */ public long getNumber() { return number_; } public static final int FILTERED_TRANSACTIONS_FIELD_NUMBER = 4; private java.util.List filteredTransactions_; /** * repeated .protos.FilteredTransaction filtered_transactions = 4; */ public java.util.List getFilteredTransactionsList() { return filteredTransactions_; } /** * repeated .protos.FilteredTransaction filtered_transactions = 4; */ public java.util.List getFilteredTransactionsOrBuilderList() { return filteredTransactions_; } /** * repeated .protos.FilteredTransaction filtered_transactions = 4; */ public int getFilteredTransactionsCount() { return filteredTransactions_.size(); } /** * repeated .protos.FilteredTransaction filtered_transactions = 4; */ public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction getFilteredTransactions(int index) { return filteredTransactions_.get(index); } /** * repeated .protos.FilteredTransaction filtered_transactions = 4; */ public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionOrBuilder getFilteredTransactionsOrBuilder( int index) { return filteredTransactions_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getChannelIdBytes().isEmpty()) { 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)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getChannelIdBytes().isEmpty()) { 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)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock other = (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock) obj; boolean result = true; result = result && getChannelId() .equals(other.getChannelId()); result = result && (getNumber() == other.getNumber()); result = result && getFilteredTransactionsList() .equals(other.getFilteredTransactionsList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.PeerEvents.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.PeerEvents.FilteredBlock parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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.PeerEvents.FilteredBlockOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_FilteredBlock_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_FilteredBlock_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.class, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFilteredTransactionsFieldBuilder(); } } public Builder clear() { super.clear(); channelId_ = ""; number_ = 0L; if (filteredTransactionsBuilder_ == null) { filteredTransactions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { filteredTransactionsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_FilteredBlock_descriptor; } public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.getDefaultInstance(); } public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock build() { org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock buildPartial() { org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock result = new org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.channelId_ = channelId_; result.number_ = number_; if (filteredTransactionsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { filteredTransactions_ = java.util.Collections.unmodifiableList(filteredTransactions_); bitField0_ = (bitField0_ & ~0x00000004); } result.filteredTransactions_ = filteredTransactions_; } else { result.filteredTransactions_ = filteredTransactionsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock) { return mergeFrom((org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock other) { if (other == org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.getDefaultInstance()) return this; if (!other.getChannelId().isEmpty()) { channelId_ = other.channelId_; 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_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object channelId_ = ""; /** * optional string channel_id = 1; */ 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; } } /** * optional string channel_id = 1; */ 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; } } /** * optional string channel_id = 1; */ public Builder setChannelId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } channelId_ = value; onChanged(); return this; } /** * optional string channel_id = 1; */ public Builder clearChannelId() { channelId_ = getDefaultInstance().getChannelId(); onChanged(); return this; } /** * optional string channel_id = 1; */ public Builder setChannelIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); channelId_ = value; onChanged(); return this; } private long number_ ; /** *
       * The position in the blockchain
       * 
* * optional uint64 number = 2; */ public long getNumber() { return number_; } /** *
       * The position in the blockchain
       * 
* * optional uint64 number = 2; */ public Builder setNumber(long value) { number_ = value; onChanged(); return this; } /** *
       * The position in the blockchain
       * 
* * optional uint64 number = 2; */ public Builder clearNumber() { number_ = 0L; onChanged(); return this; } private java.util.List filteredTransactions_ = java.util.Collections.emptyList(); private void ensureFilteredTransactionsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { filteredTransactions_ = new java.util.ArrayList(filteredTransactions_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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 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.PeerEvents.FilteredTransaction.Builder getFilteredTransactionsBuilder( int index) { return getFilteredTransactionsFieldBuilder().getBuilder(index); } /** * repeated .protos.FilteredTransaction filtered_transactions = 4; */ public org.hyperledger.fabric.protos.peer.PeerEvents.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 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.PeerEvents.FilteredTransaction.Builder addFilteredTransactionsBuilder() { return getFilteredTransactionsFieldBuilder().addBuilder( org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction.getDefaultInstance()); } /** * repeated .protos.FilteredTransaction filtered_transactions = 4; */ public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction.Builder addFilteredTransactionsBuilder( int index) { return getFilteredTransactionsFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.peer.PeerEvents.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.PeerEvents.FilteredTransaction, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionOrBuilder> getFilteredTransactionsFieldBuilder() { if (filteredTransactionsBuilder_ == null) { filteredTransactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionOrBuilder>( filteredTransactions_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); filteredTransactions_ = null; } return filteredTransactionsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protos.FilteredBlock) } // @@protoc_insertion_point(class_scope:protos.FilteredBlock) private static final org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock(); } public static org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FilteredBlock parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FilteredBlock(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FilteredTransactionOrBuilder extends // @@protoc_insertion_point(interface_extends:protos.FilteredTransaction) com.google.protobuf.MessageOrBuilder { /** * optional string txid = 1; */ java.lang.String getTxid(); /** * optional string txid = 1; */ com.google.protobuf.ByteString getTxidBytes(); /** * optional .common.HeaderType type = 2; */ int getTypeValue(); /** * optional .common.HeaderType type = 2; */ org.hyperledger.fabric.protos.common.Common.HeaderType getType(); /** * optional .protos.TxValidationCode tx_validation_code = 3; */ int getTxValidationCodeValue(); /** * optional .protos.TxValidationCode tx_validation_code = 3; */ org.hyperledger.fabric.protos.peer.FabricTransaction.TxValidationCode getTxValidationCode(); /** * optional .protos.FilteredTransactionActions transaction_actions = 4; */ org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions getTransactionActions(); /** * optional .protos.FilteredTransactionActions transaction_actions = 4; */ org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActionsOrBuilder getTransactionActionsOrBuilder(); public org.hyperledger.fabric.protos.peer.PeerEvents.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 { // 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 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private FilteredTransaction( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); txid_ = s; break; } case 16: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 24: { int rawValue = input.readEnum(); txValidationCode_ = rawValue; break; } case 34: { org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.Builder subBuilder = null; if (dataCase_ == 4) { subBuilder = ((org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions) data_).toBuilder(); } data_ = input.readMessage(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions) data_); data_ = subBuilder.buildPartial(); } dataCase_ = 4; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_FilteredTransaction_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_FilteredTransaction_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction.class, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction.Builder.class); } private int dataCase_ = 0; private java.lang.Object data_; public enum DataCase implements com.google.protobuf.Internal.EnumLite { TRANSACTION_ACTIONS(4), DATA_NOT_SET(0); private final int value; private DataCase(int value) { this.value = value; } /** * @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; private volatile java.lang.Object txid_; /** * optional string txid = 1; */ 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; } } /** * optional string txid = 1; */ 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_; /** * optional .common.HeaderType type = 2; */ public int getTypeValue() { return type_; } /** * optional .common.HeaderType type = 2; */ public org.hyperledger.fabric.protos.common.Common.HeaderType getType() { org.hyperledger.fabric.protos.common.Common.HeaderType result = org.hyperledger.fabric.protos.common.Common.HeaderType.valueOf(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_; /** * optional .protos.TxValidationCode tx_validation_code = 3; */ public int getTxValidationCodeValue() { return txValidationCode_; } /** * optional .protos.TxValidationCode tx_validation_code = 3; */ public org.hyperledger.fabric.protos.peer.FabricTransaction.TxValidationCode getTxValidationCode() { org.hyperledger.fabric.protos.peer.FabricTransaction.TxValidationCode result = org.hyperledger.fabric.protos.peer.FabricTransaction.TxValidationCode.valueOf(txValidationCode_); return result == null ? org.hyperledger.fabric.protos.peer.FabricTransaction.TxValidationCode.UNRECOGNIZED : result; } public static final int TRANSACTION_ACTIONS_FIELD_NUMBER = 4; /** * optional .protos.FilteredTransactionActions transaction_actions = 4; */ public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions getTransactionActions() { if (dataCase_ == 4) { return (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions) data_; } return org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.getDefaultInstance(); } /** * optional .protos.FilteredTransactionActions transaction_actions = 4; */ public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActionsOrBuilder getTransactionActionsOrBuilder() { if (dataCase_ == 4) { return (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions) data_; } return org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTxidBytes().isEmpty()) { 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.FabricTransaction.TxValidationCode.VALID.getNumber()) { output.writeEnum(3, txValidationCode_); } if (dataCase_ == 4) { output.writeMessage(4, (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions) data_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getTxidBytes().isEmpty()) { 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.FabricTransaction.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.PeerEvents.FilteredTransactionActions) data_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction other = (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction) obj; boolean result = true; result = result && getTxid() .equals(other.getTxid()); result = result && type_ == other.type_; result = result && txValidationCode_ == other.txValidationCode_; result = result && getDataCase().equals( other.getDataCase()); if (!result) return false; switch (dataCase_) { case 4: result = result && getTransactionActions() .equals(other.getTransactionActions()); break; case 0: default: } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.PeerEvents.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.PeerEvents.FilteredTransaction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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.PeerEvents.FilteredTransactionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_FilteredTransaction_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_FilteredTransaction_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction.class, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); txid_ = ""; type_ = 0; txValidationCode_ = 0; dataCase_ = 0; data_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_FilteredTransaction_descriptor; } public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction.getDefaultInstance(); } public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction build() { org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction buildPartial() { org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction result = new org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction(this); result.txid_ = txid_; result.type_ = type_; result.txValidationCode_ = txValidationCode_; if (dataCase_ == 4) { if (transactionActionsBuilder_ == null) { result.data_ = data_; } else { result.data_ = transactionActionsBuilder_.build(); } } result.dataCase_ = dataCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction) { return mergeFrom((org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction other) { if (other == org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction.getDefaultInstance()) return this; if (!other.getTxid().isEmpty()) { txid_ = other.txid_; 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; } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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 java.lang.Object txid_ = ""; /** * optional string txid = 1; */ 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; } } /** * optional string txid = 1; */ 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; } } /** * optional string txid = 1; */ public Builder setTxid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } txid_ = value; onChanged(); return this; } /** * optional string txid = 1; */ public Builder clearTxid() { txid_ = getDefaultInstance().getTxid(); onChanged(); return this; } /** * optional string txid = 1; */ public Builder setTxidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); txid_ = value; onChanged(); return this; } private int type_ = 0; /** * optional .common.HeaderType type = 2; */ public int getTypeValue() { return type_; } /** * optional .common.HeaderType type = 2; */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** * optional .common.HeaderType type = 2; */ public org.hyperledger.fabric.protos.common.Common.HeaderType getType() { org.hyperledger.fabric.protos.common.Common.HeaderType result = org.hyperledger.fabric.protos.common.Common.HeaderType.valueOf(type_); return result == null ? org.hyperledger.fabric.protos.common.Common.HeaderType.UNRECOGNIZED : result; } /** * optional .common.HeaderType type = 2; */ public Builder setType(org.hyperledger.fabric.protos.common.Common.HeaderType value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** * optional .common.HeaderType type = 2; */ public Builder clearType() { type_ = 0; onChanged(); return this; } private int txValidationCode_ = 0; /** * optional .protos.TxValidationCode tx_validation_code = 3; */ public int getTxValidationCodeValue() { return txValidationCode_; } /** * optional .protos.TxValidationCode tx_validation_code = 3; */ public Builder setTxValidationCodeValue(int value) { txValidationCode_ = value; onChanged(); return this; } /** * optional .protos.TxValidationCode tx_validation_code = 3; */ public org.hyperledger.fabric.protos.peer.FabricTransaction.TxValidationCode getTxValidationCode() { org.hyperledger.fabric.protos.peer.FabricTransaction.TxValidationCode result = org.hyperledger.fabric.protos.peer.FabricTransaction.TxValidationCode.valueOf(txValidationCode_); return result == null ? org.hyperledger.fabric.protos.peer.FabricTransaction.TxValidationCode.UNRECOGNIZED : result; } /** * optional .protos.TxValidationCode tx_validation_code = 3; */ public Builder setTxValidationCode(org.hyperledger.fabric.protos.peer.FabricTransaction.TxValidationCode value) { if (value == null) { throw new NullPointerException(); } txValidationCode_ = value.getNumber(); onChanged(); return this; } /** * optional .protos.TxValidationCode tx_validation_code = 3; */ public Builder clearTxValidationCode() { txValidationCode_ = 0; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActionsOrBuilder> transactionActionsBuilder_; /** * optional .protos.FilteredTransactionActions transaction_actions = 4; */ public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions getTransactionActions() { if (transactionActionsBuilder_ == null) { if (dataCase_ == 4) { return (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions) data_; } return org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.getDefaultInstance(); } else { if (dataCase_ == 4) { return transactionActionsBuilder_.getMessage(); } return org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.getDefaultInstance(); } } /** * optional .protos.FilteredTransactionActions transaction_actions = 4; */ public Builder setTransactionActions(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions value) { if (transactionActionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); } else { transactionActionsBuilder_.setMessage(value); } dataCase_ = 4; return this; } /** * optional .protos.FilteredTransactionActions transaction_actions = 4; */ public Builder setTransactionActions( org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.Builder builderForValue) { if (transactionActionsBuilder_ == null) { data_ = builderForValue.build(); onChanged(); } else { transactionActionsBuilder_.setMessage(builderForValue.build()); } dataCase_ = 4; return this; } /** * optional .protos.FilteredTransactionActions transaction_actions = 4; */ public Builder mergeTransactionActions(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions value) { if (transactionActionsBuilder_ == null) { if (dataCase_ == 4 && data_ != org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.getDefaultInstance()) { data_ = org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.newBuilder((org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions) data_) .mergeFrom(value).buildPartial(); } else { data_ = value; } onChanged(); } else { if (dataCase_ == 4) { transactionActionsBuilder_.mergeFrom(value); } transactionActionsBuilder_.setMessage(value); } dataCase_ = 4; return this; } /** * optional .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; } /** * optional .protos.FilteredTransactionActions transaction_actions = 4; */ public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.Builder getTransactionActionsBuilder() { return getTransactionActionsFieldBuilder().getBuilder(); } /** * optional .protos.FilteredTransactionActions transaction_actions = 4; */ public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActionsOrBuilder getTransactionActionsOrBuilder() { if ((dataCase_ == 4) && (transactionActionsBuilder_ != null)) { return transactionActionsBuilder_.getMessageOrBuilder(); } else { if (dataCase_ == 4) { return (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions) data_; } return org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.getDefaultInstance(); } } /** * optional .protos.FilteredTransactionActions transaction_actions = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActionsOrBuilder> getTransactionActionsFieldBuilder() { if (transactionActionsBuilder_ == null) { if (!(dataCase_ == 4)) { data_ = org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.getDefaultInstance(); } transactionActionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActionsOrBuilder>( (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions) data_, getParentForChildren(), isClean()); data_ = null; } dataCase_ = 4; onChanged();; return transactionActionsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protos.FilteredTransaction) } // @@protoc_insertion_point(class_scope:protos.FilteredTransaction) private static final org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction(); } public static org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FilteredTransaction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FilteredTransaction(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.peer.PeerEvents.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.PeerEvents.FilteredChaincodeAction getChaincodeActions(int index); /** * repeated .protos.FilteredChaincodeAction chaincode_actions = 1; */ int getChaincodeActionsCount(); /** * repeated .protos.FilteredChaincodeAction chaincode_actions = 1; */ java.util.List getChaincodeActionsOrBuilderList(); /** * repeated .protos.FilteredChaincodeAction chaincode_actions = 1; */ org.hyperledger.fabric.protos.peer.PeerEvents.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 { // 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 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private FilteredTransactionActions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { chaincodeActions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } chaincodeActions_.add( input.readMessage(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { chaincodeActions_ = java.util.Collections.unmodifiableList(chaincodeActions_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_FilteredTransactionActions_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_FilteredTransactionActions_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.class, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.Builder.class); } public static final int CHAINCODE_ACTIONS_FIELD_NUMBER = 1; private java.util.List chaincodeActions_; /** * repeated .protos.FilteredChaincodeAction chaincode_actions = 1; */ public java.util.List getChaincodeActionsList() { return chaincodeActions_; } /** * repeated .protos.FilteredChaincodeAction chaincode_actions = 1; */ public java.util.List getChaincodeActionsOrBuilderList() { return chaincodeActions_; } /** * repeated .protos.FilteredChaincodeAction chaincode_actions = 1; */ public int getChaincodeActionsCount() { return chaincodeActions_.size(); } /** * repeated .protos.FilteredChaincodeAction chaincode_actions = 1; */ public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction getChaincodeActions(int index) { return chaincodeActions_.get(index); } /** * repeated .protos.FilteredChaincodeAction chaincode_actions = 1; */ public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeActionOrBuilder getChaincodeActionsOrBuilder( int index) { return chaincodeActions_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } 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)); } } 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)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions other = (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions) obj; boolean result = true; result = result && getChaincodeActionsList() .equals(other.getChaincodeActionsList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getChaincodeActionsCount() > 0) { hash = (37 * hash) + CHAINCODE_ACTIONS_FIELD_NUMBER; hash = (53 * hash) + getChaincodeActionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.PeerEvents.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.PeerEvents.FilteredTransactionActions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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.PeerEvents.FilteredTransactionActionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_FilteredTransactionActions_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_FilteredTransactionActions_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.class, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getChaincodeActionsFieldBuilder(); } } public Builder clear() { super.clear(); if (chaincodeActionsBuilder_ == null) { chaincodeActions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { chaincodeActionsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_FilteredTransactionActions_descriptor; } public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.getDefaultInstance(); } public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions build() { org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions buildPartial() { org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions result = new org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions(this); int from_bitField0_ = bitField0_; if (chaincodeActionsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { chaincodeActions_ = java.util.Collections.unmodifiableList(chaincodeActions_); bitField0_ = (bitField0_ & ~0x00000001); } result.chaincodeActions_ = chaincodeActions_; } else { result.chaincodeActions_ = chaincodeActionsBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions) { return mergeFrom((org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions other) { if (other == org.hyperledger.fabric.protos.peer.PeerEvents.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_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List chaincodeActions_ = java.util.Collections.emptyList(); private void ensureChaincodeActionsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { chaincodeActions_ = new java.util.ArrayList(chaincodeActions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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 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.PeerEvents.FilteredChaincodeAction.Builder getChaincodeActionsBuilder( int index) { return getChaincodeActionsFieldBuilder().getBuilder(index); } /** * repeated .protos.FilteredChaincodeAction chaincode_actions = 1; */ public org.hyperledger.fabric.protos.peer.PeerEvents.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 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.PeerEvents.FilteredChaincodeAction.Builder addChaincodeActionsBuilder() { return getChaincodeActionsFieldBuilder().addBuilder( org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction.getDefaultInstance()); } /** * repeated .protos.FilteredChaincodeAction chaincode_actions = 1; */ public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction.Builder addChaincodeActionsBuilder( int index) { return getChaincodeActionsFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.peer.PeerEvents.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.PeerEvents.FilteredChaincodeAction, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeActionOrBuilder> getChaincodeActionsFieldBuilder() { if (chaincodeActionsBuilder_ == null) { chaincodeActionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeActionOrBuilder>( chaincodeActions_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); chaincodeActions_ = null; } return chaincodeActionsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protos.FilteredTransactionActions) } // @@protoc_insertion_point(class_scope:protos.FilteredTransactionActions) private static final org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions(); } public static org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FilteredTransactionActions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FilteredTransactionActions(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FilteredChaincodeActionOrBuilder extends // @@protoc_insertion_point(interface_extends:protos.FilteredChaincodeAction) com.google.protobuf.MessageOrBuilder { /** * optional .protos.ChaincodeEvent chaincode_event = 1; */ boolean hasChaincodeEvent(); /** * optional .protos.ChaincodeEvent chaincode_event = 1; */ org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent getChaincodeEvent(); /** * optional .protos.ChaincodeEvent chaincode_event = 1; */ org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.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 { // Use FilteredChaincodeAction.newBuilder() to construct. private FilteredChaincodeAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FilteredChaincodeAction() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private FilteredChaincodeAction( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.Builder subBuilder = null; if (chaincodeEvent_ != null) { subBuilder = chaincodeEvent_.toBuilder(); } chaincodeEvent_ = input.readMessage(org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(chaincodeEvent_); chaincodeEvent_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_FilteredChaincodeAction_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_FilteredChaincodeAction_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction.class, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction.Builder.class); } public static final int CHAINCODE_EVENT_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent chaincodeEvent_; /** * optional .protos.ChaincodeEvent chaincode_event = 1; */ public boolean hasChaincodeEvent() { return chaincodeEvent_ != null; } /** * optional .protos.ChaincodeEvent chaincode_event = 1; */ public org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent getChaincodeEvent() { return chaincodeEvent_ == null ? org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.getDefaultInstance() : chaincodeEvent_; } /** * optional .protos.ChaincodeEvent chaincode_event = 1; */ public org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEventOrBuilder getChaincodeEventOrBuilder() { return getChaincodeEvent(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (chaincodeEvent_ != null) { output.writeMessage(1, getChaincodeEvent()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (chaincodeEvent_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getChaincodeEvent()); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction other = (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction) obj; boolean result = true; result = result && (hasChaincodeEvent() == other.hasChaincodeEvent()); if (hasChaincodeEvent()) { result = result && getChaincodeEvent() .equals(other.getChaincodeEvent()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasChaincodeEvent()) { hash = (37 * hash) + CHAINCODE_EVENT_FIELD_NUMBER; hash = (53 * hash) + getChaincodeEvent().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.PeerEvents.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.PeerEvents.FilteredChaincodeAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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.PeerEvents.FilteredChaincodeActionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_FilteredChaincodeAction_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_FilteredChaincodeAction_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction.class, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (chaincodeEventBuilder_ == null) { chaincodeEvent_ = null; } else { chaincodeEvent_ = null; chaincodeEventBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_FilteredChaincodeAction_descriptor; } public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction.getDefaultInstance(); } public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction build() { org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction buildPartial() { org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction result = new org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction(this); if (chaincodeEventBuilder_ == null) { result.chaincodeEvent_ = chaincodeEvent_; } else { result.chaincodeEvent_ = chaincodeEventBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction) { return mergeFrom((org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction other) { if (other == org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction.getDefaultInstance()) return this; if (other.hasChaincodeEvent()) { mergeChaincodeEvent(other.getChaincodeEvent()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent chaincodeEvent_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent, org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.Builder, org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEventOrBuilder> chaincodeEventBuilder_; /** * optional .protos.ChaincodeEvent chaincode_event = 1; */ public boolean hasChaincodeEvent() { return chaincodeEventBuilder_ != null || chaincodeEvent_ != null; } /** * optional .protos.ChaincodeEvent chaincode_event = 1; */ public org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent getChaincodeEvent() { if (chaincodeEventBuilder_ == null) { return chaincodeEvent_ == null ? org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.getDefaultInstance() : chaincodeEvent_; } else { return chaincodeEventBuilder_.getMessage(); } } /** * optional .protos.ChaincodeEvent chaincode_event = 1; */ public Builder setChaincodeEvent(org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent value) { if (chaincodeEventBuilder_ == null) { if (value == null) { throw new NullPointerException(); } chaincodeEvent_ = value; onChanged(); } else { chaincodeEventBuilder_.setMessage(value); } return this; } /** * optional .protos.ChaincodeEvent chaincode_event = 1; */ public Builder setChaincodeEvent( org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.Builder builderForValue) { if (chaincodeEventBuilder_ == null) { chaincodeEvent_ = builderForValue.build(); onChanged(); } else { chaincodeEventBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .protos.ChaincodeEvent chaincode_event = 1; */ public Builder mergeChaincodeEvent(org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent value) { if (chaincodeEventBuilder_ == null) { if (chaincodeEvent_ != null) { chaincodeEvent_ = org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.newBuilder(chaincodeEvent_).mergeFrom(value).buildPartial(); } else { chaincodeEvent_ = value; } onChanged(); } else { chaincodeEventBuilder_.mergeFrom(value); } return this; } /** * optional .protos.ChaincodeEvent chaincode_event = 1; */ public Builder clearChaincodeEvent() { if (chaincodeEventBuilder_ == null) { chaincodeEvent_ = null; onChanged(); } else { chaincodeEvent_ = null; chaincodeEventBuilder_ = null; } return this; } /** * optional .protos.ChaincodeEvent chaincode_event = 1; */ public org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.Builder getChaincodeEventBuilder() { onChanged(); return getChaincodeEventFieldBuilder().getBuilder(); } /** * optional .protos.ChaincodeEvent chaincode_event = 1; */ public org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEventOrBuilder getChaincodeEventOrBuilder() { if (chaincodeEventBuilder_ != null) { return chaincodeEventBuilder_.getMessageOrBuilder(); } else { return chaincodeEvent_ == null ? org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.getDefaultInstance() : chaincodeEvent_; } } /** * optional .protos.ChaincodeEvent chaincode_event = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent, org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.Builder, org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEventOrBuilder> getChaincodeEventFieldBuilder() { if (chaincodeEventBuilder_ == null) { chaincodeEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent, org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.Builder, org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEventOrBuilder>( getChaincodeEvent(), getParentForChildren(), isClean()); chaincodeEvent_ = null; } return chaincodeEventBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protos.FilteredChaincodeAction) } // @@protoc_insertion_point(class_scope:protos.FilteredChaincodeAction) private static final org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction(); } public static org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FilteredChaincodeAction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FilteredChaincodeAction(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeliverResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:protos.DeliverResponse) com.google.protobuf.MessageOrBuilder { /** * optional .common.Status status = 1; */ int getStatusValue(); /** * optional .common.Status status = 1; */ org.hyperledger.fabric.protos.common.Common.Status getStatus(); /** * optional .common.Block block = 2; */ org.hyperledger.fabric.protos.common.Common.Block getBlock(); /** * optional .common.Block block = 2; */ org.hyperledger.fabric.protos.common.Common.BlockOrBuilder getBlockOrBuilder(); /** * optional .protos.FilteredBlock filtered_block = 3; */ org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock getFilteredBlock(); /** * optional .protos.FilteredBlock filtered_block = 3; */ org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlockOrBuilder getFilteredBlockOrBuilder(); public org.hyperledger.fabric.protos.peer.PeerEvents.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 { // Use DeliverResponse.newBuilder() to construct. private DeliverResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeliverResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private DeliverResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); typeCase_ = 1; type_ = rawValue; break; } case 18: { org.hyperledger.fabric.protos.common.Common.Block.Builder subBuilder = null; if (typeCase_ == 2) { subBuilder = ((org.hyperledger.fabric.protos.common.Common.Block) type_).toBuilder(); } type_ = input.readMessage(org.hyperledger.fabric.protos.common.Common.Block.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.common.Common.Block) type_); type_ = subBuilder.buildPartial(); } typeCase_ = 2; break; } case 26: { org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.Builder subBuilder = null; if (typeCase_ == 3) { subBuilder = ((org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock) type_).toBuilder(); } type_ = input.readMessage(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock) type_); type_ = subBuilder.buildPartial(); } typeCase_ = 3; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_DeliverResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_DeliverResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse.class, org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse.Builder.class); } private int typeCase_ = 0; private java.lang.Object type_; public enum TypeCase implements com.google.protobuf.Internal.EnumLite { STATUS(1), BLOCK(2), FILTERED_BLOCK(3), TYPE_NOT_SET(0); private final int value; private TypeCase(int value) { this.value = value; } /** * @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 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; /** * optional .common.Status status = 1; */ public int getStatusValue() { if (typeCase_ == 1) { return (java.lang.Integer) type_; } return 0; } /** * optional .common.Status status = 1; */ 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.valueOf( (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; /** * optional .common.Block block = 2; */ 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(); } /** * optional .common.Block block = 2; */ 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; /** * optional .protos.FilteredBlock filtered_block = 3; */ public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock getFilteredBlock() { if (typeCase_ == 3) { return (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock) type_; } return org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.getDefaultInstance(); } /** * optional .protos.FilteredBlock filtered_block = 3; */ public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlockOrBuilder getFilteredBlockOrBuilder() { if (typeCase_ == 3) { return (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock) type_; } return org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } 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.PeerEvents.FilteredBlock) type_); } } 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.PeerEvents.FilteredBlock) type_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse other = (org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse) obj; boolean result = true; result = result && getTypeCase().equals( other.getTypeCase()); if (!result) return false; switch (typeCase_) { case 1: result = result && getStatusValue() == other.getStatusValue(); break; case 2: result = result && getBlock() .equals(other.getBlock()); break; case 3: result = result && getFilteredBlock() .equals(other.getFilteredBlock()); break; case 0: default: } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().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 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.PeerEvents.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.PeerEvents.DeliverResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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.PeerEvents.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); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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.PeerEvents.DeliverResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_DeliverResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_DeliverResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse.class, org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); typeCase_ = 0; type_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_DeliverResponse_descriptor; } public org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse.getDefaultInstance(); } public org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse build() { org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse buildPartial() { org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse result = new org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse(this); if (typeCase_ == 1) { result.type_ = type_; } if (typeCase_ == 2) { if (blockBuilder_ == null) { result.type_ = type_; } else { result.type_ = blockBuilder_.build(); } } if (typeCase_ == 3) { if (filteredBlockBuilder_ == null) { result.type_ = type_; } else { result.type_ = filteredBlockBuilder_.build(); } } result.typeCase_ = typeCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse) { return mergeFrom((org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse other) { if (other == org.hyperledger.fabric.protos.peer.PeerEvents.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 TYPE_NOT_SET: { break; } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; } /** * optional .common.Status status = 1; */ public int getStatusValue() { if (typeCase_ == 1) { return ((java.lang.Integer) type_).intValue(); } return 0; } /** * optional .common.Status status = 1; */ public Builder setStatusValue(int value) { typeCase_ = 1; type_ = value; onChanged(); return this; } /** * optional .common.Status status = 1; */ 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.valueOf( (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; } /** * optional .common.Status status = 1; */ 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; } /** * optional .common.Status status = 1; */ 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_; /** * optional .common.Block block = 2; */ 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(); } } /** * optional .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; } /** * optional .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; } /** * optional .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); } blockBuilder_.setMessage(value); } typeCase_ = 2; return this; } /** * optional .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; } /** * optional .common.Block block = 2; */ public org.hyperledger.fabric.protos.common.Common.Block.Builder getBlockBuilder() { return getBlockFieldBuilder().getBuilder(); } /** * optional .common.Block block = 2; */ 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(); } } /** * optional .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.PeerEvents.FilteredBlock, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlockOrBuilder> filteredBlockBuilder_; /** * optional .protos.FilteredBlock filtered_block = 3; */ public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock getFilteredBlock() { if (filteredBlockBuilder_ == null) { if (typeCase_ == 3) { return (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock) type_; } return org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.getDefaultInstance(); } else { if (typeCase_ == 3) { return filteredBlockBuilder_.getMessage(); } return org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.getDefaultInstance(); } } /** * optional .protos.FilteredBlock filtered_block = 3; */ public Builder setFilteredBlock(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock value) { if (filteredBlockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { filteredBlockBuilder_.setMessage(value); } typeCase_ = 3; return this; } /** * optional .protos.FilteredBlock filtered_block = 3; */ public Builder setFilteredBlock( org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.Builder builderForValue) { if (filteredBlockBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { filteredBlockBuilder_.setMessage(builderForValue.build()); } typeCase_ = 3; return this; } /** * optional .protos.FilteredBlock filtered_block = 3; */ public Builder mergeFilteredBlock(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock value) { if (filteredBlockBuilder_ == null) { if (typeCase_ == 3 && type_ != org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.getDefaultInstance()) { type_ = org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.newBuilder((org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 3) { filteredBlockBuilder_.mergeFrom(value); } filteredBlockBuilder_.setMessage(value); } typeCase_ = 3; return this; } /** * optional .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; } /** * optional .protos.FilteredBlock filtered_block = 3; */ public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.Builder getFilteredBlockBuilder() { return getFilteredBlockFieldBuilder().getBuilder(); } /** * optional .protos.FilteredBlock filtered_block = 3; */ public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlockOrBuilder getFilteredBlockOrBuilder() { if ((typeCase_ == 3) && (filteredBlockBuilder_ != null)) { return filteredBlockBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 3) { return (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock) type_; } return org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.getDefaultInstance(); } } /** * optional .protos.FilteredBlock filtered_block = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlockOrBuilder> getFilteredBlockFieldBuilder() { if (filteredBlockBuilder_ == null) { if (!(typeCase_ == 3)) { type_ = org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.getDefaultInstance(); } filteredBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlockOrBuilder>( (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 3; onChanged();; return filteredBlockBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protos.DeliverResponse) } // @@protoc_insertion_point(class_scope:protos.DeliverResponse) private static final org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse(); } public static org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DeliverResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeliverResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChaincodeRegOrBuilder extends // @@protoc_insertion_point(interface_extends:protos.ChaincodeReg) com.google.protobuf.MessageOrBuilder { /** * optional string chaincode_id = 1; */ java.lang.String getChaincodeId(); /** * optional string chaincode_id = 1; */ com.google.protobuf.ByteString getChaincodeIdBytes(); /** * optional string event_name = 2; */ java.lang.String getEventName(); /** * optional string event_name = 2; */ com.google.protobuf.ByteString getEventNameBytes(); } /** *
   *ChaincodeReg is used for registering chaincode Interests
   *when EventType is CHAINCODE
   * 
* * Protobuf type {@code protos.ChaincodeReg} */ public static final class ChaincodeReg extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protos.ChaincodeReg) ChaincodeRegOrBuilder { // Use ChaincodeReg.newBuilder() to construct. private ChaincodeReg(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChaincodeReg() { chaincodeId_ = ""; eventName_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ChaincodeReg( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); chaincodeId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); eventName_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_ChaincodeReg_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_ChaincodeReg_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg.class, org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg.Builder.class); } public static final int CHAINCODE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object chaincodeId_; /** * optional string chaincode_id = 1; */ public java.lang.String getChaincodeId() { java.lang.Object ref = chaincodeId_; 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(); chaincodeId_ = s; return s; } } /** * optional string chaincode_id = 1; */ public com.google.protobuf.ByteString getChaincodeIdBytes() { java.lang.Object ref = chaincodeId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); chaincodeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EVENT_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object eventName_; /** * optional string event_name = 2; */ public java.lang.String getEventName() { java.lang.Object ref = eventName_; 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(); eventName_ = s; return s; } } /** * optional string event_name = 2; */ public com.google.protobuf.ByteString getEventNameBytes() { java.lang.Object ref = eventName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); eventName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getChaincodeIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, chaincodeId_); } if (!getEventNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, eventName_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getChaincodeIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, chaincodeId_); } if (!getEventNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, eventName_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg other = (org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg) obj; boolean result = true; result = result && getChaincodeId() .equals(other.getChaincodeId()); result = result && getEventName() .equals(other.getEventName()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + CHAINCODE_ID_FIELD_NUMBER; hash = (53 * hash) + getChaincodeId().hashCode(); hash = (37 * hash) + EVENT_NAME_FIELD_NUMBER; hash = (53 * hash) + getEventName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg 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.PeerEvents.ChaincodeReg parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg 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.PeerEvents.ChaincodeReg parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg 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.PeerEvents.ChaincodeReg parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg 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.PeerEvents.ChaincodeReg 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.PeerEvents.ChaincodeReg parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     *ChaincodeReg is used for registering chaincode Interests
     *when EventType is CHAINCODE
     * 
* * Protobuf type {@code protos.ChaincodeReg} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protos.ChaincodeReg) org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeRegOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_ChaincodeReg_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_ChaincodeReg_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg.class, org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); chaincodeId_ = ""; eventName_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_ChaincodeReg_descriptor; } public org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg.getDefaultInstance(); } public org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg build() { org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg buildPartial() { org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg result = new org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg(this); result.chaincodeId_ = chaincodeId_; result.eventName_ = eventName_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg) { return mergeFrom((org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg other) { if (other == org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg.getDefaultInstance()) return this; if (!other.getChaincodeId().isEmpty()) { chaincodeId_ = other.chaincodeId_; onChanged(); } if (!other.getEventName().isEmpty()) { eventName_ = other.eventName_; onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object chaincodeId_ = ""; /** * optional string chaincode_id = 1; */ public java.lang.String getChaincodeId() { java.lang.Object ref = chaincodeId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); chaincodeId_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string chaincode_id = 1; */ public com.google.protobuf.ByteString getChaincodeIdBytes() { java.lang.Object ref = chaincodeId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); chaincodeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string chaincode_id = 1; */ public Builder setChaincodeId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } chaincodeId_ = value; onChanged(); return this; } /** * optional string chaincode_id = 1; */ public Builder clearChaincodeId() { chaincodeId_ = getDefaultInstance().getChaincodeId(); onChanged(); return this; } /** * optional string chaincode_id = 1; */ public Builder setChaincodeIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); chaincodeId_ = value; onChanged(); return this; } private java.lang.Object eventName_ = ""; /** * optional string event_name = 2; */ public java.lang.String getEventName() { java.lang.Object ref = eventName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); eventName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string event_name = 2; */ public com.google.protobuf.ByteString getEventNameBytes() { java.lang.Object ref = eventName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); eventName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string event_name = 2; */ public Builder setEventName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } eventName_ = value; onChanged(); return this; } /** * optional string event_name = 2; */ public Builder clearEventName() { eventName_ = getDefaultInstance().getEventName(); onChanged(); return this; } /** * optional string event_name = 2; */ public Builder setEventNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); eventName_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protos.ChaincodeReg) } // @@protoc_insertion_point(class_scope:protos.ChaincodeReg) private static final org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg(); } public static org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ChaincodeReg parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChaincodeReg(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InterestOrBuilder extends // @@protoc_insertion_point(interface_extends:protos.Interest) com.google.protobuf.MessageOrBuilder { /** * optional .protos.EventType event_type = 1; */ int getEventTypeValue(); /** * optional .protos.EventType event_type = 1; */ org.hyperledger.fabric.protos.peer.PeerEvents.EventType getEventType(); /** * optional .protos.ChaincodeReg chaincode_reg_info = 2; */ org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg getChaincodeRegInfo(); /** * optional .protos.ChaincodeReg chaincode_reg_info = 2; */ org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeRegOrBuilder getChaincodeRegInfoOrBuilder(); /** * optional string chainID = 3; */ java.lang.String getChainID(); /** * optional string chainID = 3; */ com.google.protobuf.ByteString getChainIDBytes(); public org.hyperledger.fabric.protos.peer.PeerEvents.Interest.RegInfoCase getRegInfoCase(); } /** * Protobuf type {@code protos.Interest} */ public static final class Interest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protos.Interest) InterestOrBuilder { // Use Interest.newBuilder() to construct. private Interest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Interest() { eventType_ = 0; chainID_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Interest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); eventType_ = rawValue; break; } case 18: { org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg.Builder subBuilder = null; if (regInfoCase_ == 2) { subBuilder = ((org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg) regInfo_).toBuilder(); } regInfo_ = input.readMessage(org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg) regInfo_); regInfo_ = subBuilder.buildPartial(); } regInfoCase_ = 2; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); chainID_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_Interest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_Interest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.PeerEvents.Interest.class, org.hyperledger.fabric.protos.peer.PeerEvents.Interest.Builder.class); } private int regInfoCase_ = 0; private java.lang.Object regInfo_; public enum RegInfoCase implements com.google.protobuf.Internal.EnumLite { CHAINCODE_REG_INFO(2), REGINFO_NOT_SET(0); private final int value; private RegInfoCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static RegInfoCase valueOf(int value) { return forNumber(value); } public static RegInfoCase forNumber(int value) { switch (value) { case 2: return CHAINCODE_REG_INFO; case 0: return REGINFO_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public RegInfoCase getRegInfoCase() { return RegInfoCase.forNumber( regInfoCase_); } public static final int EVENT_TYPE_FIELD_NUMBER = 1; private int eventType_; /** * optional .protos.EventType event_type = 1; */ public int getEventTypeValue() { return eventType_; } /** * optional .protos.EventType event_type = 1; */ public org.hyperledger.fabric.protos.peer.PeerEvents.EventType getEventType() { org.hyperledger.fabric.protos.peer.PeerEvents.EventType result = org.hyperledger.fabric.protos.peer.PeerEvents.EventType.valueOf(eventType_); return result == null ? org.hyperledger.fabric.protos.peer.PeerEvents.EventType.UNRECOGNIZED : result; } public static final int CHAINCODE_REG_INFO_FIELD_NUMBER = 2; /** * optional .protos.ChaincodeReg chaincode_reg_info = 2; */ public org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg getChaincodeRegInfo() { if (regInfoCase_ == 2) { return (org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg) regInfo_; } return org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg.getDefaultInstance(); } /** * optional .protos.ChaincodeReg chaincode_reg_info = 2; */ public org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeRegOrBuilder getChaincodeRegInfoOrBuilder() { if (regInfoCase_ == 2) { return (org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg) regInfo_; } return org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg.getDefaultInstance(); } public static final int CHAINID_FIELD_NUMBER = 3; private volatile java.lang.Object chainID_; /** * optional string chainID = 3; */ public java.lang.String getChainID() { java.lang.Object ref = chainID_; 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(); chainID_ = s; return s; } } /** * optional string chainID = 3; */ public com.google.protobuf.ByteString getChainIDBytes() { java.lang.Object ref = chainID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); chainID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (eventType_ != org.hyperledger.fabric.protos.peer.PeerEvents.EventType.REGISTER.getNumber()) { output.writeEnum(1, eventType_); } if (regInfoCase_ == 2) { output.writeMessage(2, (org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg) regInfo_); } if (!getChainIDBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, chainID_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (eventType_ != org.hyperledger.fabric.protos.peer.PeerEvents.EventType.REGISTER.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, eventType_); } if (regInfoCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg) regInfo_); } if (!getChainIDBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, chainID_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.PeerEvents.Interest)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.PeerEvents.Interest other = (org.hyperledger.fabric.protos.peer.PeerEvents.Interest) obj; boolean result = true; result = result && eventType_ == other.eventType_; result = result && getChainID() .equals(other.getChainID()); result = result && getRegInfoCase().equals( other.getRegInfoCase()); if (!result) return false; switch (regInfoCase_) { case 2: result = result && getChaincodeRegInfo() .equals(other.getChaincodeRegInfo()); break; case 0: default: } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER; hash = (53 * hash) + eventType_; hash = (37 * hash) + CHAINID_FIELD_NUMBER; hash = (53 * hash) + getChainID().hashCode(); switch (regInfoCase_) { case 2: hash = (37 * hash) + CHAINCODE_REG_INFO_FIELD_NUMBER; hash = (53 * hash) + getChaincodeRegInfo().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.PeerEvents.Interest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.PeerEvents.Interest 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.PeerEvents.Interest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.PeerEvents.Interest 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.PeerEvents.Interest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.PeerEvents.Interest 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.PeerEvents.Interest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.PeerEvents.Interest 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.PeerEvents.Interest 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.PeerEvents.Interest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.PeerEvents.Interest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** * Protobuf type {@code protos.Interest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protos.Interest) org.hyperledger.fabric.protos.peer.PeerEvents.InterestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_Interest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_Interest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.PeerEvents.Interest.class, org.hyperledger.fabric.protos.peer.PeerEvents.Interest.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.PeerEvents.Interest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); eventType_ = 0; chainID_ = ""; regInfoCase_ = 0; regInfo_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_Interest_descriptor; } public org.hyperledger.fabric.protos.peer.PeerEvents.Interest getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.Interest.getDefaultInstance(); } public org.hyperledger.fabric.protos.peer.PeerEvents.Interest build() { org.hyperledger.fabric.protos.peer.PeerEvents.Interest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.peer.PeerEvents.Interest buildPartial() { org.hyperledger.fabric.protos.peer.PeerEvents.Interest result = new org.hyperledger.fabric.protos.peer.PeerEvents.Interest(this); result.eventType_ = eventType_; if (regInfoCase_ == 2) { if (chaincodeRegInfoBuilder_ == null) { result.regInfo_ = regInfo_; } else { result.regInfo_ = chaincodeRegInfoBuilder_.build(); } } result.chainID_ = chainID_; result.regInfoCase_ = regInfoCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.PeerEvents.Interest) { return mergeFrom((org.hyperledger.fabric.protos.peer.PeerEvents.Interest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.PeerEvents.Interest other) { if (other == org.hyperledger.fabric.protos.peer.PeerEvents.Interest.getDefaultInstance()) return this; if (other.eventType_ != 0) { setEventTypeValue(other.getEventTypeValue()); } if (!other.getChainID().isEmpty()) { chainID_ = other.chainID_; onChanged(); } switch (other.getRegInfoCase()) { case CHAINCODE_REG_INFO: { mergeChaincodeRegInfo(other.getChaincodeRegInfo()); break; } case REGINFO_NOT_SET: { break; } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.PeerEvents.Interest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.PeerEvents.Interest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int regInfoCase_ = 0; private java.lang.Object regInfo_; public RegInfoCase getRegInfoCase() { return RegInfoCase.forNumber( regInfoCase_); } public Builder clearRegInfo() { regInfoCase_ = 0; regInfo_ = null; onChanged(); return this; } private int eventType_ = 0; /** * optional .protos.EventType event_type = 1; */ public int getEventTypeValue() { return eventType_; } /** * optional .protos.EventType event_type = 1; */ public Builder setEventTypeValue(int value) { eventType_ = value; onChanged(); return this; } /** * optional .protos.EventType event_type = 1; */ public org.hyperledger.fabric.protos.peer.PeerEvents.EventType getEventType() { org.hyperledger.fabric.protos.peer.PeerEvents.EventType result = org.hyperledger.fabric.protos.peer.PeerEvents.EventType.valueOf(eventType_); return result == null ? org.hyperledger.fabric.protos.peer.PeerEvents.EventType.UNRECOGNIZED : result; } /** * optional .protos.EventType event_type = 1; */ public Builder setEventType(org.hyperledger.fabric.protos.peer.PeerEvents.EventType value) { if (value == null) { throw new NullPointerException(); } eventType_ = value.getNumber(); onChanged(); return this; } /** * optional .protos.EventType event_type = 1; */ public Builder clearEventType() { eventType_ = 0; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg, org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeRegOrBuilder> chaincodeRegInfoBuilder_; /** * optional .protos.ChaincodeReg chaincode_reg_info = 2; */ public org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg getChaincodeRegInfo() { if (chaincodeRegInfoBuilder_ == null) { if (regInfoCase_ == 2) { return (org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg) regInfo_; } return org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg.getDefaultInstance(); } else { if (regInfoCase_ == 2) { return chaincodeRegInfoBuilder_.getMessage(); } return org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg.getDefaultInstance(); } } /** * optional .protos.ChaincodeReg chaincode_reg_info = 2; */ public Builder setChaincodeRegInfo(org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg value) { if (chaincodeRegInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regInfo_ = value; onChanged(); } else { chaincodeRegInfoBuilder_.setMessage(value); } regInfoCase_ = 2; return this; } /** * optional .protos.ChaincodeReg chaincode_reg_info = 2; */ public Builder setChaincodeRegInfo( org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg.Builder builderForValue) { if (chaincodeRegInfoBuilder_ == null) { regInfo_ = builderForValue.build(); onChanged(); } else { chaincodeRegInfoBuilder_.setMessage(builderForValue.build()); } regInfoCase_ = 2; return this; } /** * optional .protos.ChaincodeReg chaincode_reg_info = 2; */ public Builder mergeChaincodeRegInfo(org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg value) { if (chaincodeRegInfoBuilder_ == null) { if (regInfoCase_ == 2 && regInfo_ != org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg.getDefaultInstance()) { regInfo_ = org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg.newBuilder((org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg) regInfo_) .mergeFrom(value).buildPartial(); } else { regInfo_ = value; } onChanged(); } else { if (regInfoCase_ == 2) { chaincodeRegInfoBuilder_.mergeFrom(value); } chaincodeRegInfoBuilder_.setMessage(value); } regInfoCase_ = 2; return this; } /** * optional .protos.ChaincodeReg chaincode_reg_info = 2; */ public Builder clearChaincodeRegInfo() { if (chaincodeRegInfoBuilder_ == null) { if (regInfoCase_ == 2) { regInfoCase_ = 0; regInfo_ = null; onChanged(); } } else { if (regInfoCase_ == 2) { regInfoCase_ = 0; regInfo_ = null; } chaincodeRegInfoBuilder_.clear(); } return this; } /** * optional .protos.ChaincodeReg chaincode_reg_info = 2; */ public org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg.Builder getChaincodeRegInfoBuilder() { return getChaincodeRegInfoFieldBuilder().getBuilder(); } /** * optional .protos.ChaincodeReg chaincode_reg_info = 2; */ public org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeRegOrBuilder getChaincodeRegInfoOrBuilder() { if ((regInfoCase_ == 2) && (chaincodeRegInfoBuilder_ != null)) { return chaincodeRegInfoBuilder_.getMessageOrBuilder(); } else { if (regInfoCase_ == 2) { return (org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg) regInfo_; } return org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg.getDefaultInstance(); } } /** * optional .protos.ChaincodeReg chaincode_reg_info = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg, org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeRegOrBuilder> getChaincodeRegInfoFieldBuilder() { if (chaincodeRegInfoBuilder_ == null) { if (!(regInfoCase_ == 2)) { regInfo_ = org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg.getDefaultInstance(); } chaincodeRegInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg, org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeRegOrBuilder>( (org.hyperledger.fabric.protos.peer.PeerEvents.ChaincodeReg) regInfo_, getParentForChildren(), isClean()); regInfo_ = null; } regInfoCase_ = 2; onChanged();; return chaincodeRegInfoBuilder_; } private java.lang.Object chainID_ = ""; /** * optional string chainID = 3; */ public java.lang.String getChainID() { java.lang.Object ref = chainID_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); chainID_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string chainID = 3; */ public com.google.protobuf.ByteString getChainIDBytes() { java.lang.Object ref = chainID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); chainID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string chainID = 3; */ public Builder setChainID( java.lang.String value) { if (value == null) { throw new NullPointerException(); } chainID_ = value; onChanged(); return this; } /** * optional string chainID = 3; */ public Builder clearChainID() { chainID_ = getDefaultInstance().getChainID(); onChanged(); return this; } /** * optional string chainID = 3; */ public Builder setChainIDBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); chainID_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protos.Interest) } // @@protoc_insertion_point(class_scope:protos.Interest) private static final org.hyperledger.fabric.protos.peer.PeerEvents.Interest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.PeerEvents.Interest(); } public static org.hyperledger.fabric.protos.peer.PeerEvents.Interest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Interest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Interest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.peer.PeerEvents.Interest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RegisterOrBuilder extends // @@protoc_insertion_point(interface_extends:protos.Register) com.google.protobuf.MessageOrBuilder { /** * repeated .protos.Interest events = 1; */ java.util.List getEventsList(); /** * repeated .protos.Interest events = 1; */ org.hyperledger.fabric.protos.peer.PeerEvents.Interest getEvents(int index); /** * repeated .protos.Interest events = 1; */ int getEventsCount(); /** * repeated .protos.Interest events = 1; */ java.util.List getEventsOrBuilderList(); /** * repeated .protos.Interest events = 1; */ org.hyperledger.fabric.protos.peer.PeerEvents.InterestOrBuilder getEventsOrBuilder( int index); } /** *
   *---------- consumer events ---------
   *Register is sent by consumers for registering events
   *string type - "register"
   * 
* * Protobuf type {@code protos.Register} */ public static final class Register extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protos.Register) RegisterOrBuilder { // Use Register.newBuilder() to construct. private Register(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Register() { events_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Register( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { events_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } events_.add( input.readMessage(org.hyperledger.fabric.protos.peer.PeerEvents.Interest.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { events_ = java.util.Collections.unmodifiableList(events_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_Register_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_Register_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.PeerEvents.Register.class, org.hyperledger.fabric.protos.peer.PeerEvents.Register.Builder.class); } public static final int EVENTS_FIELD_NUMBER = 1; private java.util.List events_; /** * repeated .protos.Interest events = 1; */ public java.util.List getEventsList() { return events_; } /** * repeated .protos.Interest events = 1; */ public java.util.List getEventsOrBuilderList() { return events_; } /** * repeated .protos.Interest events = 1; */ public int getEventsCount() { return events_.size(); } /** * repeated .protos.Interest events = 1; */ public org.hyperledger.fabric.protos.peer.PeerEvents.Interest getEvents(int index) { return events_.get(index); } /** * repeated .protos.Interest events = 1; */ public org.hyperledger.fabric.protos.peer.PeerEvents.InterestOrBuilder getEventsOrBuilder( int index) { return events_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < events_.size(); i++) { output.writeMessage(1, events_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < events_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, events_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.PeerEvents.Register)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.PeerEvents.Register other = (org.hyperledger.fabric.protos.peer.PeerEvents.Register) obj; boolean result = true; result = result && getEventsList() .equals(other.getEventsList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getEventsCount() > 0) { hash = (37 * hash) + EVENTS_FIELD_NUMBER; hash = (53 * hash) + getEventsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.PeerEvents.Register parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.PeerEvents.Register 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.PeerEvents.Register parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.PeerEvents.Register 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.PeerEvents.Register parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.PeerEvents.Register 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.PeerEvents.Register parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.PeerEvents.Register 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.PeerEvents.Register 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.PeerEvents.Register parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.PeerEvents.Register prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     *---------- consumer events ---------
     *Register is sent by consumers for registering events
     *string type - "register"
     * 
* * Protobuf type {@code protos.Register} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protos.Register) org.hyperledger.fabric.protos.peer.PeerEvents.RegisterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_Register_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_Register_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.PeerEvents.Register.class, org.hyperledger.fabric.protos.peer.PeerEvents.Register.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.PeerEvents.Register.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getEventsFieldBuilder(); } } public Builder clear() { super.clear(); if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { eventsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_Register_descriptor; } public org.hyperledger.fabric.protos.peer.PeerEvents.Register getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.Register.getDefaultInstance(); } public org.hyperledger.fabric.protos.peer.PeerEvents.Register build() { org.hyperledger.fabric.protos.peer.PeerEvents.Register result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.peer.PeerEvents.Register buildPartial() { org.hyperledger.fabric.protos.peer.PeerEvents.Register result = new org.hyperledger.fabric.protos.peer.PeerEvents.Register(this); int from_bitField0_ = bitField0_; if (eventsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { events_ = java.util.Collections.unmodifiableList(events_); bitField0_ = (bitField0_ & ~0x00000001); } result.events_ = events_; } else { result.events_ = eventsBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.PeerEvents.Register) { return mergeFrom((org.hyperledger.fabric.protos.peer.PeerEvents.Register)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.PeerEvents.Register other) { if (other == org.hyperledger.fabric.protos.peer.PeerEvents.Register.getDefaultInstance()) return this; if (eventsBuilder_ == null) { if (!other.events_.isEmpty()) { if (events_.isEmpty()) { events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEventsIsMutable(); events_.addAll(other.events_); } onChanged(); } } else { if (!other.events_.isEmpty()) { if (eventsBuilder_.isEmpty()) { eventsBuilder_.dispose(); eventsBuilder_ = null; events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000001); eventsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEventsFieldBuilder() : null; } else { eventsBuilder_.addAllMessages(other.events_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.PeerEvents.Register parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.PeerEvents.Register) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List events_ = java.util.Collections.emptyList(); private void ensureEventsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { events_ = new java.util.ArrayList(events_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.Interest, org.hyperledger.fabric.protos.peer.PeerEvents.Interest.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.InterestOrBuilder> eventsBuilder_; /** * repeated .protos.Interest events = 1; */ public java.util.List getEventsList() { if (eventsBuilder_ == null) { return java.util.Collections.unmodifiableList(events_); } else { return eventsBuilder_.getMessageList(); } } /** * repeated .protos.Interest events = 1; */ public int getEventsCount() { if (eventsBuilder_ == null) { return events_.size(); } else { return eventsBuilder_.getCount(); } } /** * repeated .protos.Interest events = 1; */ public org.hyperledger.fabric.protos.peer.PeerEvents.Interest getEvents(int index) { if (eventsBuilder_ == null) { return events_.get(index); } else { return eventsBuilder_.getMessage(index); } } /** * repeated .protos.Interest events = 1; */ public Builder setEvents( int index, org.hyperledger.fabric.protos.peer.PeerEvents.Interest value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.set(index, value); onChanged(); } else { eventsBuilder_.setMessage(index, value); } return this; } /** * repeated .protos.Interest events = 1; */ public Builder setEvents( int index, org.hyperledger.fabric.protos.peer.PeerEvents.Interest.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.set(index, builderForValue.build()); onChanged(); } else { eventsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protos.Interest events = 1; */ public Builder addEvents(org.hyperledger.fabric.protos.peer.PeerEvents.Interest value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.add(value); onChanged(); } else { eventsBuilder_.addMessage(value); } return this; } /** * repeated .protos.Interest events = 1; */ public Builder addEvents( int index, org.hyperledger.fabric.protos.peer.PeerEvents.Interest value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.add(index, value); onChanged(); } else { eventsBuilder_.addMessage(index, value); } return this; } /** * repeated .protos.Interest events = 1; */ public Builder addEvents( org.hyperledger.fabric.protos.peer.PeerEvents.Interest.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(builderForValue.build()); onChanged(); } else { eventsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protos.Interest events = 1; */ public Builder addEvents( int index, org.hyperledger.fabric.protos.peer.PeerEvents.Interest.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(index, builderForValue.build()); onChanged(); } else { eventsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protos.Interest events = 1; */ public Builder addAllEvents( java.lang.Iterable values) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, events_); onChanged(); } else { eventsBuilder_.addAllMessages(values); } return this; } /** * repeated .protos.Interest events = 1; */ public Builder clearEvents() { if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { eventsBuilder_.clear(); } return this; } /** * repeated .protos.Interest events = 1; */ public Builder removeEvents(int index) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.remove(index); onChanged(); } else { eventsBuilder_.remove(index); } return this; } /** * repeated .protos.Interest events = 1; */ public org.hyperledger.fabric.protos.peer.PeerEvents.Interest.Builder getEventsBuilder( int index) { return getEventsFieldBuilder().getBuilder(index); } /** * repeated .protos.Interest events = 1; */ public org.hyperledger.fabric.protos.peer.PeerEvents.InterestOrBuilder getEventsOrBuilder( int index) { if (eventsBuilder_ == null) { return events_.get(index); } else { return eventsBuilder_.getMessageOrBuilder(index); } } /** * repeated .protos.Interest events = 1; */ public java.util.List getEventsOrBuilderList() { if (eventsBuilder_ != null) { return eventsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(events_); } } /** * repeated .protos.Interest events = 1; */ public org.hyperledger.fabric.protos.peer.PeerEvents.Interest.Builder addEventsBuilder() { return getEventsFieldBuilder().addBuilder( org.hyperledger.fabric.protos.peer.PeerEvents.Interest.getDefaultInstance()); } /** * repeated .protos.Interest events = 1; */ public org.hyperledger.fabric.protos.peer.PeerEvents.Interest.Builder addEventsBuilder( int index) { return getEventsFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.peer.PeerEvents.Interest.getDefaultInstance()); } /** * repeated .protos.Interest events = 1; */ public java.util.List getEventsBuilderList() { return getEventsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.Interest, org.hyperledger.fabric.protos.peer.PeerEvents.Interest.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.InterestOrBuilder> getEventsFieldBuilder() { if (eventsBuilder_ == null) { eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.Interest, org.hyperledger.fabric.protos.peer.PeerEvents.Interest.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.InterestOrBuilder>( events_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); events_ = null; } return eventsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protos.Register) } // @@protoc_insertion_point(class_scope:protos.Register) private static final org.hyperledger.fabric.protos.peer.PeerEvents.Register DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.PeerEvents.Register(); } public static org.hyperledger.fabric.protos.peer.PeerEvents.Register getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Register parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Register(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.peer.PeerEvents.Register getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RejectionOrBuilder extends // @@protoc_insertion_point(interface_extends:protos.Rejection) com.google.protobuf.MessageOrBuilder { /** * optional .protos.Transaction tx = 1; */ boolean hasTx(); /** * optional .protos.Transaction tx = 1; */ org.hyperledger.fabric.protos.peer.FabricTransaction.Transaction getTx(); /** * optional .protos.Transaction tx = 1; */ org.hyperledger.fabric.protos.peer.FabricTransaction.TransactionOrBuilder getTxOrBuilder(); /** * optional string error_msg = 2; */ java.lang.String getErrorMsg(); /** * optional string error_msg = 2; */ com.google.protobuf.ByteString getErrorMsgBytes(); } /** *
   *Rejection is sent by consumers for erroneous transaction rejection events
   *string type - "rejection"
   * 
* * Protobuf type {@code protos.Rejection} */ public static final class Rejection extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protos.Rejection) RejectionOrBuilder { // Use Rejection.newBuilder() to construct. private Rejection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Rejection() { errorMsg_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Rejection( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { org.hyperledger.fabric.protos.peer.FabricTransaction.Transaction.Builder subBuilder = null; if (tx_ != null) { subBuilder = tx_.toBuilder(); } tx_ = input.readMessage(org.hyperledger.fabric.protos.peer.FabricTransaction.Transaction.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tx_); tx_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); errorMsg_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_Rejection_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_Rejection_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.PeerEvents.Rejection.class, org.hyperledger.fabric.protos.peer.PeerEvents.Rejection.Builder.class); } public static final int TX_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.peer.FabricTransaction.Transaction tx_; /** * optional .protos.Transaction tx = 1; */ public boolean hasTx() { return tx_ != null; } /** * optional .protos.Transaction tx = 1; */ public org.hyperledger.fabric.protos.peer.FabricTransaction.Transaction getTx() { return tx_ == null ? org.hyperledger.fabric.protos.peer.FabricTransaction.Transaction.getDefaultInstance() : tx_; } /** * optional .protos.Transaction tx = 1; */ public org.hyperledger.fabric.protos.peer.FabricTransaction.TransactionOrBuilder getTxOrBuilder() { return getTx(); } public static final int ERROR_MSG_FIELD_NUMBER = 2; private volatile java.lang.Object errorMsg_; /** * optional string error_msg = 2; */ public java.lang.String getErrorMsg() { java.lang.Object ref = errorMsg_; 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(); errorMsg_ = s; return s; } } /** * optional string error_msg = 2; */ public com.google.protobuf.ByteString getErrorMsgBytes() { java.lang.Object ref = errorMsg_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorMsg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (tx_ != null) { output.writeMessage(1, getTx()); } if (!getErrorMsgBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMsg_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (tx_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTx()); } if (!getErrorMsgBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMsg_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.PeerEvents.Rejection)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.PeerEvents.Rejection other = (org.hyperledger.fabric.protos.peer.PeerEvents.Rejection) obj; boolean result = true; result = result && (hasTx() == other.hasTx()); if (hasTx()) { result = result && getTx() .equals(other.getTx()); } result = result && getErrorMsg() .equals(other.getErrorMsg()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasTx()) { hash = (37 * hash) + TX_FIELD_NUMBER; hash = (53 * hash) + getTx().hashCode(); } hash = (37 * hash) + ERROR_MSG_FIELD_NUMBER; hash = (53 * hash) + getErrorMsg().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.PeerEvents.Rejection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.PeerEvents.Rejection 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.PeerEvents.Rejection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.PeerEvents.Rejection 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.PeerEvents.Rejection parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.PeerEvents.Rejection 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.PeerEvents.Rejection parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.PeerEvents.Rejection 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.PeerEvents.Rejection 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.PeerEvents.Rejection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.PeerEvents.Rejection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     *Rejection is sent by consumers for erroneous transaction rejection events
     *string type - "rejection"
     * 
* * Protobuf type {@code protos.Rejection} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protos.Rejection) org.hyperledger.fabric.protos.peer.PeerEvents.RejectionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_Rejection_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_Rejection_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.PeerEvents.Rejection.class, org.hyperledger.fabric.protos.peer.PeerEvents.Rejection.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.PeerEvents.Rejection.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (txBuilder_ == null) { tx_ = null; } else { tx_ = null; txBuilder_ = null; } errorMsg_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_Rejection_descriptor; } public org.hyperledger.fabric.protos.peer.PeerEvents.Rejection getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.Rejection.getDefaultInstance(); } public org.hyperledger.fabric.protos.peer.PeerEvents.Rejection build() { org.hyperledger.fabric.protos.peer.PeerEvents.Rejection result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.peer.PeerEvents.Rejection buildPartial() { org.hyperledger.fabric.protos.peer.PeerEvents.Rejection result = new org.hyperledger.fabric.protos.peer.PeerEvents.Rejection(this); if (txBuilder_ == null) { result.tx_ = tx_; } else { result.tx_ = txBuilder_.build(); } result.errorMsg_ = errorMsg_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.PeerEvents.Rejection) { return mergeFrom((org.hyperledger.fabric.protos.peer.PeerEvents.Rejection)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.PeerEvents.Rejection other) { if (other == org.hyperledger.fabric.protos.peer.PeerEvents.Rejection.getDefaultInstance()) return this; if (other.hasTx()) { mergeTx(other.getTx()); } if (!other.getErrorMsg().isEmpty()) { errorMsg_ = other.errorMsg_; onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.PeerEvents.Rejection parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.PeerEvents.Rejection) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.hyperledger.fabric.protos.peer.FabricTransaction.Transaction tx_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.FabricTransaction.Transaction, org.hyperledger.fabric.protos.peer.FabricTransaction.Transaction.Builder, org.hyperledger.fabric.protos.peer.FabricTransaction.TransactionOrBuilder> txBuilder_; /** * optional .protos.Transaction tx = 1; */ public boolean hasTx() { return txBuilder_ != null || tx_ != null; } /** * optional .protos.Transaction tx = 1; */ public org.hyperledger.fabric.protos.peer.FabricTransaction.Transaction getTx() { if (txBuilder_ == null) { return tx_ == null ? org.hyperledger.fabric.protos.peer.FabricTransaction.Transaction.getDefaultInstance() : tx_; } else { return txBuilder_.getMessage(); } } /** * optional .protos.Transaction tx = 1; */ public Builder setTx(org.hyperledger.fabric.protos.peer.FabricTransaction.Transaction value) { if (txBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tx_ = value; onChanged(); } else { txBuilder_.setMessage(value); } return this; } /** * optional .protos.Transaction tx = 1; */ public Builder setTx( org.hyperledger.fabric.protos.peer.FabricTransaction.Transaction.Builder builderForValue) { if (txBuilder_ == null) { tx_ = builderForValue.build(); onChanged(); } else { txBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .protos.Transaction tx = 1; */ public Builder mergeTx(org.hyperledger.fabric.protos.peer.FabricTransaction.Transaction value) { if (txBuilder_ == null) { if (tx_ != null) { tx_ = org.hyperledger.fabric.protos.peer.FabricTransaction.Transaction.newBuilder(tx_).mergeFrom(value).buildPartial(); } else { tx_ = value; } onChanged(); } else { txBuilder_.mergeFrom(value); } return this; } /** * optional .protos.Transaction tx = 1; */ public Builder clearTx() { if (txBuilder_ == null) { tx_ = null; onChanged(); } else { tx_ = null; txBuilder_ = null; } return this; } /** * optional .protos.Transaction tx = 1; */ public org.hyperledger.fabric.protos.peer.FabricTransaction.Transaction.Builder getTxBuilder() { onChanged(); return getTxFieldBuilder().getBuilder(); } /** * optional .protos.Transaction tx = 1; */ public org.hyperledger.fabric.protos.peer.FabricTransaction.TransactionOrBuilder getTxOrBuilder() { if (txBuilder_ != null) { return txBuilder_.getMessageOrBuilder(); } else { return tx_ == null ? org.hyperledger.fabric.protos.peer.FabricTransaction.Transaction.getDefaultInstance() : tx_; } } /** * optional .protos.Transaction tx = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.FabricTransaction.Transaction, org.hyperledger.fabric.protos.peer.FabricTransaction.Transaction.Builder, org.hyperledger.fabric.protos.peer.FabricTransaction.TransactionOrBuilder> getTxFieldBuilder() { if (txBuilder_ == null) { txBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.FabricTransaction.Transaction, org.hyperledger.fabric.protos.peer.FabricTransaction.Transaction.Builder, org.hyperledger.fabric.protos.peer.FabricTransaction.TransactionOrBuilder>( getTx(), getParentForChildren(), isClean()); tx_ = null; } return txBuilder_; } private java.lang.Object errorMsg_ = ""; /** * optional string error_msg = 2; */ public java.lang.String getErrorMsg() { java.lang.Object ref = errorMsg_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMsg_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string error_msg = 2; */ public com.google.protobuf.ByteString getErrorMsgBytes() { java.lang.Object ref = errorMsg_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorMsg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string error_msg = 2; */ public Builder setErrorMsg( java.lang.String value) { if (value == null) { throw new NullPointerException(); } errorMsg_ = value; onChanged(); return this; } /** * optional string error_msg = 2; */ public Builder clearErrorMsg() { errorMsg_ = getDefaultInstance().getErrorMsg(); onChanged(); return this; } /** * optional string error_msg = 2; */ public Builder setErrorMsgBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); errorMsg_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protos.Rejection) } // @@protoc_insertion_point(class_scope:protos.Rejection) private static final org.hyperledger.fabric.protos.peer.PeerEvents.Rejection DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.PeerEvents.Rejection(); } public static org.hyperledger.fabric.protos.peer.PeerEvents.Rejection getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Rejection parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Rejection(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.peer.PeerEvents.Rejection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UnregisterOrBuilder extends // @@protoc_insertion_point(interface_extends:protos.Unregister) com.google.protobuf.MessageOrBuilder { /** * repeated .protos.Interest events = 1; */ java.util.List getEventsList(); /** * repeated .protos.Interest events = 1; */ org.hyperledger.fabric.protos.peer.PeerEvents.Interest getEvents(int index); /** * repeated .protos.Interest events = 1; */ int getEventsCount(); /** * repeated .protos.Interest events = 1; */ java.util.List getEventsOrBuilderList(); /** * repeated .protos.Interest events = 1; */ org.hyperledger.fabric.protos.peer.PeerEvents.InterestOrBuilder getEventsOrBuilder( int index); } /** *
   *---------- producer events ---------
   * 
* * Protobuf type {@code protos.Unregister} */ public static final class Unregister extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protos.Unregister) UnregisterOrBuilder { // Use Unregister.newBuilder() to construct. private Unregister(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Unregister() { events_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Unregister( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { events_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } events_.add( input.readMessage(org.hyperledger.fabric.protos.peer.PeerEvents.Interest.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { events_ = java.util.Collections.unmodifiableList(events_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_Unregister_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_Unregister_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.PeerEvents.Unregister.class, org.hyperledger.fabric.protos.peer.PeerEvents.Unregister.Builder.class); } public static final int EVENTS_FIELD_NUMBER = 1; private java.util.List events_; /** * repeated .protos.Interest events = 1; */ public java.util.List getEventsList() { return events_; } /** * repeated .protos.Interest events = 1; */ public java.util.List getEventsOrBuilderList() { return events_; } /** * repeated .protos.Interest events = 1; */ public int getEventsCount() { return events_.size(); } /** * repeated .protos.Interest events = 1; */ public org.hyperledger.fabric.protos.peer.PeerEvents.Interest getEvents(int index) { return events_.get(index); } /** * repeated .protos.Interest events = 1; */ public org.hyperledger.fabric.protos.peer.PeerEvents.InterestOrBuilder getEventsOrBuilder( int index) { return events_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < events_.size(); i++) { output.writeMessage(1, events_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < events_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, events_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.PeerEvents.Unregister)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.PeerEvents.Unregister other = (org.hyperledger.fabric.protos.peer.PeerEvents.Unregister) obj; boolean result = true; result = result && getEventsList() .equals(other.getEventsList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getEventsCount() > 0) { hash = (37 * hash) + EVENTS_FIELD_NUMBER; hash = (53 * hash) + getEventsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.PeerEvents.Unregister parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.PeerEvents.Unregister 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.PeerEvents.Unregister parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.PeerEvents.Unregister 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.PeerEvents.Unregister parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.PeerEvents.Unregister 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.PeerEvents.Unregister parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.PeerEvents.Unregister 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.PeerEvents.Unregister 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.PeerEvents.Unregister parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.PeerEvents.Unregister prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     *---------- producer events ---------
     * 
* * Protobuf type {@code protos.Unregister} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protos.Unregister) org.hyperledger.fabric.protos.peer.PeerEvents.UnregisterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_Unregister_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_Unregister_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.PeerEvents.Unregister.class, org.hyperledger.fabric.protos.peer.PeerEvents.Unregister.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.PeerEvents.Unregister.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getEventsFieldBuilder(); } } public Builder clear() { super.clear(); if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { eventsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_Unregister_descriptor; } public org.hyperledger.fabric.protos.peer.PeerEvents.Unregister getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.Unregister.getDefaultInstance(); } public org.hyperledger.fabric.protos.peer.PeerEvents.Unregister build() { org.hyperledger.fabric.protos.peer.PeerEvents.Unregister result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.peer.PeerEvents.Unregister buildPartial() { org.hyperledger.fabric.protos.peer.PeerEvents.Unregister result = new org.hyperledger.fabric.protos.peer.PeerEvents.Unregister(this); int from_bitField0_ = bitField0_; if (eventsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { events_ = java.util.Collections.unmodifiableList(events_); bitField0_ = (bitField0_ & ~0x00000001); } result.events_ = events_; } else { result.events_ = eventsBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.PeerEvents.Unregister) { return mergeFrom((org.hyperledger.fabric.protos.peer.PeerEvents.Unregister)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.PeerEvents.Unregister other) { if (other == org.hyperledger.fabric.protos.peer.PeerEvents.Unregister.getDefaultInstance()) return this; if (eventsBuilder_ == null) { if (!other.events_.isEmpty()) { if (events_.isEmpty()) { events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEventsIsMutable(); events_.addAll(other.events_); } onChanged(); } } else { if (!other.events_.isEmpty()) { if (eventsBuilder_.isEmpty()) { eventsBuilder_.dispose(); eventsBuilder_ = null; events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000001); eventsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEventsFieldBuilder() : null; } else { eventsBuilder_.addAllMessages(other.events_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.PeerEvents.Unregister parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.PeerEvents.Unregister) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List events_ = java.util.Collections.emptyList(); private void ensureEventsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { events_ = new java.util.ArrayList(events_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.Interest, org.hyperledger.fabric.protos.peer.PeerEvents.Interest.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.InterestOrBuilder> eventsBuilder_; /** * repeated .protos.Interest events = 1; */ public java.util.List getEventsList() { if (eventsBuilder_ == null) { return java.util.Collections.unmodifiableList(events_); } else { return eventsBuilder_.getMessageList(); } } /** * repeated .protos.Interest events = 1; */ public int getEventsCount() { if (eventsBuilder_ == null) { return events_.size(); } else { return eventsBuilder_.getCount(); } } /** * repeated .protos.Interest events = 1; */ public org.hyperledger.fabric.protos.peer.PeerEvents.Interest getEvents(int index) { if (eventsBuilder_ == null) { return events_.get(index); } else { return eventsBuilder_.getMessage(index); } } /** * repeated .protos.Interest events = 1; */ public Builder setEvents( int index, org.hyperledger.fabric.protos.peer.PeerEvents.Interest value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.set(index, value); onChanged(); } else { eventsBuilder_.setMessage(index, value); } return this; } /** * repeated .protos.Interest events = 1; */ public Builder setEvents( int index, org.hyperledger.fabric.protos.peer.PeerEvents.Interest.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.set(index, builderForValue.build()); onChanged(); } else { eventsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protos.Interest events = 1; */ public Builder addEvents(org.hyperledger.fabric.protos.peer.PeerEvents.Interest value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.add(value); onChanged(); } else { eventsBuilder_.addMessage(value); } return this; } /** * repeated .protos.Interest events = 1; */ public Builder addEvents( int index, org.hyperledger.fabric.protos.peer.PeerEvents.Interest value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.add(index, value); onChanged(); } else { eventsBuilder_.addMessage(index, value); } return this; } /** * repeated .protos.Interest events = 1; */ public Builder addEvents( org.hyperledger.fabric.protos.peer.PeerEvents.Interest.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(builderForValue.build()); onChanged(); } else { eventsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protos.Interest events = 1; */ public Builder addEvents( int index, org.hyperledger.fabric.protos.peer.PeerEvents.Interest.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(index, builderForValue.build()); onChanged(); } else { eventsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protos.Interest events = 1; */ public Builder addAllEvents( java.lang.Iterable values) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, events_); onChanged(); } else { eventsBuilder_.addAllMessages(values); } return this; } /** * repeated .protos.Interest events = 1; */ public Builder clearEvents() { if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { eventsBuilder_.clear(); } return this; } /** * repeated .protos.Interest events = 1; */ public Builder removeEvents(int index) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.remove(index); onChanged(); } else { eventsBuilder_.remove(index); } return this; } /** * repeated .protos.Interest events = 1; */ public org.hyperledger.fabric.protos.peer.PeerEvents.Interest.Builder getEventsBuilder( int index) { return getEventsFieldBuilder().getBuilder(index); } /** * repeated .protos.Interest events = 1; */ public org.hyperledger.fabric.protos.peer.PeerEvents.InterestOrBuilder getEventsOrBuilder( int index) { if (eventsBuilder_ == null) { return events_.get(index); } else { return eventsBuilder_.getMessageOrBuilder(index); } } /** * repeated .protos.Interest events = 1; */ public java.util.List getEventsOrBuilderList() { if (eventsBuilder_ != null) { return eventsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(events_); } } /** * repeated .protos.Interest events = 1; */ public org.hyperledger.fabric.protos.peer.PeerEvents.Interest.Builder addEventsBuilder() { return getEventsFieldBuilder().addBuilder( org.hyperledger.fabric.protos.peer.PeerEvents.Interest.getDefaultInstance()); } /** * repeated .protos.Interest events = 1; */ public org.hyperledger.fabric.protos.peer.PeerEvents.Interest.Builder addEventsBuilder( int index) { return getEventsFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.peer.PeerEvents.Interest.getDefaultInstance()); } /** * repeated .protos.Interest events = 1; */ public java.util.List getEventsBuilderList() { return getEventsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.Interest, org.hyperledger.fabric.protos.peer.PeerEvents.Interest.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.InterestOrBuilder> getEventsFieldBuilder() { if (eventsBuilder_ == null) { eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.Interest, org.hyperledger.fabric.protos.peer.PeerEvents.Interest.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.InterestOrBuilder>( events_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); events_ = null; } return eventsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protos.Unregister) } // @@protoc_insertion_point(class_scope:protos.Unregister) private static final org.hyperledger.fabric.protos.peer.PeerEvents.Unregister DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.PeerEvents.Unregister(); } public static org.hyperledger.fabric.protos.peer.PeerEvents.Unregister getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Unregister parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Unregister(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.peer.PeerEvents.Unregister getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SignedEventOrBuilder extends // @@protoc_insertion_point(interface_extends:protos.SignedEvent) com.google.protobuf.MessageOrBuilder { /** *
     * Signature over the event bytes
     * 
* * optional bytes signature = 1; */ com.google.protobuf.ByteString getSignature(); /** *
     * Marshal of Event object
     * 
* * optional bytes eventBytes = 2; */ com.google.protobuf.ByteString getEventBytes(); } /** *
   * SignedEvent is used for any communication between consumer and producer
   * 
* * Protobuf type {@code protos.SignedEvent} */ public static final class SignedEvent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protos.SignedEvent) SignedEventOrBuilder { // Use SignedEvent.newBuilder() to construct. private SignedEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SignedEvent() { signature_ = com.google.protobuf.ByteString.EMPTY; eventBytes_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SignedEvent( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { signature_ = input.readBytes(); break; } case 18: { eventBytes_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_SignedEvent_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_SignedEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent.class, org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent.Builder.class); } public static final int SIGNATURE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString signature_; /** *
     * Signature over the event bytes
     * 
* * optional bytes signature = 1; */ public com.google.protobuf.ByteString getSignature() { return signature_; } public static final int EVENTBYTES_FIELD_NUMBER = 2; private com.google.protobuf.ByteString eventBytes_; /** *
     * Marshal of Event object
     * 
* * optional bytes eventBytes = 2; */ public com.google.protobuf.ByteString getEventBytes() { return eventBytes_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!signature_.isEmpty()) { output.writeBytes(1, signature_); } if (!eventBytes_.isEmpty()) { output.writeBytes(2, eventBytes_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!signature_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, signature_); } if (!eventBytes_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, eventBytes_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent other = (org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent) obj; boolean result = true; result = result && getSignature() .equals(other.getSignature()); result = result && getEventBytes() .equals(other.getEventBytes()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSignature().hashCode(); hash = (37 * hash) + EVENTBYTES_FIELD_NUMBER; hash = (53 * hash) + getEventBytes().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent 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.PeerEvents.SignedEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent 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.PeerEvents.SignedEvent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent 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.PeerEvents.SignedEvent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent 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.PeerEvents.SignedEvent 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.PeerEvents.SignedEvent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     * SignedEvent is used for any communication between consumer and producer
     * 
* * Protobuf type {@code protos.SignedEvent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protos.SignedEvent) org.hyperledger.fabric.protos.peer.PeerEvents.SignedEventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_SignedEvent_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_SignedEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent.class, org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); signature_ = com.google.protobuf.ByteString.EMPTY; eventBytes_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_SignedEvent_descriptor; } public org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent.getDefaultInstance(); } public org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent build() { org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent buildPartial() { org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent result = new org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent(this); result.signature_ = signature_; result.eventBytes_ = eventBytes_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent) { return mergeFrom((org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent other) { if (other == org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent.getDefaultInstance()) return this; if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { setSignature(other.getSignature()); } if (other.getEventBytes() != com.google.protobuf.ByteString.EMPTY) { setEventBytes(other.getEventBytes()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Signature over the event bytes
       * 
* * optional bytes signature = 1; */ public com.google.protobuf.ByteString getSignature() { return signature_; } /** *
       * Signature over the event bytes
       * 
* * optional bytes signature = 1; */ public Builder setSignature(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signature_ = value; onChanged(); return this; } /** *
       * Signature over the event bytes
       * 
* * optional bytes signature = 1; */ public Builder clearSignature() { signature_ = getDefaultInstance().getSignature(); onChanged(); return this; } private com.google.protobuf.ByteString eventBytes_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Marshal of Event object
       * 
* * optional bytes eventBytes = 2; */ public com.google.protobuf.ByteString getEventBytes() { return eventBytes_; } /** *
       * Marshal of Event object
       * 
* * optional bytes eventBytes = 2; */ public Builder setEventBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } eventBytes_ = value; onChanged(); return this; } /** *
       * Marshal of Event object
       * 
* * optional bytes eventBytes = 2; */ public Builder clearEventBytes() { eventBytes_ = getDefaultInstance().getEventBytes(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protos.SignedEvent) } // @@protoc_insertion_point(class_scope:protos.SignedEvent) private static final org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent(); } public static org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SignedEvent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SignedEvent(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EventOrBuilder extends // @@protoc_insertion_point(interface_extends:protos.Event) com.google.protobuf.MessageOrBuilder { /** *
     *Register consumer sent event
     * 
* * optional .protos.Register register = 1; */ org.hyperledger.fabric.protos.peer.PeerEvents.Register getRegister(); /** *
     *Register consumer sent event
     * 
* * optional .protos.Register register = 1; */ org.hyperledger.fabric.protos.peer.PeerEvents.RegisterOrBuilder getRegisterOrBuilder(); /** *
     *producer events
     * 
* * optional .common.Block block = 2; */ org.hyperledger.fabric.protos.common.Common.Block getBlock(); /** *
     *producer events
     * 
* * optional .common.Block block = 2; */ org.hyperledger.fabric.protos.common.Common.BlockOrBuilder getBlockOrBuilder(); /** * optional .protos.ChaincodeEvent chaincode_event = 3; */ org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent getChaincodeEvent(); /** * optional .protos.ChaincodeEvent chaincode_event = 3; */ org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEventOrBuilder getChaincodeEventOrBuilder(); /** * optional .protos.Rejection rejection = 4; */ org.hyperledger.fabric.protos.peer.PeerEvents.Rejection getRejection(); /** * optional .protos.Rejection rejection = 4; */ org.hyperledger.fabric.protos.peer.PeerEvents.RejectionOrBuilder getRejectionOrBuilder(); /** *
     *Unregister consumer sent events
     * 
* * optional .protos.Unregister unregister = 5; */ org.hyperledger.fabric.protos.peer.PeerEvents.Unregister getUnregister(); /** *
     *Unregister consumer sent events
     * 
* * optional .protos.Unregister unregister = 5; */ org.hyperledger.fabric.protos.peer.PeerEvents.UnregisterOrBuilder getUnregisterOrBuilder(); /** * optional .protos.FilteredBlock filtered_block = 7; */ org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock getFilteredBlock(); /** * optional .protos.FilteredBlock filtered_block = 7; */ org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlockOrBuilder getFilteredBlockOrBuilder(); /** *
     * Creator of the event, specified as a certificate chain
     * 
* * optional bytes creator = 6; */ com.google.protobuf.ByteString getCreator(); /** *
     * Timestamp of the client - used to mitigate replay attacks
     * 
* * optional .google.protobuf.Timestamp timestamp = 8; */ boolean hasTimestamp(); /** *
     * Timestamp of the client - used to mitigate replay attacks
     * 
* * optional .google.protobuf.Timestamp timestamp = 8; */ com.google.protobuf.Timestamp getTimestamp(); /** *
     * Timestamp of the client - used to mitigate replay attacks
     * 
* * optional .google.protobuf.Timestamp timestamp = 8; */ com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); /** *
     * If mutual TLS is employed, this represents
     * the hash of the client's TLS certificate
     * 
* * optional bytes tls_cert_hash = 9; */ com.google.protobuf.ByteString getTlsCertHash(); public org.hyperledger.fabric.protos.peer.PeerEvents.Event.EventCase getEventCase(); } /** *
   *Event is used by
   *  - consumers (adapters) to send Register
   *  - producer to advertise supported types and events
   * 
* * Protobuf type {@code protos.Event} */ public static final class Event extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protos.Event) EventOrBuilder { // Use Event.newBuilder() to construct. private Event(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Event() { creator_ = com.google.protobuf.ByteString.EMPTY; tlsCertHash_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Event( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { org.hyperledger.fabric.protos.peer.PeerEvents.Register.Builder subBuilder = null; if (eventCase_ == 1) { subBuilder = ((org.hyperledger.fabric.protos.peer.PeerEvents.Register) event_).toBuilder(); } event_ = input.readMessage(org.hyperledger.fabric.protos.peer.PeerEvents.Register.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.peer.PeerEvents.Register) event_); event_ = subBuilder.buildPartial(); } eventCase_ = 1; break; } case 18: { org.hyperledger.fabric.protos.common.Common.Block.Builder subBuilder = null; if (eventCase_ == 2) { subBuilder = ((org.hyperledger.fabric.protos.common.Common.Block) event_).toBuilder(); } event_ = input.readMessage(org.hyperledger.fabric.protos.common.Common.Block.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.common.Common.Block) event_); event_ = subBuilder.buildPartial(); } eventCase_ = 2; break; } case 26: { org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.Builder subBuilder = null; if (eventCase_ == 3) { subBuilder = ((org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent) event_).toBuilder(); } event_ = input.readMessage(org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent) event_); event_ = subBuilder.buildPartial(); } eventCase_ = 3; break; } case 34: { org.hyperledger.fabric.protos.peer.PeerEvents.Rejection.Builder subBuilder = null; if (eventCase_ == 4) { subBuilder = ((org.hyperledger.fabric.protos.peer.PeerEvents.Rejection) event_).toBuilder(); } event_ = input.readMessage(org.hyperledger.fabric.protos.peer.PeerEvents.Rejection.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.peer.PeerEvents.Rejection) event_); event_ = subBuilder.buildPartial(); } eventCase_ = 4; break; } case 42: { org.hyperledger.fabric.protos.peer.PeerEvents.Unregister.Builder subBuilder = null; if (eventCase_ == 5) { subBuilder = ((org.hyperledger.fabric.protos.peer.PeerEvents.Unregister) event_).toBuilder(); } event_ = input.readMessage(org.hyperledger.fabric.protos.peer.PeerEvents.Unregister.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.peer.PeerEvents.Unregister) event_); event_ = subBuilder.buildPartial(); } eventCase_ = 5; break; } case 50: { creator_ = input.readBytes(); break; } case 58: { org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.Builder subBuilder = null; if (eventCase_ == 7) { subBuilder = ((org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock) event_).toBuilder(); } event_ = input.readMessage(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock) event_); event_ = subBuilder.buildPartial(); } eventCase_ = 7; break; } case 66: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (timestamp_ != null) { subBuilder = timestamp_.toBuilder(); } timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timestamp_); timestamp_ = subBuilder.buildPartial(); } break; } case 74: { tlsCertHash_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_Event_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_Event_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.PeerEvents.Event.class, org.hyperledger.fabric.protos.peer.PeerEvents.Event.Builder.class); } private int eventCase_ = 0; private java.lang.Object event_; public enum EventCase implements com.google.protobuf.Internal.EnumLite { REGISTER(1), BLOCK(2), CHAINCODE_EVENT(3), REJECTION(4), UNREGISTER(5), FILTERED_BLOCK(7), EVENT_NOT_SET(0); private final int value; private EventCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static EventCase valueOf(int value) { return forNumber(value); } public static EventCase forNumber(int value) { switch (value) { case 1: return REGISTER; case 2: return BLOCK; case 3: return CHAINCODE_EVENT; case 4: return REJECTION; case 5: return UNREGISTER; case 7: return FILTERED_BLOCK; case 0: return EVENT_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public EventCase getEventCase() { return EventCase.forNumber( eventCase_); } public static final int REGISTER_FIELD_NUMBER = 1; /** *
     *Register consumer sent event
     * 
* * optional .protos.Register register = 1; */ public org.hyperledger.fabric.protos.peer.PeerEvents.Register getRegister() { if (eventCase_ == 1) { return (org.hyperledger.fabric.protos.peer.PeerEvents.Register) event_; } return org.hyperledger.fabric.protos.peer.PeerEvents.Register.getDefaultInstance(); } /** *
     *Register consumer sent event
     * 
* * optional .protos.Register register = 1; */ public org.hyperledger.fabric.protos.peer.PeerEvents.RegisterOrBuilder getRegisterOrBuilder() { if (eventCase_ == 1) { return (org.hyperledger.fabric.protos.peer.PeerEvents.Register) event_; } return org.hyperledger.fabric.protos.peer.PeerEvents.Register.getDefaultInstance(); } public static final int BLOCK_FIELD_NUMBER = 2; /** *
     *producer events
     * 
* * optional .common.Block block = 2; */ public org.hyperledger.fabric.protos.common.Common.Block getBlock() { if (eventCase_ == 2) { return (org.hyperledger.fabric.protos.common.Common.Block) event_; } return org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance(); } /** *
     *producer events
     * 
* * optional .common.Block block = 2; */ public org.hyperledger.fabric.protos.common.Common.BlockOrBuilder getBlockOrBuilder() { if (eventCase_ == 2) { return (org.hyperledger.fabric.protos.common.Common.Block) event_; } return org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance(); } public static final int CHAINCODE_EVENT_FIELD_NUMBER = 3; /** * optional .protos.ChaincodeEvent chaincode_event = 3; */ public org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent getChaincodeEvent() { if (eventCase_ == 3) { return (org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent) event_; } return org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.getDefaultInstance(); } /** * optional .protos.ChaincodeEvent chaincode_event = 3; */ public org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEventOrBuilder getChaincodeEventOrBuilder() { if (eventCase_ == 3) { return (org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent) event_; } return org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.getDefaultInstance(); } public static final int REJECTION_FIELD_NUMBER = 4; /** * optional .protos.Rejection rejection = 4; */ public org.hyperledger.fabric.protos.peer.PeerEvents.Rejection getRejection() { if (eventCase_ == 4) { return (org.hyperledger.fabric.protos.peer.PeerEvents.Rejection) event_; } return org.hyperledger.fabric.protos.peer.PeerEvents.Rejection.getDefaultInstance(); } /** * optional .protos.Rejection rejection = 4; */ public org.hyperledger.fabric.protos.peer.PeerEvents.RejectionOrBuilder getRejectionOrBuilder() { if (eventCase_ == 4) { return (org.hyperledger.fabric.protos.peer.PeerEvents.Rejection) event_; } return org.hyperledger.fabric.protos.peer.PeerEvents.Rejection.getDefaultInstance(); } public static final int UNREGISTER_FIELD_NUMBER = 5; /** *
     *Unregister consumer sent events
     * 
* * optional .protos.Unregister unregister = 5; */ public org.hyperledger.fabric.protos.peer.PeerEvents.Unregister getUnregister() { if (eventCase_ == 5) { return (org.hyperledger.fabric.protos.peer.PeerEvents.Unregister) event_; } return org.hyperledger.fabric.protos.peer.PeerEvents.Unregister.getDefaultInstance(); } /** *
     *Unregister consumer sent events
     * 
* * optional .protos.Unregister unregister = 5; */ public org.hyperledger.fabric.protos.peer.PeerEvents.UnregisterOrBuilder getUnregisterOrBuilder() { if (eventCase_ == 5) { return (org.hyperledger.fabric.protos.peer.PeerEvents.Unregister) event_; } return org.hyperledger.fabric.protos.peer.PeerEvents.Unregister.getDefaultInstance(); } public static final int FILTERED_BLOCK_FIELD_NUMBER = 7; /** * optional .protos.FilteredBlock filtered_block = 7; */ public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock getFilteredBlock() { if (eventCase_ == 7) { return (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock) event_; } return org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.getDefaultInstance(); } /** * optional .protos.FilteredBlock filtered_block = 7; */ public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlockOrBuilder getFilteredBlockOrBuilder() { if (eventCase_ == 7) { return (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock) event_; } return org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.getDefaultInstance(); } public static final int CREATOR_FIELD_NUMBER = 6; private com.google.protobuf.ByteString creator_; /** *
     * Creator of the event, specified as a certificate chain
     * 
* * optional bytes creator = 6; */ public com.google.protobuf.ByteString getCreator() { return creator_; } public static final int TIMESTAMP_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp timestamp_; /** *
     * Timestamp of the client - used to mitigate replay attacks
     * 
* * optional .google.protobuf.Timestamp timestamp = 8; */ public boolean hasTimestamp() { return timestamp_ != null; } /** *
     * Timestamp of the client - used to mitigate replay attacks
     * 
* * optional .google.protobuf.Timestamp timestamp = 8; */ public com.google.protobuf.Timestamp getTimestamp() { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } /** *
     * Timestamp of the client - used to mitigate replay attacks
     * 
* * optional .google.protobuf.Timestamp timestamp = 8; */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { return getTimestamp(); } public static final int TLS_CERT_HASH_FIELD_NUMBER = 9; private com.google.protobuf.ByteString tlsCertHash_; /** *
     * If mutual TLS is employed, this represents
     * the hash of the client's TLS certificate
     * 
* * optional bytes tls_cert_hash = 9; */ public com.google.protobuf.ByteString getTlsCertHash() { return tlsCertHash_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (eventCase_ == 1) { output.writeMessage(1, (org.hyperledger.fabric.protos.peer.PeerEvents.Register) event_); } if (eventCase_ == 2) { output.writeMessage(2, (org.hyperledger.fabric.protos.common.Common.Block) event_); } if (eventCase_ == 3) { output.writeMessage(3, (org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent) event_); } if (eventCase_ == 4) { output.writeMessage(4, (org.hyperledger.fabric.protos.peer.PeerEvents.Rejection) event_); } if (eventCase_ == 5) { output.writeMessage(5, (org.hyperledger.fabric.protos.peer.PeerEvents.Unregister) event_); } if (!creator_.isEmpty()) { output.writeBytes(6, creator_); } if (eventCase_ == 7) { output.writeMessage(7, (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock) event_); } if (timestamp_ != null) { output.writeMessage(8, getTimestamp()); } if (!tlsCertHash_.isEmpty()) { output.writeBytes(9, tlsCertHash_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (eventCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (org.hyperledger.fabric.protos.peer.PeerEvents.Register) event_); } if (eventCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (org.hyperledger.fabric.protos.common.Common.Block) event_); } if (eventCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent) event_); } if (eventCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (org.hyperledger.fabric.protos.peer.PeerEvents.Rejection) event_); } if (eventCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (org.hyperledger.fabric.protos.peer.PeerEvents.Unregister) event_); } if (!creator_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, creator_); } if (eventCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock) event_); } if (timestamp_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getTimestamp()); } if (!tlsCertHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, tlsCertHash_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.PeerEvents.Event)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.PeerEvents.Event other = (org.hyperledger.fabric.protos.peer.PeerEvents.Event) obj; boolean result = true; result = result && getCreator() .equals(other.getCreator()); result = result && (hasTimestamp() == other.hasTimestamp()); if (hasTimestamp()) { result = result && getTimestamp() .equals(other.getTimestamp()); } result = result && getTlsCertHash() .equals(other.getTlsCertHash()); result = result && getEventCase().equals( other.getEventCase()); if (!result) return false; switch (eventCase_) { case 1: result = result && getRegister() .equals(other.getRegister()); break; case 2: result = result && getBlock() .equals(other.getBlock()); break; case 3: result = result && getChaincodeEvent() .equals(other.getChaincodeEvent()); break; case 4: result = result && getRejection() .equals(other.getRejection()); break; case 5: result = result && getUnregister() .equals(other.getUnregister()); break; case 7: result = result && getFilteredBlock() .equals(other.getFilteredBlock()); break; case 0: default: } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + CREATOR_FIELD_NUMBER; hash = (53 * hash) + getCreator().hashCode(); if (hasTimestamp()) { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getTimestamp().hashCode(); } hash = (37 * hash) + TLS_CERT_HASH_FIELD_NUMBER; hash = (53 * hash) + getTlsCertHash().hashCode(); switch (eventCase_) { case 1: hash = (37 * hash) + REGISTER_FIELD_NUMBER; hash = (53 * hash) + getRegister().hashCode(); break; case 2: hash = (37 * hash) + BLOCK_FIELD_NUMBER; hash = (53 * hash) + getBlock().hashCode(); break; case 3: hash = (37 * hash) + CHAINCODE_EVENT_FIELD_NUMBER; hash = (53 * hash) + getChaincodeEvent().hashCode(); break; case 4: hash = (37 * hash) + REJECTION_FIELD_NUMBER; hash = (53 * hash) + getRejection().hashCode(); break; case 5: hash = (37 * hash) + UNREGISTER_FIELD_NUMBER; hash = (53 * hash) + getUnregister().hashCode(); break; case 7: hash = (37 * hash) + FILTERED_BLOCK_FIELD_NUMBER; hash = (53 * hash) + getFilteredBlock().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.PeerEvents.Event parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.PeerEvents.Event 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.PeerEvents.Event parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.PeerEvents.Event 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.PeerEvents.Event parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.PeerEvents.Event 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.PeerEvents.Event parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.PeerEvents.Event 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.PeerEvents.Event 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.PeerEvents.Event parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.PeerEvents.Event prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     *Event is used by
     *  - consumers (adapters) to send Register
     *  - producer to advertise supported types and events
     * 
* * Protobuf type {@code protos.Event} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protos.Event) org.hyperledger.fabric.protos.peer.PeerEvents.EventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_Event_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_Event_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.PeerEvents.Event.class, org.hyperledger.fabric.protos.peer.PeerEvents.Event.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.PeerEvents.Event.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); creator_ = com.google.protobuf.ByteString.EMPTY; if (timestampBuilder_ == null) { timestamp_ = null; } else { timestamp_ = null; timestampBuilder_ = null; } tlsCertHash_ = com.google.protobuf.ByteString.EMPTY; eventCase_ = 0; event_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.internal_static_protos_Event_descriptor; } public org.hyperledger.fabric.protos.peer.PeerEvents.Event getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.Event.getDefaultInstance(); } public org.hyperledger.fabric.protos.peer.PeerEvents.Event build() { org.hyperledger.fabric.protos.peer.PeerEvents.Event result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.peer.PeerEvents.Event buildPartial() { org.hyperledger.fabric.protos.peer.PeerEvents.Event result = new org.hyperledger.fabric.protos.peer.PeerEvents.Event(this); if (eventCase_ == 1) { if (registerBuilder_ == null) { result.event_ = event_; } else { result.event_ = registerBuilder_.build(); } } if (eventCase_ == 2) { if (blockBuilder_ == null) { result.event_ = event_; } else { result.event_ = blockBuilder_.build(); } } if (eventCase_ == 3) { if (chaincodeEventBuilder_ == null) { result.event_ = event_; } else { result.event_ = chaincodeEventBuilder_.build(); } } if (eventCase_ == 4) { if (rejectionBuilder_ == null) { result.event_ = event_; } else { result.event_ = rejectionBuilder_.build(); } } if (eventCase_ == 5) { if (unregisterBuilder_ == null) { result.event_ = event_; } else { result.event_ = unregisterBuilder_.build(); } } if (eventCase_ == 7) { if (filteredBlockBuilder_ == null) { result.event_ = event_; } else { result.event_ = filteredBlockBuilder_.build(); } } result.creator_ = creator_; if (timestampBuilder_ == null) { result.timestamp_ = timestamp_; } else { result.timestamp_ = timestampBuilder_.build(); } result.tlsCertHash_ = tlsCertHash_; result.eventCase_ = eventCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.PeerEvents.Event) { return mergeFrom((org.hyperledger.fabric.protos.peer.PeerEvents.Event)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.PeerEvents.Event other) { if (other == org.hyperledger.fabric.protos.peer.PeerEvents.Event.getDefaultInstance()) return this; if (other.getCreator() != com.google.protobuf.ByteString.EMPTY) { setCreator(other.getCreator()); } if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } if (other.getTlsCertHash() != com.google.protobuf.ByteString.EMPTY) { setTlsCertHash(other.getTlsCertHash()); } switch (other.getEventCase()) { case REGISTER: { mergeRegister(other.getRegister()); break; } case BLOCK: { mergeBlock(other.getBlock()); break; } case CHAINCODE_EVENT: { mergeChaincodeEvent(other.getChaincodeEvent()); break; } case REJECTION: { mergeRejection(other.getRejection()); break; } case UNREGISTER: { mergeUnregister(other.getUnregister()); break; } case FILTERED_BLOCK: { mergeFilteredBlock(other.getFilteredBlock()); break; } case EVENT_NOT_SET: { break; } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.PeerEvents.Event parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.PeerEvents.Event) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int eventCase_ = 0; private java.lang.Object event_; public EventCase getEventCase() { return EventCase.forNumber( eventCase_); } public Builder clearEvent() { eventCase_ = 0; event_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.Register, org.hyperledger.fabric.protos.peer.PeerEvents.Register.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.RegisterOrBuilder> registerBuilder_; /** *
       *Register consumer sent event
       * 
* * optional .protos.Register register = 1; */ public org.hyperledger.fabric.protos.peer.PeerEvents.Register getRegister() { if (registerBuilder_ == null) { if (eventCase_ == 1) { return (org.hyperledger.fabric.protos.peer.PeerEvents.Register) event_; } return org.hyperledger.fabric.protos.peer.PeerEvents.Register.getDefaultInstance(); } else { if (eventCase_ == 1) { return registerBuilder_.getMessage(); } return org.hyperledger.fabric.protos.peer.PeerEvents.Register.getDefaultInstance(); } } /** *
       *Register consumer sent event
       * 
* * optional .protos.Register register = 1; */ public Builder setRegister(org.hyperledger.fabric.protos.peer.PeerEvents.Register value) { if (registerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { registerBuilder_.setMessage(value); } eventCase_ = 1; return this; } /** *
       *Register consumer sent event
       * 
* * optional .protos.Register register = 1; */ public Builder setRegister( org.hyperledger.fabric.protos.peer.PeerEvents.Register.Builder builderForValue) { if (registerBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { registerBuilder_.setMessage(builderForValue.build()); } eventCase_ = 1; return this; } /** *
       *Register consumer sent event
       * 
* * optional .protos.Register register = 1; */ public Builder mergeRegister(org.hyperledger.fabric.protos.peer.PeerEvents.Register value) { if (registerBuilder_ == null) { if (eventCase_ == 1 && event_ != org.hyperledger.fabric.protos.peer.PeerEvents.Register.getDefaultInstance()) { event_ = org.hyperledger.fabric.protos.peer.PeerEvents.Register.newBuilder((org.hyperledger.fabric.protos.peer.PeerEvents.Register) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 1) { registerBuilder_.mergeFrom(value); } registerBuilder_.setMessage(value); } eventCase_ = 1; return this; } /** *
       *Register consumer sent event
       * 
* * optional .protos.Register register = 1; */ public Builder clearRegister() { if (registerBuilder_ == null) { if (eventCase_ == 1) { eventCase_ = 0; event_ = null; onChanged(); } } else { if (eventCase_ == 1) { eventCase_ = 0; event_ = null; } registerBuilder_.clear(); } return this; } /** *
       *Register consumer sent event
       * 
* * optional .protos.Register register = 1; */ public org.hyperledger.fabric.protos.peer.PeerEvents.Register.Builder getRegisterBuilder() { return getRegisterFieldBuilder().getBuilder(); } /** *
       *Register consumer sent event
       * 
* * optional .protos.Register register = 1; */ public org.hyperledger.fabric.protos.peer.PeerEvents.RegisterOrBuilder getRegisterOrBuilder() { if ((eventCase_ == 1) && (registerBuilder_ != null)) { return registerBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 1) { return (org.hyperledger.fabric.protos.peer.PeerEvents.Register) event_; } return org.hyperledger.fabric.protos.peer.PeerEvents.Register.getDefaultInstance(); } } /** *
       *Register consumer sent event
       * 
* * optional .protos.Register register = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.Register, org.hyperledger.fabric.protos.peer.PeerEvents.Register.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.RegisterOrBuilder> getRegisterFieldBuilder() { if (registerBuilder_ == null) { if (!(eventCase_ == 1)) { event_ = org.hyperledger.fabric.protos.peer.PeerEvents.Register.getDefaultInstance(); } registerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.Register, org.hyperledger.fabric.protos.peer.PeerEvents.Register.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.RegisterOrBuilder>( (org.hyperledger.fabric.protos.peer.PeerEvents.Register) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 1; onChanged();; return registerBuilder_; } 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_; /** *
       *producer events
       * 
* * optional .common.Block block = 2; */ public org.hyperledger.fabric.protos.common.Common.Block getBlock() { if (blockBuilder_ == null) { if (eventCase_ == 2) { return (org.hyperledger.fabric.protos.common.Common.Block) event_; } return org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance(); } else { if (eventCase_ == 2) { return blockBuilder_.getMessage(); } return org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance(); } } /** *
       *producer events
       * 
* * optional .common.Block block = 2; */ public Builder setBlock(org.hyperledger.fabric.protos.common.Common.Block value) { if (blockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { blockBuilder_.setMessage(value); } eventCase_ = 2; return this; } /** *
       *producer events
       * 
* * optional .common.Block block = 2; */ public Builder setBlock( org.hyperledger.fabric.protos.common.Common.Block.Builder builderForValue) { if (blockBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { blockBuilder_.setMessage(builderForValue.build()); } eventCase_ = 2; return this; } /** *
       *producer events
       * 
* * optional .common.Block block = 2; */ public Builder mergeBlock(org.hyperledger.fabric.protos.common.Common.Block value) { if (blockBuilder_ == null) { if (eventCase_ == 2 && event_ != org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance()) { event_ = org.hyperledger.fabric.protos.common.Common.Block.newBuilder((org.hyperledger.fabric.protos.common.Common.Block) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 2) { blockBuilder_.mergeFrom(value); } blockBuilder_.setMessage(value); } eventCase_ = 2; return this; } /** *
       *producer events
       * 
* * optional .common.Block block = 2; */ public Builder clearBlock() { if (blockBuilder_ == null) { if (eventCase_ == 2) { eventCase_ = 0; event_ = null; onChanged(); } } else { if (eventCase_ == 2) { eventCase_ = 0; event_ = null; } blockBuilder_.clear(); } return this; } /** *
       *producer events
       * 
* * optional .common.Block block = 2; */ public org.hyperledger.fabric.protos.common.Common.Block.Builder getBlockBuilder() { return getBlockFieldBuilder().getBuilder(); } /** *
       *producer events
       * 
* * optional .common.Block block = 2; */ public org.hyperledger.fabric.protos.common.Common.BlockOrBuilder getBlockOrBuilder() { if ((eventCase_ == 2) && (blockBuilder_ != null)) { return blockBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 2) { return (org.hyperledger.fabric.protos.common.Common.Block) event_; } return org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance(); } } /** *
       *producer events
       * 
* * optional .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 (!(eventCase_ == 2)) { event_ = 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) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 2; onChanged();; return blockBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent, org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.Builder, org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEventOrBuilder> chaincodeEventBuilder_; /** * optional .protos.ChaincodeEvent chaincode_event = 3; */ public org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent getChaincodeEvent() { if (chaincodeEventBuilder_ == null) { if (eventCase_ == 3) { return (org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent) event_; } return org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.getDefaultInstance(); } else { if (eventCase_ == 3) { return chaincodeEventBuilder_.getMessage(); } return org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.getDefaultInstance(); } } /** * optional .protos.ChaincodeEvent chaincode_event = 3; */ public Builder setChaincodeEvent(org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent value) { if (chaincodeEventBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { chaincodeEventBuilder_.setMessage(value); } eventCase_ = 3; return this; } /** * optional .protos.ChaincodeEvent chaincode_event = 3; */ public Builder setChaincodeEvent( org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.Builder builderForValue) { if (chaincodeEventBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { chaincodeEventBuilder_.setMessage(builderForValue.build()); } eventCase_ = 3; return this; } /** * optional .protos.ChaincodeEvent chaincode_event = 3; */ public Builder mergeChaincodeEvent(org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent value) { if (chaincodeEventBuilder_ == null) { if (eventCase_ == 3 && event_ != org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.getDefaultInstance()) { event_ = org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.newBuilder((org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 3) { chaincodeEventBuilder_.mergeFrom(value); } chaincodeEventBuilder_.setMessage(value); } eventCase_ = 3; return this; } /** * optional .protos.ChaincodeEvent chaincode_event = 3; */ public Builder clearChaincodeEvent() { if (chaincodeEventBuilder_ == null) { if (eventCase_ == 3) { eventCase_ = 0; event_ = null; onChanged(); } } else { if (eventCase_ == 3) { eventCase_ = 0; event_ = null; } chaincodeEventBuilder_.clear(); } return this; } /** * optional .protos.ChaincodeEvent chaincode_event = 3; */ public org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.Builder getChaincodeEventBuilder() { return getChaincodeEventFieldBuilder().getBuilder(); } /** * optional .protos.ChaincodeEvent chaincode_event = 3; */ public org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEventOrBuilder getChaincodeEventOrBuilder() { if ((eventCase_ == 3) && (chaincodeEventBuilder_ != null)) { return chaincodeEventBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 3) { return (org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent) event_; } return org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.getDefaultInstance(); } } /** * optional .protos.ChaincodeEvent chaincode_event = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent, org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.Builder, org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEventOrBuilder> getChaincodeEventFieldBuilder() { if (chaincodeEventBuilder_ == null) { if (!(eventCase_ == 3)) { event_ = org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.getDefaultInstance(); } chaincodeEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent, org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.Builder, org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEventOrBuilder>( (org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 3; onChanged();; return chaincodeEventBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.Rejection, org.hyperledger.fabric.protos.peer.PeerEvents.Rejection.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.RejectionOrBuilder> rejectionBuilder_; /** * optional .protos.Rejection rejection = 4; */ public org.hyperledger.fabric.protos.peer.PeerEvents.Rejection getRejection() { if (rejectionBuilder_ == null) { if (eventCase_ == 4) { return (org.hyperledger.fabric.protos.peer.PeerEvents.Rejection) event_; } return org.hyperledger.fabric.protos.peer.PeerEvents.Rejection.getDefaultInstance(); } else { if (eventCase_ == 4) { return rejectionBuilder_.getMessage(); } return org.hyperledger.fabric.protos.peer.PeerEvents.Rejection.getDefaultInstance(); } } /** * optional .protos.Rejection rejection = 4; */ public Builder setRejection(org.hyperledger.fabric.protos.peer.PeerEvents.Rejection value) { if (rejectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { rejectionBuilder_.setMessage(value); } eventCase_ = 4; return this; } /** * optional .protos.Rejection rejection = 4; */ public Builder setRejection( org.hyperledger.fabric.protos.peer.PeerEvents.Rejection.Builder builderForValue) { if (rejectionBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { rejectionBuilder_.setMessage(builderForValue.build()); } eventCase_ = 4; return this; } /** * optional .protos.Rejection rejection = 4; */ public Builder mergeRejection(org.hyperledger.fabric.protos.peer.PeerEvents.Rejection value) { if (rejectionBuilder_ == null) { if (eventCase_ == 4 && event_ != org.hyperledger.fabric.protos.peer.PeerEvents.Rejection.getDefaultInstance()) { event_ = org.hyperledger.fabric.protos.peer.PeerEvents.Rejection.newBuilder((org.hyperledger.fabric.protos.peer.PeerEvents.Rejection) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 4) { rejectionBuilder_.mergeFrom(value); } rejectionBuilder_.setMessage(value); } eventCase_ = 4; return this; } /** * optional .protos.Rejection rejection = 4; */ public Builder clearRejection() { if (rejectionBuilder_ == null) { if (eventCase_ == 4) { eventCase_ = 0; event_ = null; onChanged(); } } else { if (eventCase_ == 4) { eventCase_ = 0; event_ = null; } rejectionBuilder_.clear(); } return this; } /** * optional .protos.Rejection rejection = 4; */ public org.hyperledger.fabric.protos.peer.PeerEvents.Rejection.Builder getRejectionBuilder() { return getRejectionFieldBuilder().getBuilder(); } /** * optional .protos.Rejection rejection = 4; */ public org.hyperledger.fabric.protos.peer.PeerEvents.RejectionOrBuilder getRejectionOrBuilder() { if ((eventCase_ == 4) && (rejectionBuilder_ != null)) { return rejectionBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 4) { return (org.hyperledger.fabric.protos.peer.PeerEvents.Rejection) event_; } return org.hyperledger.fabric.protos.peer.PeerEvents.Rejection.getDefaultInstance(); } } /** * optional .protos.Rejection rejection = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.Rejection, org.hyperledger.fabric.protos.peer.PeerEvents.Rejection.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.RejectionOrBuilder> getRejectionFieldBuilder() { if (rejectionBuilder_ == null) { if (!(eventCase_ == 4)) { event_ = org.hyperledger.fabric.protos.peer.PeerEvents.Rejection.getDefaultInstance(); } rejectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.Rejection, org.hyperledger.fabric.protos.peer.PeerEvents.Rejection.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.RejectionOrBuilder>( (org.hyperledger.fabric.protos.peer.PeerEvents.Rejection) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 4; onChanged();; return rejectionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.Unregister, org.hyperledger.fabric.protos.peer.PeerEvents.Unregister.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.UnregisterOrBuilder> unregisterBuilder_; /** *
       *Unregister consumer sent events
       * 
* * optional .protos.Unregister unregister = 5; */ public org.hyperledger.fabric.protos.peer.PeerEvents.Unregister getUnregister() { if (unregisterBuilder_ == null) { if (eventCase_ == 5) { return (org.hyperledger.fabric.protos.peer.PeerEvents.Unregister) event_; } return org.hyperledger.fabric.protos.peer.PeerEvents.Unregister.getDefaultInstance(); } else { if (eventCase_ == 5) { return unregisterBuilder_.getMessage(); } return org.hyperledger.fabric.protos.peer.PeerEvents.Unregister.getDefaultInstance(); } } /** *
       *Unregister consumer sent events
       * 
* * optional .protos.Unregister unregister = 5; */ public Builder setUnregister(org.hyperledger.fabric.protos.peer.PeerEvents.Unregister value) { if (unregisterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { unregisterBuilder_.setMessage(value); } eventCase_ = 5; return this; } /** *
       *Unregister consumer sent events
       * 
* * optional .protos.Unregister unregister = 5; */ public Builder setUnregister( org.hyperledger.fabric.protos.peer.PeerEvents.Unregister.Builder builderForValue) { if (unregisterBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { unregisterBuilder_.setMessage(builderForValue.build()); } eventCase_ = 5; return this; } /** *
       *Unregister consumer sent events
       * 
* * optional .protos.Unregister unregister = 5; */ public Builder mergeUnregister(org.hyperledger.fabric.protos.peer.PeerEvents.Unregister value) { if (unregisterBuilder_ == null) { if (eventCase_ == 5 && event_ != org.hyperledger.fabric.protos.peer.PeerEvents.Unregister.getDefaultInstance()) { event_ = org.hyperledger.fabric.protos.peer.PeerEvents.Unregister.newBuilder((org.hyperledger.fabric.protos.peer.PeerEvents.Unregister) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 5) { unregisterBuilder_.mergeFrom(value); } unregisterBuilder_.setMessage(value); } eventCase_ = 5; return this; } /** *
       *Unregister consumer sent events
       * 
* * optional .protos.Unregister unregister = 5; */ public Builder clearUnregister() { if (unregisterBuilder_ == null) { if (eventCase_ == 5) { eventCase_ = 0; event_ = null; onChanged(); } } else { if (eventCase_ == 5) { eventCase_ = 0; event_ = null; } unregisterBuilder_.clear(); } return this; } /** *
       *Unregister consumer sent events
       * 
* * optional .protos.Unregister unregister = 5; */ public org.hyperledger.fabric.protos.peer.PeerEvents.Unregister.Builder getUnregisterBuilder() { return getUnregisterFieldBuilder().getBuilder(); } /** *
       *Unregister consumer sent events
       * 
* * optional .protos.Unregister unregister = 5; */ public org.hyperledger.fabric.protos.peer.PeerEvents.UnregisterOrBuilder getUnregisterOrBuilder() { if ((eventCase_ == 5) && (unregisterBuilder_ != null)) { return unregisterBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 5) { return (org.hyperledger.fabric.protos.peer.PeerEvents.Unregister) event_; } return org.hyperledger.fabric.protos.peer.PeerEvents.Unregister.getDefaultInstance(); } } /** *
       *Unregister consumer sent events
       * 
* * optional .protos.Unregister unregister = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.Unregister, org.hyperledger.fabric.protos.peer.PeerEvents.Unregister.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.UnregisterOrBuilder> getUnregisterFieldBuilder() { if (unregisterBuilder_ == null) { if (!(eventCase_ == 5)) { event_ = org.hyperledger.fabric.protos.peer.PeerEvents.Unregister.getDefaultInstance(); } unregisterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.Unregister, org.hyperledger.fabric.protos.peer.PeerEvents.Unregister.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.UnregisterOrBuilder>( (org.hyperledger.fabric.protos.peer.PeerEvents.Unregister) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 5; onChanged();; return unregisterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlockOrBuilder> filteredBlockBuilder_; /** * optional .protos.FilteredBlock filtered_block = 7; */ public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock getFilteredBlock() { if (filteredBlockBuilder_ == null) { if (eventCase_ == 7) { return (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock) event_; } return org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.getDefaultInstance(); } else { if (eventCase_ == 7) { return filteredBlockBuilder_.getMessage(); } return org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.getDefaultInstance(); } } /** * optional .protos.FilteredBlock filtered_block = 7; */ public Builder setFilteredBlock(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock value) { if (filteredBlockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { filteredBlockBuilder_.setMessage(value); } eventCase_ = 7; return this; } /** * optional .protos.FilteredBlock filtered_block = 7; */ public Builder setFilteredBlock( org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.Builder builderForValue) { if (filteredBlockBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { filteredBlockBuilder_.setMessage(builderForValue.build()); } eventCase_ = 7; return this; } /** * optional .protos.FilteredBlock filtered_block = 7; */ public Builder mergeFilteredBlock(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock value) { if (filteredBlockBuilder_ == null) { if (eventCase_ == 7 && event_ != org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.getDefaultInstance()) { event_ = org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.newBuilder((org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 7) { filteredBlockBuilder_.mergeFrom(value); } filteredBlockBuilder_.setMessage(value); } eventCase_ = 7; return this; } /** * optional .protos.FilteredBlock filtered_block = 7; */ public Builder clearFilteredBlock() { if (filteredBlockBuilder_ == null) { if (eventCase_ == 7) { eventCase_ = 0; event_ = null; onChanged(); } } else { if (eventCase_ == 7) { eventCase_ = 0; event_ = null; } filteredBlockBuilder_.clear(); } return this; } /** * optional .protos.FilteredBlock filtered_block = 7; */ public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.Builder getFilteredBlockBuilder() { return getFilteredBlockFieldBuilder().getBuilder(); } /** * optional .protos.FilteredBlock filtered_block = 7; */ public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlockOrBuilder getFilteredBlockOrBuilder() { if ((eventCase_ == 7) && (filteredBlockBuilder_ != null)) { return filteredBlockBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 7) { return (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock) event_; } return org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.getDefaultInstance(); } } /** * optional .protos.FilteredBlock filtered_block = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlockOrBuilder> getFilteredBlockFieldBuilder() { if (filteredBlockBuilder_ == null) { if (!(eventCase_ == 7)) { event_ = org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.getDefaultInstance(); } filteredBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlockOrBuilder>( (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredBlock) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 7; onChanged();; return filteredBlockBuilder_; } private com.google.protobuf.ByteString creator_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Creator of the event, specified as a certificate chain
       * 
* * optional bytes creator = 6; */ public com.google.protobuf.ByteString getCreator() { return creator_; } /** *
       * Creator of the event, specified as a certificate chain
       * 
* * optional bytes creator = 6; */ public Builder setCreator(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } creator_ = value; onChanged(); return this; } /** *
       * Creator of the event, specified as a certificate chain
       * 
* * optional bytes creator = 6; */ public Builder clearCreator() { creator_ = getDefaultInstance().getCreator(); onChanged(); return this; } private com.google.protobuf.Timestamp timestamp_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; /** *
       * Timestamp of the client - used to mitigate replay attacks
       * 
* * optional .google.protobuf.Timestamp timestamp = 8; */ public boolean hasTimestamp() { return timestampBuilder_ != null || timestamp_ != null; } /** *
       * Timestamp of the client - used to mitigate replay attacks
       * 
* * optional .google.protobuf.Timestamp timestamp = 8; */ public com.google.protobuf.Timestamp getTimestamp() { if (timestampBuilder_ == null) { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } else { return timestampBuilder_.getMessage(); } } /** *
       * Timestamp of the client - used to mitigate replay attacks
       * 
* * optional .google.protobuf.Timestamp timestamp = 8; */ public Builder setTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timestamp_ = value; onChanged(); } else { timestampBuilder_.setMessage(value); } return this; } /** *
       * Timestamp of the client - used to mitigate replay attacks
       * 
* * optional .google.protobuf.Timestamp timestamp = 8; */ public Builder setTimestamp( com.google.protobuf.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); onChanged(); } else { timestampBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Timestamp of the client - used to mitigate replay attacks
       * 
* * optional .google.protobuf.Timestamp timestamp = 8; */ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (timestamp_ != null) { timestamp_ = com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); } else { timestamp_ = value; } onChanged(); } else { timestampBuilder_.mergeFrom(value); } return this; } /** *
       * Timestamp of the client - used to mitigate replay attacks
       * 
* * optional .google.protobuf.Timestamp timestamp = 8; */ public Builder clearTimestamp() { if (timestampBuilder_ == null) { timestamp_ = null; onChanged(); } else { timestamp_ = null; timestampBuilder_ = null; } return this; } /** *
       * Timestamp of the client - used to mitigate replay attacks
       * 
* * optional .google.protobuf.Timestamp timestamp = 8; */ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** *
       * Timestamp of the client - used to mitigate replay attacks
       * 
* * optional .google.protobuf.Timestamp timestamp = 8; */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } } /** *
       * Timestamp of the client - used to mitigate replay attacks
       * 
* * optional .google.protobuf.Timestamp timestamp = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getTimestamp(), getParentForChildren(), isClean()); timestamp_ = null; } return timestampBuilder_; } private com.google.protobuf.ByteString tlsCertHash_ = com.google.protobuf.ByteString.EMPTY; /** *
       * If mutual TLS is employed, this represents
       * the hash of the client's TLS certificate
       * 
* * optional bytes tls_cert_hash = 9; */ public com.google.protobuf.ByteString getTlsCertHash() { return tlsCertHash_; } /** *
       * If mutual TLS is employed, this represents
       * the hash of the client's TLS certificate
       * 
* * optional bytes tls_cert_hash = 9; */ public Builder setTlsCertHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } tlsCertHash_ = value; onChanged(); return this; } /** *
       * If mutual TLS is employed, this represents
       * the hash of the client's TLS certificate
       * 
* * optional bytes tls_cert_hash = 9; */ public Builder clearTlsCertHash() { tlsCertHash_ = getDefaultInstance().getTlsCertHash(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protos.Event) } // @@protoc_insertion_point(class_scope:protos.Event) private static final org.hyperledger.fabric.protos.peer.PeerEvents.Event DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.PeerEvents.Event(); } public static org.hyperledger.fabric.protos.peer.PeerEvents.Event getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Event parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Event(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.peer.PeerEvents.Event 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_DeliverResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protos_DeliverResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protos_ChaincodeReg_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protos_ChaincodeReg_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protos_Interest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protos_Interest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protos_Register_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protos_Register_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protos_Rejection_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protos_Rejection_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protos_Unregister_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protos_Unregister_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protos_SignedEvent_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protos_SignedEvent_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protos_Event_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protos_Event_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\037google/protobuf/timestamp.prot" + "o\032\032peer/chaincode_event.proto\032\026peer/tran" + "saction.proto\"o\n\rFilteredBlock\022\022\n\nchanne" + "l_id\030\001 \001(\t\022\016\n\006number\030\002 \001(\004\022:\n\025filtered_t" + "ransactions\030\004 \003(\0132\033.protos.FilteredTrans" + "action\"\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_validation_code\030\003 \001(\0162\030.protos.TxVa" + "lidationCode\022A\n\023transaction_actions\030\004 \001(", "\0132\".protos.FilteredTransactionActionsH\000B" + "\006\n\004Data\"X\n\032FilteredTransactionActions\022:\n" + "\021chaincode_actions\030\001 \003(\0132\037.protos.Filter" + "edChaincodeAction\"J\n\027FilteredChaincodeAc" + "tion\022/\n\017chaincode_event\030\001 \001(\0132\026.protos.C" + "haincodeEvent\"\214\001\n\017DeliverResponse\022 \n\006sta" + "tus\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\000B\006\n\004Type\"8\n\014" + "ChaincodeReg\022\024\n\014chaincode_id\030\001 \001(\t\022\022\n\nev", "ent_name\030\002 \001(\t\"\201\001\n\010Interest\022%\n\nevent_typ" + "e\030\001 \001(\0162\021.protos.EventType\0222\n\022chaincode_" + "reg_info\030\002 \001(\0132\024.protos.ChaincodeRegH\000\022\017" + "\n\007chainID\030\003 \001(\tB\t\n\007RegInfo\",\n\010Register\022 " + "\n\006events\030\001 \003(\0132\020.protos.Interest\"?\n\tReje" + "ction\022\037\n\002tx\030\001 \001(\0132\023.protos.Transaction\022\021" + "\n\terror_msg\030\002 \001(\t\".\n\nUnregister\022 \n\006event" + "s\030\001 \003(\0132\020.protos.Interest\"4\n\013SignedEvent" + "\022\021\n\tsignature\030\001 \001(\014\022\022\n\neventBytes\030\002 \001(\014\"" + "\343\002\n\005Event\022$\n\010register\030\001 \001(\0132\020.protos.Reg", "isterH\000\022\036\n\005block\030\002 \001(\0132\r.common.BlockH\000\022" + "1\n\017chaincode_event\030\003 \001(\0132\026.protos.Chainc" + "odeEventH\000\022&\n\trejection\030\004 \001(\0132\021.protos.R" + "ejectionH\000\022(\n\nunregister\030\005 \001(\0132\022.protos." + "UnregisterH\000\022/\n\016filtered_block\030\007 \001(\0132\025.p" + "rotos.FilteredBlockH\000\022\017\n\007creator\030\006 \001(\014\022-" + "\n\ttimestamp\030\010 \001(\0132\032.google.protobuf.Time" + "stamp\022\025\n\rtls_cert_hash\030\t \001(\014B\007\n\005Event*U\n" + "\tEventType\022\014\n\010REGISTER\020\000\022\t\n\005BLOCK\020\001\022\r\n\tC" + "HAINCODE\020\002\022\r\n\tREJECTION\020\003\022\021\n\rFILTEREDBLO", "CK\020\0042\211\001\n\007Deliver\022:\n\007Deliver\022\020.common.Env" + "elope\032\027.protos.DeliverResponse\"\000(\0010\001\022B\n\017" + "DeliverFiltered\022\020.common.Envelope\032\027.prot" + "os.DeliverResponse\"\000(\0010\0012:\n\006Events\0220\n\004Ch" + "at\022\023.protos.SignedEvent\032\r.protos.Event\"\000" + "(\0010\001B[\n\"org.hyperledger.fabric.protos.pe" + "erB\nPeerEventsZ)github.com/hyperledger/f" + "abric/protos/peerb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.hyperledger.fabric.protos.common.Common.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.getDescriptor(), org.hyperledger.fabric.protos.peer.FabricTransaction.getDescriptor(), }, assigner); 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_DeliverResponse_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_protos_DeliverResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protos_DeliverResponse_descriptor, new java.lang.String[] { "Status", "Block", "FilteredBlock", "Type", }); internal_static_protos_ChaincodeReg_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_protos_ChaincodeReg_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protos_ChaincodeReg_descriptor, new java.lang.String[] { "ChaincodeId", "EventName", }); internal_static_protos_Interest_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_protos_Interest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protos_Interest_descriptor, new java.lang.String[] { "EventType", "ChaincodeRegInfo", "ChainID", "RegInfo", }); internal_static_protos_Register_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_protos_Register_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protos_Register_descriptor, new java.lang.String[] { "Events", }); internal_static_protos_Rejection_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_protos_Rejection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protos_Rejection_descriptor, new java.lang.String[] { "Tx", "ErrorMsg", }); internal_static_protos_Unregister_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_protos_Unregister_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protos_Unregister_descriptor, new java.lang.String[] { "Events", }); internal_static_protos_SignedEvent_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_protos_SignedEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protos_SignedEvent_descriptor, new java.lang.String[] { "Signature", "EventBytes", }); internal_static_protos_Event_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_protos_Event_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protos_Event_descriptor, new java.lang.String[] { "Register", "Block", "ChaincodeEvent", "Rejection", "Unregister", "FilteredBlock", "Creator", "Timestamp", "TlsCertHash", "Event", }); org.hyperledger.fabric.protos.common.Common.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.getDescriptor(); org.hyperledger.fabric.protos.peer.FabricTransaction.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy