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

org.hyperledger.fabric.protos.common.Common Maven / Gradle / Ivy

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

package org.hyperledger.fabric.protos.common;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * 
   * These status codes are intended to resemble selected HTTP status codes
   * 
* * Protobuf enum {@code common.Status} */ public enum Status implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * SUCCESS = 200; */ SUCCESS(200), /** * BAD_REQUEST = 400; */ BAD_REQUEST(400), /** * FORBIDDEN = 403; */ FORBIDDEN(403), /** * NOT_FOUND = 404; */ NOT_FOUND(404), /** * REQUEST_ENTITY_TOO_LARGE = 413; */ REQUEST_ENTITY_TOO_LARGE(413), /** * INTERNAL_SERVER_ERROR = 500; */ INTERNAL_SERVER_ERROR(500), /** * NOT_IMPLEMENTED = 501; */ NOT_IMPLEMENTED(501), /** * SERVICE_UNAVAILABLE = 503; */ SERVICE_UNAVAILABLE(503), UNRECOGNIZED(-1), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * SUCCESS = 200; */ public static final int SUCCESS_VALUE = 200; /** * BAD_REQUEST = 400; */ public static final int BAD_REQUEST_VALUE = 400; /** * FORBIDDEN = 403; */ public static final int FORBIDDEN_VALUE = 403; /** * NOT_FOUND = 404; */ public static final int NOT_FOUND_VALUE = 404; /** * REQUEST_ENTITY_TOO_LARGE = 413; */ public static final int REQUEST_ENTITY_TOO_LARGE_VALUE = 413; /** * INTERNAL_SERVER_ERROR = 500; */ public static final int INTERNAL_SERVER_ERROR_VALUE = 500; /** * NOT_IMPLEMENTED = 501; */ public static final int NOT_IMPLEMENTED_VALUE = 501; /** * SERVICE_UNAVAILABLE = 503; */ public static final int SERVICE_UNAVAILABLE_VALUE = 503; 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 Status valueOf(int value) { return forNumber(value); } public static Status forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 200: return SUCCESS; case 400: return BAD_REQUEST; case 403: return FORBIDDEN; case 404: return NOT_FOUND; case 413: return REQUEST_ENTITY_TOO_LARGE; case 500: return INTERNAL_SERVER_ERROR; case 501: return NOT_IMPLEMENTED; case 503: return SERVICE_UNAVAILABLE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Status> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Status findValueByNumber(int number) { return Status.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.common.Common.getDescriptor().getEnumTypes().get(0); } private static final Status[] VALUES = values(); public static Status 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 Status(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:common.Status) } /** *
   * Prevent removed tag re-use
   * Uncomment after fabric-baseimage moves to 3.5.1
   * reserved 7;
   * reserved "PEER_RESOURCE_UPDATE";
   * 
* * Protobuf enum {@code common.HeaderType} */ public enum HeaderType implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Used for messages which are signed but opaque
     * 
* * MESSAGE = 0; */ MESSAGE(0), /** *
     * Used for messages which express the channel config
     * 
* * CONFIG = 1; */ CONFIG(1), /** *
     * Used for transactions which update the channel config
     * 
* * CONFIG_UPDATE = 2; */ CONFIG_UPDATE(2), /** *
     * Used by the SDK to submit endorser based transactions
     * 
* * ENDORSER_TRANSACTION = 3; */ ENDORSER_TRANSACTION(3), /** *
     * Used internally by the orderer for management
     * 
* * ORDERER_TRANSACTION = 4; */ ORDERER_TRANSACTION(4), /** *
     * Used as the type for Envelope messages submitted to instruct the Deliver API to seek
     * 
* * DELIVER_SEEK_INFO = 5; */ DELIVER_SEEK_INFO(5), /** *
     * Used for packaging chaincode artifacts for install
     * 
* * CHAINCODE_PACKAGE = 6; */ CHAINCODE_PACKAGE(6), /** *
     * Used for invoking an administrative operation on a peer
     * 
* * PEER_ADMIN_OPERATION = 8; */ PEER_ADMIN_OPERATION(8), UNRECOGNIZED(-1), ; /** *
     * Used for messages which are signed but opaque
     * 
* * MESSAGE = 0; */ public static final int MESSAGE_VALUE = 0; /** *
     * Used for messages which express the channel config
     * 
* * CONFIG = 1; */ public static final int CONFIG_VALUE = 1; /** *
     * Used for transactions which update the channel config
     * 
* * CONFIG_UPDATE = 2; */ public static final int CONFIG_UPDATE_VALUE = 2; /** *
     * Used by the SDK to submit endorser based transactions
     * 
* * ENDORSER_TRANSACTION = 3; */ public static final int ENDORSER_TRANSACTION_VALUE = 3; /** *
     * Used internally by the orderer for management
     * 
* * ORDERER_TRANSACTION = 4; */ public static final int ORDERER_TRANSACTION_VALUE = 4; /** *
     * Used as the type for Envelope messages submitted to instruct the Deliver API to seek
     * 
* * DELIVER_SEEK_INFO = 5; */ public static final int DELIVER_SEEK_INFO_VALUE = 5; /** *
     * Used for packaging chaincode artifacts for install
     * 
* * CHAINCODE_PACKAGE = 6; */ public static final int CHAINCODE_PACKAGE_VALUE = 6; /** *
     * Used for invoking an administrative operation on a peer
     * 
* * PEER_ADMIN_OPERATION = 8; */ public static final int PEER_ADMIN_OPERATION_VALUE = 8; 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 HeaderType valueOf(int value) { return forNumber(value); } public static HeaderType forNumber(int value) { switch (value) { case 0: return MESSAGE; case 1: return CONFIG; case 2: return CONFIG_UPDATE; case 3: return ENDORSER_TRANSACTION; case 4: return ORDERER_TRANSACTION; case 5: return DELIVER_SEEK_INFO; case 6: return CHAINCODE_PACKAGE; case 8: return PEER_ADMIN_OPERATION; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< HeaderType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public HeaderType findValueByNumber(int number) { return HeaderType.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.common.Common.getDescriptor().getEnumTypes().get(1); } private static final HeaderType[] VALUES = values(); public static HeaderType 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 HeaderType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:common.HeaderType) } /** *
   * This enum enlists indexes of the block metadata array
   * 
* * Protobuf enum {@code common.BlockMetadataIndex} */ public enum BlockMetadataIndex implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Block metadata array position for block signatures
     * 
* * SIGNATURES = 0; */ SIGNATURES(0), /** *
     * Block metadata array position to store last configuration block sequence number
     * 
* * LAST_CONFIG = 1; */ LAST_CONFIG(1), /** *
     * Block metadata array position to store serialized bit array filter of invalid transactions
     * 
* * TRANSACTIONS_FILTER = 2; */ TRANSACTIONS_FILTER(2), /** *
     * Block metadata array position to store operational metadata for orderers
     * 
* * ORDERER = 3; */ ORDERER(3), UNRECOGNIZED(-1), ; /** *
     * Block metadata array position for block signatures
     * 
* * SIGNATURES = 0; */ public static final int SIGNATURES_VALUE = 0; /** *
     * Block metadata array position to store last configuration block sequence number
     * 
* * LAST_CONFIG = 1; */ public static final int LAST_CONFIG_VALUE = 1; /** *
     * Block metadata array position to store serialized bit array filter of invalid transactions
     * 
* * TRANSACTIONS_FILTER = 2; */ public static final int TRANSACTIONS_FILTER_VALUE = 2; /** *
     * Block metadata array position to store operational metadata for orderers
     * 
* * ORDERER = 3; */ public static final int ORDERER_VALUE = 3; 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 BlockMetadataIndex valueOf(int value) { return forNumber(value); } public static BlockMetadataIndex forNumber(int value) { switch (value) { case 0: return SIGNATURES; case 1: return LAST_CONFIG; case 2: return TRANSACTIONS_FILTER; case 3: return ORDERER; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< BlockMetadataIndex> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public BlockMetadataIndex findValueByNumber(int number) { return BlockMetadataIndex.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.common.Common.getDescriptor().getEnumTypes().get(2); } private static final BlockMetadataIndex[] VALUES = values(); public static BlockMetadataIndex 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 BlockMetadataIndex(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:common.BlockMetadataIndex) } public interface LastConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:common.LastConfig) com.google.protobuf.MessageOrBuilder { /** * optional uint64 index = 1; */ long getIndex(); } /** *
   * LastConfig is the encoded value for the Metadata message which is encoded in the LAST_CONFIGURATION block metadata index
   * 
* * Protobuf type {@code common.LastConfig} */ public static final class LastConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.LastConfig) LastConfigOrBuilder { // Use LastConfig.newBuilder() to construct. private LastConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LastConfig() { index_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private LastConfig( 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: { index_ = input.readUInt64(); 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.common.Common.internal_static_common_LastConfig_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_LastConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.LastConfig.class, org.hyperledger.fabric.protos.common.Common.LastConfig.Builder.class); } public static final int INDEX_FIELD_NUMBER = 1; private long index_; /** * optional uint64 index = 1; */ public long getIndex() { return 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 (index_ != 0L) { output.writeUInt64(1, index_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (index_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, index_); } 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.common.Common.LastConfig)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Common.LastConfig other = (org.hyperledger.fabric.protos.common.Common.LastConfig) obj; boolean result = true; result = result && (getIndex() == other.getIndex()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getIndex()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Common.LastConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.LastConfig 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.common.Common.LastConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.LastConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Common.LastConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.LastConfig 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.common.Common.LastConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.LastConfig 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.common.Common.LastConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.LastConfig 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.common.Common.LastConfig 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; } /** *
     * LastConfig is the encoded value for the Metadata message which is encoded in the LAST_CONFIGURATION block metadata index
     * 
* * Protobuf type {@code common.LastConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.LastConfig) org.hyperledger.fabric.protos.common.Common.LastConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_LastConfig_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_LastConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.LastConfig.class, org.hyperledger.fabric.protos.common.Common.LastConfig.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Common.LastConfig.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(); index_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_LastConfig_descriptor; } public org.hyperledger.fabric.protos.common.Common.LastConfig getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Common.LastConfig.getDefaultInstance(); } public org.hyperledger.fabric.protos.common.Common.LastConfig build() { org.hyperledger.fabric.protos.common.Common.LastConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.common.Common.LastConfig buildPartial() { org.hyperledger.fabric.protos.common.Common.LastConfig result = new org.hyperledger.fabric.protos.common.Common.LastConfig(this); result.index_ = index_; 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.common.Common.LastConfig) { return mergeFrom((org.hyperledger.fabric.protos.common.Common.LastConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Common.LastConfig other) { if (other == org.hyperledger.fabric.protos.common.Common.LastConfig.getDefaultInstance()) return this; if (other.getIndex() != 0L) { setIndex(other.getIndex()); } 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.common.Common.LastConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.common.Common.LastConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long index_ ; /** * optional uint64 index = 1; */ public long getIndex() { return index_; } /** * optional uint64 index = 1; */ public Builder setIndex(long value) { index_ = value; onChanged(); return this; } /** * optional uint64 index = 1; */ public Builder clearIndex() { index_ = 0L; 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:common.LastConfig) } // @@protoc_insertion_point(class_scope:common.LastConfig) private static final org.hyperledger.fabric.protos.common.Common.LastConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Common.LastConfig(); } public static org.hyperledger.fabric.protos.common.Common.LastConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public LastConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LastConfig(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.common.Common.LastConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:common.Metadata) com.google.protobuf.MessageOrBuilder { /** * optional bytes value = 1; */ com.google.protobuf.ByteString getValue(); /** * repeated .common.MetadataSignature signatures = 2; */ java.util.List getSignaturesList(); /** * repeated .common.MetadataSignature signatures = 2; */ org.hyperledger.fabric.protos.common.Common.MetadataSignature getSignatures(int index); /** * repeated .common.MetadataSignature signatures = 2; */ int getSignaturesCount(); /** * repeated .common.MetadataSignature signatures = 2; */ java.util.List getSignaturesOrBuilderList(); /** * repeated .common.MetadataSignature signatures = 2; */ org.hyperledger.fabric.protos.common.Common.MetadataSignatureOrBuilder getSignaturesOrBuilder( int index); } /** *
   * Metadata is a common structure to be used to encode block metadata
   * 
* * Protobuf type {@code common.Metadata} */ public static final class Metadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.Metadata) MetadataOrBuilder { // Use Metadata.newBuilder() to construct. private Metadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Metadata() { value_ = com.google.protobuf.ByteString.EMPTY; signatures_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Metadata( 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: { value_ = input.readBytes(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { signatures_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } signatures_.add( input.readMessage(org.hyperledger.fabric.protos.common.Common.MetadataSignature.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_ & 0x00000002) == 0x00000002)) { signatures_ = java.util.Collections.unmodifiableList(signatures_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Metadata_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Metadata_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.Metadata.class, org.hyperledger.fabric.protos.common.Common.Metadata.Builder.class); } private int bitField0_; public static final int VALUE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString value_; /** * optional bytes value = 1; */ public com.google.protobuf.ByteString getValue() { return value_; } public static final int SIGNATURES_FIELD_NUMBER = 2; private java.util.List signatures_; /** * repeated .common.MetadataSignature signatures = 2; */ public java.util.List getSignaturesList() { return signatures_; } /** * repeated .common.MetadataSignature signatures = 2; */ public java.util.List getSignaturesOrBuilderList() { return signatures_; } /** * repeated .common.MetadataSignature signatures = 2; */ public int getSignaturesCount() { return signatures_.size(); } /** * repeated .common.MetadataSignature signatures = 2; */ public org.hyperledger.fabric.protos.common.Common.MetadataSignature getSignatures(int index) { return signatures_.get(index); } /** * repeated .common.MetadataSignature signatures = 2; */ public org.hyperledger.fabric.protos.common.Common.MetadataSignatureOrBuilder getSignaturesOrBuilder( int index) { return signatures_.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 (!value_.isEmpty()) { output.writeBytes(1, value_); } for (int i = 0; i < signatures_.size(); i++) { output.writeMessage(2, signatures_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, value_); } for (int i = 0; i < signatures_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, signatures_.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.common.Common.Metadata)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Common.Metadata other = (org.hyperledger.fabric.protos.common.Common.Metadata) obj; boolean result = true; result = result && getValue() .equals(other.getValue()); result = result && getSignaturesList() .equals(other.getSignaturesList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); if (getSignaturesCount() > 0) { hash = (37 * hash) + SIGNATURES_FIELD_NUMBER; hash = (53 * hash) + getSignaturesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Common.Metadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.Metadata 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.common.Common.Metadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.Metadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Common.Metadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.Metadata 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.common.Common.Metadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.Metadata 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.common.Common.Metadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.Metadata 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.common.Common.Metadata 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; } /** *
     * Metadata is a common structure to be used to encode block metadata
     * 
* * Protobuf type {@code common.Metadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.Metadata) org.hyperledger.fabric.protos.common.Common.MetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Metadata_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Metadata_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.Metadata.class, org.hyperledger.fabric.protos.common.Common.Metadata.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Common.Metadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSignaturesFieldBuilder(); } } public Builder clear() { super.clear(); value_ = com.google.protobuf.ByteString.EMPTY; if (signaturesBuilder_ == null) { signatures_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { signaturesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Metadata_descriptor; } public org.hyperledger.fabric.protos.common.Common.Metadata getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Common.Metadata.getDefaultInstance(); } public org.hyperledger.fabric.protos.common.Common.Metadata build() { org.hyperledger.fabric.protos.common.Common.Metadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.common.Common.Metadata buildPartial() { org.hyperledger.fabric.protos.common.Common.Metadata result = new org.hyperledger.fabric.protos.common.Common.Metadata(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.value_ = value_; if (signaturesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { signatures_ = java.util.Collections.unmodifiableList(signatures_); bitField0_ = (bitField0_ & ~0x00000002); } result.signatures_ = signatures_; } else { result.signatures_ = signaturesBuilder_.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.common.Common.Metadata) { return mergeFrom((org.hyperledger.fabric.protos.common.Common.Metadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Common.Metadata other) { if (other == org.hyperledger.fabric.protos.common.Common.Metadata.getDefaultInstance()) return this; if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } if (signaturesBuilder_ == null) { if (!other.signatures_.isEmpty()) { if (signatures_.isEmpty()) { signatures_ = other.signatures_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSignaturesIsMutable(); signatures_.addAll(other.signatures_); } onChanged(); } } else { if (!other.signatures_.isEmpty()) { if (signaturesBuilder_.isEmpty()) { signaturesBuilder_.dispose(); signaturesBuilder_ = null; signatures_ = other.signatures_; bitField0_ = (bitField0_ & ~0x00000002); signaturesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSignaturesFieldBuilder() : null; } else { signaturesBuilder_.addAllMessages(other.signatures_); } } } 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.common.Common.Metadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.common.Common.Metadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes value = 1; */ public com.google.protobuf.ByteString getValue() { return value_; } /** * optional bytes value = 1; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * optional bytes value = 1; */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } private java.util.List signatures_ = java.util.Collections.emptyList(); private void ensureSignaturesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { signatures_ = new java.util.ArrayList(signatures_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.common.Common.MetadataSignature, org.hyperledger.fabric.protos.common.Common.MetadataSignature.Builder, org.hyperledger.fabric.protos.common.Common.MetadataSignatureOrBuilder> signaturesBuilder_; /** * repeated .common.MetadataSignature signatures = 2; */ public java.util.List getSignaturesList() { if (signaturesBuilder_ == null) { return java.util.Collections.unmodifiableList(signatures_); } else { return signaturesBuilder_.getMessageList(); } } /** * repeated .common.MetadataSignature signatures = 2; */ public int getSignaturesCount() { if (signaturesBuilder_ == null) { return signatures_.size(); } else { return signaturesBuilder_.getCount(); } } /** * repeated .common.MetadataSignature signatures = 2; */ public org.hyperledger.fabric.protos.common.Common.MetadataSignature getSignatures(int index) { if (signaturesBuilder_ == null) { return signatures_.get(index); } else { return signaturesBuilder_.getMessage(index); } } /** * repeated .common.MetadataSignature signatures = 2; */ public Builder setSignatures( int index, org.hyperledger.fabric.protos.common.Common.MetadataSignature value) { if (signaturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSignaturesIsMutable(); signatures_.set(index, value); onChanged(); } else { signaturesBuilder_.setMessage(index, value); } return this; } /** * repeated .common.MetadataSignature signatures = 2; */ public Builder setSignatures( int index, org.hyperledger.fabric.protos.common.Common.MetadataSignature.Builder builderForValue) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.set(index, builderForValue.build()); onChanged(); } else { signaturesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .common.MetadataSignature signatures = 2; */ public Builder addSignatures(org.hyperledger.fabric.protos.common.Common.MetadataSignature value) { if (signaturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSignaturesIsMutable(); signatures_.add(value); onChanged(); } else { signaturesBuilder_.addMessage(value); } return this; } /** * repeated .common.MetadataSignature signatures = 2; */ public Builder addSignatures( int index, org.hyperledger.fabric.protos.common.Common.MetadataSignature value) { if (signaturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSignaturesIsMutable(); signatures_.add(index, value); onChanged(); } else { signaturesBuilder_.addMessage(index, value); } return this; } /** * repeated .common.MetadataSignature signatures = 2; */ public Builder addSignatures( org.hyperledger.fabric.protos.common.Common.MetadataSignature.Builder builderForValue) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.add(builderForValue.build()); onChanged(); } else { signaturesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .common.MetadataSignature signatures = 2; */ public Builder addSignatures( int index, org.hyperledger.fabric.protos.common.Common.MetadataSignature.Builder builderForValue) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.add(index, builderForValue.build()); onChanged(); } else { signaturesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .common.MetadataSignature signatures = 2; */ public Builder addAllSignatures( java.lang.Iterable values) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, signatures_); onChanged(); } else { signaturesBuilder_.addAllMessages(values); } return this; } /** * repeated .common.MetadataSignature signatures = 2; */ public Builder clearSignatures() { if (signaturesBuilder_ == null) { signatures_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { signaturesBuilder_.clear(); } return this; } /** * repeated .common.MetadataSignature signatures = 2; */ public Builder removeSignatures(int index) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.remove(index); onChanged(); } else { signaturesBuilder_.remove(index); } return this; } /** * repeated .common.MetadataSignature signatures = 2; */ public org.hyperledger.fabric.protos.common.Common.MetadataSignature.Builder getSignaturesBuilder( int index) { return getSignaturesFieldBuilder().getBuilder(index); } /** * repeated .common.MetadataSignature signatures = 2; */ public org.hyperledger.fabric.protos.common.Common.MetadataSignatureOrBuilder getSignaturesOrBuilder( int index) { if (signaturesBuilder_ == null) { return signatures_.get(index); } else { return signaturesBuilder_.getMessageOrBuilder(index); } } /** * repeated .common.MetadataSignature signatures = 2; */ public java.util.List getSignaturesOrBuilderList() { if (signaturesBuilder_ != null) { return signaturesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(signatures_); } } /** * repeated .common.MetadataSignature signatures = 2; */ public org.hyperledger.fabric.protos.common.Common.MetadataSignature.Builder addSignaturesBuilder() { return getSignaturesFieldBuilder().addBuilder( org.hyperledger.fabric.protos.common.Common.MetadataSignature.getDefaultInstance()); } /** * repeated .common.MetadataSignature signatures = 2; */ public org.hyperledger.fabric.protos.common.Common.MetadataSignature.Builder addSignaturesBuilder( int index) { return getSignaturesFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.common.Common.MetadataSignature.getDefaultInstance()); } /** * repeated .common.MetadataSignature signatures = 2; */ public java.util.List getSignaturesBuilderList() { return getSignaturesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.common.Common.MetadataSignature, org.hyperledger.fabric.protos.common.Common.MetadataSignature.Builder, org.hyperledger.fabric.protos.common.Common.MetadataSignatureOrBuilder> getSignaturesFieldBuilder() { if (signaturesBuilder_ == null) { signaturesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.common.Common.MetadataSignature, org.hyperledger.fabric.protos.common.Common.MetadataSignature.Builder, org.hyperledger.fabric.protos.common.Common.MetadataSignatureOrBuilder>( signatures_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); signatures_ = null; } return signaturesBuilder_; } 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:common.Metadata) } // @@protoc_insertion_point(class_scope:common.Metadata) private static final org.hyperledger.fabric.protos.common.Common.Metadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Common.Metadata(); } public static org.hyperledger.fabric.protos.common.Common.Metadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Metadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Metadata(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.common.Common.Metadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MetadataSignatureOrBuilder extends // @@protoc_insertion_point(interface_extends:common.MetadataSignature) com.google.protobuf.MessageOrBuilder { /** *
     * An encoded SignatureHeader
     * 
* * optional bytes signature_header = 1; */ com.google.protobuf.ByteString getSignatureHeader(); /** *
     * The signature over the concatenation of the Metadata value bytes, signatureHeader, and block header
     * 
* * optional bytes signature = 2; */ com.google.protobuf.ByteString getSignature(); } /** * Protobuf type {@code common.MetadataSignature} */ public static final class MetadataSignature extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.MetadataSignature) MetadataSignatureOrBuilder { // Use MetadataSignature.newBuilder() to construct. private MetadataSignature(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MetadataSignature() { signatureHeader_ = com.google.protobuf.ByteString.EMPTY; signature_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private MetadataSignature( 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: { signatureHeader_ = input.readBytes(); break; } case 18: { signature_ = 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.common.Common.internal_static_common_MetadataSignature_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_MetadataSignature_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.MetadataSignature.class, org.hyperledger.fabric.protos.common.Common.MetadataSignature.Builder.class); } public static final int SIGNATURE_HEADER_FIELD_NUMBER = 1; private com.google.protobuf.ByteString signatureHeader_; /** *
     * An encoded SignatureHeader
     * 
* * optional bytes signature_header = 1; */ public com.google.protobuf.ByteString getSignatureHeader() { return signatureHeader_; } public static final int SIGNATURE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString signature_; /** *
     * The signature over the concatenation of the Metadata value bytes, signatureHeader, and block header
     * 
* * optional bytes signature = 2; */ public com.google.protobuf.ByteString getSignature() { return signature_; } 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 (!signatureHeader_.isEmpty()) { output.writeBytes(1, signatureHeader_); } if (!signature_.isEmpty()) { output.writeBytes(2, signature_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!signatureHeader_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, signatureHeader_); } if (!signature_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, signature_); } 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.common.Common.MetadataSignature)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Common.MetadataSignature other = (org.hyperledger.fabric.protos.common.Common.MetadataSignature) obj; boolean result = true; result = result && getSignatureHeader() .equals(other.getSignatureHeader()); result = result && getSignature() .equals(other.getSignature()); 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_HEADER_FIELD_NUMBER; hash = (53 * hash) + getSignatureHeader().hashCode(); hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSignature().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Common.MetadataSignature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.MetadataSignature 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.common.Common.MetadataSignature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.MetadataSignature parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Common.MetadataSignature parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.MetadataSignature 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.common.Common.MetadataSignature parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.MetadataSignature 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.common.Common.MetadataSignature parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.MetadataSignature 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.common.Common.MetadataSignature 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 common.MetadataSignature} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.MetadataSignature) org.hyperledger.fabric.protos.common.Common.MetadataSignatureOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_MetadataSignature_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_MetadataSignature_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.MetadataSignature.class, org.hyperledger.fabric.protos.common.Common.MetadataSignature.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Common.MetadataSignature.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(); signatureHeader_ = com.google.protobuf.ByteString.EMPTY; signature_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_MetadataSignature_descriptor; } public org.hyperledger.fabric.protos.common.Common.MetadataSignature getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Common.MetadataSignature.getDefaultInstance(); } public org.hyperledger.fabric.protos.common.Common.MetadataSignature build() { org.hyperledger.fabric.protos.common.Common.MetadataSignature result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.common.Common.MetadataSignature buildPartial() { org.hyperledger.fabric.protos.common.Common.MetadataSignature result = new org.hyperledger.fabric.protos.common.Common.MetadataSignature(this); result.signatureHeader_ = signatureHeader_; result.signature_ = signature_; 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.common.Common.MetadataSignature) { return mergeFrom((org.hyperledger.fabric.protos.common.Common.MetadataSignature)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Common.MetadataSignature other) { if (other == org.hyperledger.fabric.protos.common.Common.MetadataSignature.getDefaultInstance()) return this; if (other.getSignatureHeader() != com.google.protobuf.ByteString.EMPTY) { setSignatureHeader(other.getSignatureHeader()); } if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { setSignature(other.getSignature()); } 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.common.Common.MetadataSignature parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.common.Common.MetadataSignature) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString signatureHeader_ = com.google.protobuf.ByteString.EMPTY; /** *
       * An encoded SignatureHeader
       * 
* * optional bytes signature_header = 1; */ public com.google.protobuf.ByteString getSignatureHeader() { return signatureHeader_; } /** *
       * An encoded SignatureHeader
       * 
* * optional bytes signature_header = 1; */ public Builder setSignatureHeader(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signatureHeader_ = value; onChanged(); return this; } /** *
       * An encoded SignatureHeader
       * 
* * optional bytes signature_header = 1; */ public Builder clearSignatureHeader() { signatureHeader_ = getDefaultInstance().getSignatureHeader(); onChanged(); return this; } private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** *
       * The signature over the concatenation of the Metadata value bytes, signatureHeader, and block header
       * 
* * optional bytes signature = 2; */ public com.google.protobuf.ByteString getSignature() { return signature_; } /** *
       * The signature over the concatenation of the Metadata value bytes, signatureHeader, and block header
       * 
* * optional bytes signature = 2; */ public Builder setSignature(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signature_ = value; onChanged(); return this; } /** *
       * The signature over the concatenation of the Metadata value bytes, signatureHeader, and block header
       * 
* * optional bytes signature = 2; */ public Builder clearSignature() { signature_ = getDefaultInstance().getSignature(); 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:common.MetadataSignature) } // @@protoc_insertion_point(class_scope:common.MetadataSignature) private static final org.hyperledger.fabric.protos.common.Common.MetadataSignature DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Common.MetadataSignature(); } public static org.hyperledger.fabric.protos.common.Common.MetadataSignature getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MetadataSignature parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MetadataSignature(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.common.Common.MetadataSignature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:common.Header) com.google.protobuf.MessageOrBuilder { /** * optional bytes channel_header = 1; */ com.google.protobuf.ByteString getChannelHeader(); /** * optional bytes signature_header = 2; */ com.google.protobuf.ByteString getSignatureHeader(); } /** * Protobuf type {@code common.Header} */ public static final class Header extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.Header) HeaderOrBuilder { // Use Header.newBuilder() to construct. private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Header() { channelHeader_ = com.google.protobuf.ByteString.EMPTY; signatureHeader_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Header( 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: { channelHeader_ = input.readBytes(); break; } case 18: { signatureHeader_ = 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.common.Common.internal_static_common_Header_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.Header.class, org.hyperledger.fabric.protos.common.Common.Header.Builder.class); } public static final int CHANNEL_HEADER_FIELD_NUMBER = 1; private com.google.protobuf.ByteString channelHeader_; /** * optional bytes channel_header = 1; */ public com.google.protobuf.ByteString getChannelHeader() { return channelHeader_; } public static final int SIGNATURE_HEADER_FIELD_NUMBER = 2; private com.google.protobuf.ByteString signatureHeader_; /** * optional bytes signature_header = 2; */ public com.google.protobuf.ByteString getSignatureHeader() { return signatureHeader_; } 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 (!channelHeader_.isEmpty()) { output.writeBytes(1, channelHeader_); } if (!signatureHeader_.isEmpty()) { output.writeBytes(2, signatureHeader_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!channelHeader_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, channelHeader_); } if (!signatureHeader_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, signatureHeader_); } 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.common.Common.Header)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Common.Header other = (org.hyperledger.fabric.protos.common.Common.Header) obj; boolean result = true; result = result && getChannelHeader() .equals(other.getChannelHeader()); result = result && getSignatureHeader() .equals(other.getSignatureHeader()); 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_HEADER_FIELD_NUMBER; hash = (53 * hash) + getChannelHeader().hashCode(); hash = (37 * hash) + SIGNATURE_HEADER_FIELD_NUMBER; hash = (53 * hash) + getSignatureHeader().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Common.Header parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.Header 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.common.Common.Header parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.Header parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Common.Header parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.Header 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.common.Common.Header parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.Header 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.common.Common.Header parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.Header 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.common.Common.Header 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 common.Header} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.Header) org.hyperledger.fabric.protos.common.Common.HeaderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Header_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.Header.class, org.hyperledger.fabric.protos.common.Common.Header.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Common.Header.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(); channelHeader_ = com.google.protobuf.ByteString.EMPTY; signatureHeader_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Header_descriptor; } public org.hyperledger.fabric.protos.common.Common.Header getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Common.Header.getDefaultInstance(); } public org.hyperledger.fabric.protos.common.Common.Header build() { org.hyperledger.fabric.protos.common.Common.Header result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.common.Common.Header buildPartial() { org.hyperledger.fabric.protos.common.Common.Header result = new org.hyperledger.fabric.protos.common.Common.Header(this); result.channelHeader_ = channelHeader_; result.signatureHeader_ = signatureHeader_; 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.common.Common.Header) { return mergeFrom((org.hyperledger.fabric.protos.common.Common.Header)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Common.Header other) { if (other == org.hyperledger.fabric.protos.common.Common.Header.getDefaultInstance()) return this; if (other.getChannelHeader() != com.google.protobuf.ByteString.EMPTY) { setChannelHeader(other.getChannelHeader()); } if (other.getSignatureHeader() != com.google.protobuf.ByteString.EMPTY) { setSignatureHeader(other.getSignatureHeader()); } 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.common.Common.Header parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.common.Common.Header) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString channelHeader_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes channel_header = 1; */ public com.google.protobuf.ByteString getChannelHeader() { return channelHeader_; } /** * optional bytes channel_header = 1; */ public Builder setChannelHeader(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } channelHeader_ = value; onChanged(); return this; } /** * optional bytes channel_header = 1; */ public Builder clearChannelHeader() { channelHeader_ = getDefaultInstance().getChannelHeader(); onChanged(); return this; } private com.google.protobuf.ByteString signatureHeader_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes signature_header = 2; */ public com.google.protobuf.ByteString getSignatureHeader() { return signatureHeader_; } /** * optional bytes signature_header = 2; */ public Builder setSignatureHeader(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signatureHeader_ = value; onChanged(); return this; } /** * optional bytes signature_header = 2; */ public Builder clearSignatureHeader() { signatureHeader_ = getDefaultInstance().getSignatureHeader(); 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:common.Header) } // @@protoc_insertion_point(class_scope:common.Header) private static final org.hyperledger.fabric.protos.common.Common.Header DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Common.Header(); } public static org.hyperledger.fabric.protos.common.Common.Header getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser
() { public Header parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Header(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.common.Common.Header getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChannelHeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:common.ChannelHeader) com.google.protobuf.MessageOrBuilder { /** *
     * Header types 0-10000 are reserved and defined by HeaderType
     * 
* * optional int32 type = 1; */ int getType(); /** *
     * Version indicates message protocol version
     * 
* * optional int32 version = 2; */ int getVersion(); /** *
     * Timestamp is the local time when the message was created
     * by the sender
     * 
* * optional .google.protobuf.Timestamp timestamp = 3; */ boolean hasTimestamp(); /** *
     * Timestamp is the local time when the message was created
     * by the sender
     * 
* * optional .google.protobuf.Timestamp timestamp = 3; */ com.google.protobuf.Timestamp getTimestamp(); /** *
     * Timestamp is the local time when the message was created
     * by the sender
     * 
* * optional .google.protobuf.Timestamp timestamp = 3; */ com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); /** *
     * Identifier of the channel this message is bound for
     * 
* * optional string channel_id = 4; */ java.lang.String getChannelId(); /** *
     * Identifier of the channel this message is bound for
     * 
* * optional string channel_id = 4; */ com.google.protobuf.ByteString getChannelIdBytes(); /** *
     * An unique identifier that is used end-to-end.
     *  -  set by higher layers such as end user or SDK
     *  -  passed to the endorser (which will check for uniqueness)
     *  -  as the header is passed along unchanged, it will be
     *     be retrieved by the committer (uniqueness check here as well)
     *  -  to be stored in the ledger
     * 
* * optional string tx_id = 5; */ java.lang.String getTxId(); /** *
     * An unique identifier that is used end-to-end.
     *  -  set by higher layers such as end user or SDK
     *  -  passed to the endorser (which will check for uniqueness)
     *  -  as the header is passed along unchanged, it will be
     *     be retrieved by the committer (uniqueness check here as well)
     *  -  to be stored in the ledger
     * 
* * optional string tx_id = 5; */ com.google.protobuf.ByteString getTxIdBytes(); /** *
     * The epoch in which this header was generated, where epoch is defined based on block height
     * Epoch in which the response has been generated. This field identifies a
     * logical window of time. A proposal response is accepted by a peer only if
     * two conditions hold:
     * 1. the epoch specified in the message is the current epoch
     * 2. this message has been only seen once during this epoch (i.e. it hasn't
     *    been replayed)
     * 
* * optional uint64 epoch = 6; */ long getEpoch(); /** *
     * Extension that may be attached based on the header type
     * 
* * optional bytes extension = 7; */ com.google.protobuf.ByteString getExtension(); /** *
     * If mutual TLS is employed, this represents
     * the hash of the client's TLS certificate
     * 
* * optional bytes tls_cert_hash = 8; */ com.google.protobuf.ByteString getTlsCertHash(); } /** *
   * Header is a generic replay prevention and identity message to include in a signed payload
   * 
* * Protobuf type {@code common.ChannelHeader} */ public static final class ChannelHeader extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.ChannelHeader) ChannelHeaderOrBuilder { // Use ChannelHeader.newBuilder() to construct. private ChannelHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChannelHeader() { type_ = 0; version_ = 0; channelId_ = ""; txId_ = ""; epoch_ = 0L; extension_ = 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 ChannelHeader( 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: { type_ = input.readInt32(); break; } case 16: { version_ = input.readInt32(); break; } case 26: { 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 34: { java.lang.String s = input.readStringRequireUtf8(); channelId_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); txId_ = s; break; } case 48: { epoch_ = input.readUInt64(); break; } case 58: { extension_ = input.readBytes(); break; } case 66: { 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.common.Common.internal_static_common_ChannelHeader_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_ChannelHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.ChannelHeader.class, org.hyperledger.fabric.protos.common.Common.ChannelHeader.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** *
     * Header types 0-10000 are reserved and defined by HeaderType
     * 
* * optional int32 type = 1; */ public int getType() { return type_; } public static final int VERSION_FIELD_NUMBER = 2; private int version_; /** *
     * Version indicates message protocol version
     * 
* * optional int32 version = 2; */ public int getVersion() { return version_; } public static final int TIMESTAMP_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp timestamp_; /** *
     * Timestamp is the local time when the message was created
     * by the sender
     * 
* * optional .google.protobuf.Timestamp timestamp = 3; */ public boolean hasTimestamp() { return timestamp_ != null; } /** *
     * Timestamp is the local time when the message was created
     * by the sender
     * 
* * optional .google.protobuf.Timestamp timestamp = 3; */ public com.google.protobuf.Timestamp getTimestamp() { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } /** *
     * Timestamp is the local time when the message was created
     * by the sender
     * 
* * optional .google.protobuf.Timestamp timestamp = 3; */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { return getTimestamp(); } public static final int CHANNEL_ID_FIELD_NUMBER = 4; private volatile java.lang.Object channelId_; /** *
     * Identifier of the channel this message is bound for
     * 
* * optional string channel_id = 4; */ 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; } } /** *
     * Identifier of the channel this message is bound for
     * 
* * optional string channel_id = 4; */ 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 TX_ID_FIELD_NUMBER = 5; private volatile java.lang.Object txId_; /** *
     * An unique identifier that is used end-to-end.
     *  -  set by higher layers such as end user or SDK
     *  -  passed to the endorser (which will check for uniqueness)
     *  -  as the header is passed along unchanged, it will be
     *     be retrieved by the committer (uniqueness check here as well)
     *  -  to be stored in the ledger
     * 
* * optional string tx_id = 5; */ 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; } } /** *
     * An unique identifier that is used end-to-end.
     *  -  set by higher layers such as end user or SDK
     *  -  passed to the endorser (which will check for uniqueness)
     *  -  as the header is passed along unchanged, it will be
     *     be retrieved by the committer (uniqueness check here as well)
     *  -  to be stored in the ledger
     * 
* * optional string tx_id = 5; */ 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 EPOCH_FIELD_NUMBER = 6; private long epoch_; /** *
     * The epoch in which this header was generated, where epoch is defined based on block height
     * Epoch in which the response has been generated. This field identifies a
     * logical window of time. A proposal response is accepted by a peer only if
     * two conditions hold:
     * 1. the epoch specified in the message is the current epoch
     * 2. this message has been only seen once during this epoch (i.e. it hasn't
     *    been replayed)
     * 
* * optional uint64 epoch = 6; */ public long getEpoch() { return epoch_; } public static final int EXTENSION_FIELD_NUMBER = 7; private com.google.protobuf.ByteString extension_; /** *
     * Extension that may be attached based on the header type
     * 
* * optional bytes extension = 7; */ public com.google.protobuf.ByteString getExtension() { return extension_; } public static final int TLS_CERT_HASH_FIELD_NUMBER = 8; 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 = 8; */ 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 (type_ != 0) { output.writeInt32(1, type_); } if (version_ != 0) { output.writeInt32(2, version_); } if (timestamp_ != null) { output.writeMessage(3, getTimestamp()); } if (!getChannelIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, channelId_); } if (!getTxIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, txId_); } if (epoch_ != 0L) { output.writeUInt64(6, epoch_); } if (!extension_.isEmpty()) { output.writeBytes(7, extension_); } if (!tlsCertHash_.isEmpty()) { output.writeBytes(8, tlsCertHash_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, type_); } if (version_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, version_); } if (timestamp_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTimestamp()); } if (!getChannelIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, channelId_); } if (!getTxIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, txId_); } if (epoch_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, epoch_); } if (!extension_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, extension_); } if (!tlsCertHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, 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.common.Common.ChannelHeader)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Common.ChannelHeader other = (org.hyperledger.fabric.protos.common.Common.ChannelHeader) obj; boolean result = true; result = result && (getType() == other.getType()); result = result && (getVersion() == other.getVersion()); result = result && (hasTimestamp() == other.hasTimestamp()); if (hasTimestamp()) { result = result && getTimestamp() .equals(other.getTimestamp()); } result = result && getChannelId() .equals(other.getChannelId()); result = result && getTxId() .equals(other.getTxId()); result = result && (getEpoch() == other.getEpoch()); result = result && getExtension() .equals(other.getExtension()); result = result && getTlsCertHash() .equals(other.getTlsCertHash()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion(); if (hasTimestamp()) { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getTimestamp().hashCode(); } hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; hash = (53 * hash) + getChannelId().hashCode(); hash = (37 * hash) + TX_ID_FIELD_NUMBER; hash = (53 * hash) + getTxId().hashCode(); hash = (37 * hash) + EPOCH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEpoch()); hash = (37 * hash) + EXTENSION_FIELD_NUMBER; hash = (53 * hash) + getExtension().hashCode(); hash = (37 * hash) + TLS_CERT_HASH_FIELD_NUMBER; hash = (53 * hash) + getTlsCertHash().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Common.ChannelHeader parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.ChannelHeader 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.common.Common.ChannelHeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.ChannelHeader parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Common.ChannelHeader parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.ChannelHeader 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.common.Common.ChannelHeader parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.ChannelHeader 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.common.Common.ChannelHeader parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.ChannelHeader 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.common.Common.ChannelHeader 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; } /** *
     * Header is a generic replay prevention and identity message to include in a signed payload
     * 
* * Protobuf type {@code common.ChannelHeader} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.ChannelHeader) org.hyperledger.fabric.protos.common.Common.ChannelHeaderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_ChannelHeader_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_ChannelHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.ChannelHeader.class, org.hyperledger.fabric.protos.common.Common.ChannelHeader.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Common.ChannelHeader.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(); type_ = 0; version_ = 0; if (timestampBuilder_ == null) { timestamp_ = null; } else { timestamp_ = null; timestampBuilder_ = null; } channelId_ = ""; txId_ = ""; epoch_ = 0L; extension_ = com.google.protobuf.ByteString.EMPTY; tlsCertHash_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_ChannelHeader_descriptor; } public org.hyperledger.fabric.protos.common.Common.ChannelHeader getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Common.ChannelHeader.getDefaultInstance(); } public org.hyperledger.fabric.protos.common.Common.ChannelHeader build() { org.hyperledger.fabric.protos.common.Common.ChannelHeader result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.common.Common.ChannelHeader buildPartial() { org.hyperledger.fabric.protos.common.Common.ChannelHeader result = new org.hyperledger.fabric.protos.common.Common.ChannelHeader(this); result.type_ = type_; result.version_ = version_; if (timestampBuilder_ == null) { result.timestamp_ = timestamp_; } else { result.timestamp_ = timestampBuilder_.build(); } result.channelId_ = channelId_; result.txId_ = txId_; result.epoch_ = epoch_; result.extension_ = extension_; result.tlsCertHash_ = tlsCertHash_; 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.common.Common.ChannelHeader) { return mergeFrom((org.hyperledger.fabric.protos.common.Common.ChannelHeader)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Common.ChannelHeader other) { if (other == org.hyperledger.fabric.protos.common.Common.ChannelHeader.getDefaultInstance()) return this; if (other.getType() != 0) { setType(other.getType()); } if (other.getVersion() != 0) { setVersion(other.getVersion()); } if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } if (!other.getChannelId().isEmpty()) { channelId_ = other.channelId_; onChanged(); } if (!other.getTxId().isEmpty()) { txId_ = other.txId_; onChanged(); } if (other.getEpoch() != 0L) { setEpoch(other.getEpoch()); } if (other.getExtension() != com.google.protobuf.ByteString.EMPTY) { setExtension(other.getExtension()); } if (other.getTlsCertHash() != com.google.protobuf.ByteString.EMPTY) { setTlsCertHash(other.getTlsCertHash()); } 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.common.Common.ChannelHeader parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.common.Common.ChannelHeader) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int type_ ; /** *
       * Header types 0-10000 are reserved and defined by HeaderType
       * 
* * optional int32 type = 1; */ public int getType() { return type_; } /** *
       * Header types 0-10000 are reserved and defined by HeaderType
       * 
* * optional int32 type = 1; */ public Builder setType(int value) { type_ = value; onChanged(); return this; } /** *
       * Header types 0-10000 are reserved and defined by HeaderType
       * 
* * optional int32 type = 1; */ public Builder clearType() { type_ = 0; onChanged(); return this; } private int version_ ; /** *
       * Version indicates message protocol version
       * 
* * optional int32 version = 2; */ public int getVersion() { return version_; } /** *
       * Version indicates message protocol version
       * 
* * optional int32 version = 2; */ public Builder setVersion(int value) { version_ = value; onChanged(); return this; } /** *
       * Version indicates message protocol version
       * 
* * optional int32 version = 2; */ public Builder clearVersion() { version_ = 0; 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 is the local time when the message was created
       * by the sender
       * 
* * optional .google.protobuf.Timestamp timestamp = 3; */ public boolean hasTimestamp() { return timestampBuilder_ != null || timestamp_ != null; } /** *
       * Timestamp is the local time when the message was created
       * by the sender
       * 
* * optional .google.protobuf.Timestamp timestamp = 3; */ public com.google.protobuf.Timestamp getTimestamp() { if (timestampBuilder_ == null) { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } else { return timestampBuilder_.getMessage(); } } /** *
       * Timestamp is the local time when the message was created
       * by the sender
       * 
* * optional .google.protobuf.Timestamp timestamp = 3; */ 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 is the local time when the message was created
       * by the sender
       * 
* * optional .google.protobuf.Timestamp timestamp = 3; */ public Builder setTimestamp( com.google.protobuf.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); onChanged(); } else { timestampBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Timestamp is the local time when the message was created
       * by the sender
       * 
* * optional .google.protobuf.Timestamp timestamp = 3; */ 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 is the local time when the message was created
       * by the sender
       * 
* * optional .google.protobuf.Timestamp timestamp = 3; */ public Builder clearTimestamp() { if (timestampBuilder_ == null) { timestamp_ = null; onChanged(); } else { timestamp_ = null; timestampBuilder_ = null; } return this; } /** *
       * Timestamp is the local time when the message was created
       * by the sender
       * 
* * optional .google.protobuf.Timestamp timestamp = 3; */ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** *
       * Timestamp is the local time when the message was created
       * by the sender
       * 
* * optional .google.protobuf.Timestamp timestamp = 3; */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } } /** *
       * Timestamp is the local time when the message was created
       * by the sender
       * 
* * optional .google.protobuf.Timestamp timestamp = 3; */ 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 java.lang.Object channelId_ = ""; /** *
       * Identifier of the channel this message is bound for
       * 
* * optional string channel_id = 4; */ 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; } } /** *
       * Identifier of the channel this message is bound for
       * 
* * optional string channel_id = 4; */ 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; } } /** *
       * Identifier of the channel this message is bound for
       * 
* * optional string channel_id = 4; */ public Builder setChannelId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } channelId_ = value; onChanged(); return this; } /** *
       * Identifier of the channel this message is bound for
       * 
* * optional string channel_id = 4; */ public Builder clearChannelId() { channelId_ = getDefaultInstance().getChannelId(); onChanged(); return this; } /** *
       * Identifier of the channel this message is bound for
       * 
* * optional string channel_id = 4; */ public Builder setChannelIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); channelId_ = value; onChanged(); return this; } private java.lang.Object txId_ = ""; /** *
       * An unique identifier that is used end-to-end.
       *  -  set by higher layers such as end user or SDK
       *  -  passed to the endorser (which will check for uniqueness)
       *  -  as the header is passed along unchanged, it will be
       *     be retrieved by the committer (uniqueness check here as well)
       *  -  to be stored in the ledger
       * 
* * optional string tx_id = 5; */ 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; } } /** *
       * An unique identifier that is used end-to-end.
       *  -  set by higher layers such as end user or SDK
       *  -  passed to the endorser (which will check for uniqueness)
       *  -  as the header is passed along unchanged, it will be
       *     be retrieved by the committer (uniqueness check here as well)
       *  -  to be stored in the ledger
       * 
* * optional string tx_id = 5; */ 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; } } /** *
       * An unique identifier that is used end-to-end.
       *  -  set by higher layers such as end user or SDK
       *  -  passed to the endorser (which will check for uniqueness)
       *  -  as the header is passed along unchanged, it will be
       *     be retrieved by the committer (uniqueness check here as well)
       *  -  to be stored in the ledger
       * 
* * optional string tx_id = 5; */ public Builder setTxId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } txId_ = value; onChanged(); return this; } /** *
       * An unique identifier that is used end-to-end.
       *  -  set by higher layers such as end user or SDK
       *  -  passed to the endorser (which will check for uniqueness)
       *  -  as the header is passed along unchanged, it will be
       *     be retrieved by the committer (uniqueness check here as well)
       *  -  to be stored in the ledger
       * 
* * optional string tx_id = 5; */ public Builder clearTxId() { txId_ = getDefaultInstance().getTxId(); onChanged(); return this; } /** *
       * An unique identifier that is used end-to-end.
       *  -  set by higher layers such as end user or SDK
       *  -  passed to the endorser (which will check for uniqueness)
       *  -  as the header is passed along unchanged, it will be
       *     be retrieved by the committer (uniqueness check here as well)
       *  -  to be stored in the ledger
       * 
* * optional string tx_id = 5; */ public Builder setTxIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); txId_ = value; onChanged(); return this; } private long epoch_ ; /** *
       * The epoch in which this header was generated, where epoch is defined based on block height
       * Epoch in which the response has been generated. This field identifies a
       * logical window of time. A proposal response is accepted by a peer only if
       * two conditions hold:
       * 1. the epoch specified in the message is the current epoch
       * 2. this message has been only seen once during this epoch (i.e. it hasn't
       *    been replayed)
       * 
* * optional uint64 epoch = 6; */ public long getEpoch() { return epoch_; } /** *
       * The epoch in which this header was generated, where epoch is defined based on block height
       * Epoch in which the response has been generated. This field identifies a
       * logical window of time. A proposal response is accepted by a peer only if
       * two conditions hold:
       * 1. the epoch specified in the message is the current epoch
       * 2. this message has been only seen once during this epoch (i.e. it hasn't
       *    been replayed)
       * 
* * optional uint64 epoch = 6; */ public Builder setEpoch(long value) { epoch_ = value; onChanged(); return this; } /** *
       * The epoch in which this header was generated, where epoch is defined based on block height
       * Epoch in which the response has been generated. This field identifies a
       * logical window of time. A proposal response is accepted by a peer only if
       * two conditions hold:
       * 1. the epoch specified in the message is the current epoch
       * 2. this message has been only seen once during this epoch (i.e. it hasn't
       *    been replayed)
       * 
* * optional uint64 epoch = 6; */ public Builder clearEpoch() { epoch_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString extension_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Extension that may be attached based on the header type
       * 
* * optional bytes extension = 7; */ public com.google.protobuf.ByteString getExtension() { return extension_; } /** *
       * Extension that may be attached based on the header type
       * 
* * optional bytes extension = 7; */ public Builder setExtension(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } extension_ = value; onChanged(); return this; } /** *
       * Extension that may be attached based on the header type
       * 
* * optional bytes extension = 7; */ public Builder clearExtension() { extension_ = getDefaultInstance().getExtension(); onChanged(); return this; } 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 = 8; */ 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 = 8; */ 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 = 8; */ 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:common.ChannelHeader) } // @@protoc_insertion_point(class_scope:common.ChannelHeader) private static final org.hyperledger.fabric.protos.common.Common.ChannelHeader DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Common.ChannelHeader(); } public static org.hyperledger.fabric.protos.common.Common.ChannelHeader getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ChannelHeader parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChannelHeader(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.common.Common.ChannelHeader getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SignatureHeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:common.SignatureHeader) com.google.protobuf.MessageOrBuilder { /** *
     * Creator of the message, a marshaled msp.SerializedIdentity
     * 
* * optional bytes creator = 1; */ com.google.protobuf.ByteString getCreator(); /** *
     * Arbitrary number that may only be used once. Can be used to detect replay attacks.
     * 
* * optional bytes nonce = 2; */ com.google.protobuf.ByteString getNonce(); } /** * Protobuf type {@code common.SignatureHeader} */ public static final class SignatureHeader extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.SignatureHeader) SignatureHeaderOrBuilder { // Use SignatureHeader.newBuilder() to construct. private SignatureHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SignatureHeader() { creator_ = com.google.protobuf.ByteString.EMPTY; nonce_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SignatureHeader( 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: { creator_ = input.readBytes(); break; } case 18: { nonce_ = 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.common.Common.internal_static_common_SignatureHeader_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_SignatureHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.SignatureHeader.class, org.hyperledger.fabric.protos.common.Common.SignatureHeader.Builder.class); } public static final int CREATOR_FIELD_NUMBER = 1; private com.google.protobuf.ByteString creator_; /** *
     * Creator of the message, a marshaled msp.SerializedIdentity
     * 
* * optional bytes creator = 1; */ public com.google.protobuf.ByteString getCreator() { return creator_; } public static final int NONCE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString nonce_; /** *
     * Arbitrary number that may only be used once. Can be used to detect replay attacks.
     * 
* * optional bytes nonce = 2; */ public com.google.protobuf.ByteString getNonce() { return nonce_; } 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 (!creator_.isEmpty()) { output.writeBytes(1, creator_); } if (!nonce_.isEmpty()) { output.writeBytes(2, nonce_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!creator_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, creator_); } if (!nonce_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, nonce_); } 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.common.Common.SignatureHeader)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Common.SignatureHeader other = (org.hyperledger.fabric.protos.common.Common.SignatureHeader) obj; boolean result = true; result = result && getCreator() .equals(other.getCreator()); result = result && getNonce() .equals(other.getNonce()); 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(); hash = (37 * hash) + NONCE_FIELD_NUMBER; hash = (53 * hash) + getNonce().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Common.SignatureHeader parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.SignatureHeader 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.common.Common.SignatureHeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.SignatureHeader parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Common.SignatureHeader parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.SignatureHeader 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.common.Common.SignatureHeader parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.SignatureHeader 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.common.Common.SignatureHeader parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.SignatureHeader 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.common.Common.SignatureHeader 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 common.SignatureHeader} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.SignatureHeader) org.hyperledger.fabric.protos.common.Common.SignatureHeaderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_SignatureHeader_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_SignatureHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.SignatureHeader.class, org.hyperledger.fabric.protos.common.Common.SignatureHeader.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Common.SignatureHeader.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; nonce_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_SignatureHeader_descriptor; } public org.hyperledger.fabric.protos.common.Common.SignatureHeader getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Common.SignatureHeader.getDefaultInstance(); } public org.hyperledger.fabric.protos.common.Common.SignatureHeader build() { org.hyperledger.fabric.protos.common.Common.SignatureHeader result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.common.Common.SignatureHeader buildPartial() { org.hyperledger.fabric.protos.common.Common.SignatureHeader result = new org.hyperledger.fabric.protos.common.Common.SignatureHeader(this); result.creator_ = creator_; result.nonce_ = nonce_; 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.common.Common.SignatureHeader) { return mergeFrom((org.hyperledger.fabric.protos.common.Common.SignatureHeader)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Common.SignatureHeader other) { if (other == org.hyperledger.fabric.protos.common.Common.SignatureHeader.getDefaultInstance()) return this; if (other.getCreator() != com.google.protobuf.ByteString.EMPTY) { setCreator(other.getCreator()); } if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { setNonce(other.getNonce()); } 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.common.Common.SignatureHeader parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.common.Common.SignatureHeader) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString creator_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Creator of the message, a marshaled msp.SerializedIdentity
       * 
* * optional bytes creator = 1; */ public com.google.protobuf.ByteString getCreator() { return creator_; } /** *
       * Creator of the message, a marshaled msp.SerializedIdentity
       * 
* * optional bytes creator = 1; */ public Builder setCreator(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } creator_ = value; onChanged(); return this; } /** *
       * Creator of the message, a marshaled msp.SerializedIdentity
       * 
* * optional bytes creator = 1; */ public Builder clearCreator() { creator_ = getDefaultInstance().getCreator(); onChanged(); return this; } private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Arbitrary number that may only be used once. Can be used to detect replay attacks.
       * 
* * optional bytes nonce = 2; */ public com.google.protobuf.ByteString getNonce() { return nonce_; } /** *
       * Arbitrary number that may only be used once. Can be used to detect replay attacks.
       * 
* * optional bytes nonce = 2; */ public Builder setNonce(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } nonce_ = value; onChanged(); return this; } /** *
       * Arbitrary number that may only be used once. Can be used to detect replay attacks.
       * 
* * optional bytes nonce = 2; */ public Builder clearNonce() { nonce_ = getDefaultInstance().getNonce(); 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:common.SignatureHeader) } // @@protoc_insertion_point(class_scope:common.SignatureHeader) private static final org.hyperledger.fabric.protos.common.Common.SignatureHeader DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Common.SignatureHeader(); } public static org.hyperledger.fabric.protos.common.Common.SignatureHeader getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SignatureHeader parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SignatureHeader(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.common.Common.SignatureHeader getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PayloadOrBuilder extends // @@protoc_insertion_point(interface_extends:common.Payload) com.google.protobuf.MessageOrBuilder { /** *
     * Header is included to provide identity and prevent replay
     * 
* * optional .common.Header header = 1; */ boolean hasHeader(); /** *
     * Header is included to provide identity and prevent replay
     * 
* * optional .common.Header header = 1; */ org.hyperledger.fabric.protos.common.Common.Header getHeader(); /** *
     * Header is included to provide identity and prevent replay
     * 
* * optional .common.Header header = 1; */ org.hyperledger.fabric.protos.common.Common.HeaderOrBuilder getHeaderOrBuilder(); /** *
     * Data, the encoding of which is defined by the type in the header
     * 
* * optional bytes data = 2; */ com.google.protobuf.ByteString getData(); } /** *
   * Payload is the message contents (and header to allow for signing)
   * 
* * Protobuf type {@code common.Payload} */ public static final class Payload extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.Payload) PayloadOrBuilder { // Use Payload.newBuilder() to construct. private Payload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Payload() { data_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Payload( 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.common.Common.Header.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.hyperledger.fabric.protos.common.Common.Header.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { data_ = 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.common.Common.internal_static_common_Payload_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Payload_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.Payload.class, org.hyperledger.fabric.protos.common.Common.Payload.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.common.Common.Header header_; /** *
     * Header is included to provide identity and prevent replay
     * 
* * optional .common.Header header = 1; */ public boolean hasHeader() { return header_ != null; } /** *
     * Header is included to provide identity and prevent replay
     * 
* * optional .common.Header header = 1; */ public org.hyperledger.fabric.protos.common.Common.Header getHeader() { return header_ == null ? org.hyperledger.fabric.protos.common.Common.Header.getDefaultInstance() : header_; } /** *
     * Header is included to provide identity and prevent replay
     * 
* * optional .common.Header header = 1; */ public org.hyperledger.fabric.protos.common.Common.HeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int DATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString data_; /** *
     * Data, the encoding of which is defined by the type in the header
     * 
* * optional bytes data = 2; */ public com.google.protobuf.ByteString getData() { return data_; } 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 (header_ != null) { output.writeMessage(1, getHeader()); } if (!data_.isEmpty()) { output.writeBytes(2, data_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, 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.common.Common.Payload)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Common.Payload other = (org.hyperledger.fabric.protos.common.Common.Payload) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && getData() .equals(other.getData()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Common.Payload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.Payload 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.common.Common.Payload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.Payload parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Common.Payload parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.Payload 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.common.Common.Payload parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.Payload 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.common.Common.Payload parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.Payload 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.common.Common.Payload 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; } /** *
     * Payload is the message contents (and header to allow for signing)
     * 
* * Protobuf type {@code common.Payload} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.Payload) org.hyperledger.fabric.protos.common.Common.PayloadOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Payload_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Payload_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.Payload.class, org.hyperledger.fabric.protos.common.Common.Payload.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Common.Payload.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 (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } data_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Payload_descriptor; } public org.hyperledger.fabric.protos.common.Common.Payload getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Common.Payload.getDefaultInstance(); } public org.hyperledger.fabric.protos.common.Common.Payload build() { org.hyperledger.fabric.protos.common.Common.Payload result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.common.Common.Payload buildPartial() { org.hyperledger.fabric.protos.common.Common.Payload result = new org.hyperledger.fabric.protos.common.Common.Payload(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.data_ = data_; 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.common.Common.Payload) { return mergeFrom((org.hyperledger.fabric.protos.common.Common.Payload)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Common.Payload other) { if (other == org.hyperledger.fabric.protos.common.Common.Payload.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } 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.common.Common.Payload parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.common.Common.Payload) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.hyperledger.fabric.protos.common.Common.Header header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Common.Header, org.hyperledger.fabric.protos.common.Common.Header.Builder, org.hyperledger.fabric.protos.common.Common.HeaderOrBuilder> headerBuilder_; /** *
       * Header is included to provide identity and prevent replay
       * 
* * optional .common.Header header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** *
       * Header is included to provide identity and prevent replay
       * 
* * optional .common.Header header = 1; */ public org.hyperledger.fabric.protos.common.Common.Header getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.hyperledger.fabric.protos.common.Common.Header.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** *
       * Header is included to provide identity and prevent replay
       * 
* * optional .common.Header header = 1; */ public Builder setHeader(org.hyperledger.fabric.protos.common.Common.Header value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** *
       * Header is included to provide identity and prevent replay
       * 
* * optional .common.Header header = 1; */ public Builder setHeader( org.hyperledger.fabric.protos.common.Common.Header.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Header is included to provide identity and prevent replay
       * 
* * optional .common.Header header = 1; */ public Builder mergeHeader(org.hyperledger.fabric.protos.common.Common.Header value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.hyperledger.fabric.protos.common.Common.Header.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** *
       * Header is included to provide identity and prevent replay
       * 
* * optional .common.Header header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** *
       * Header is included to provide identity and prevent replay
       * 
* * optional .common.Header header = 1; */ public org.hyperledger.fabric.protos.common.Common.Header.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** *
       * Header is included to provide identity and prevent replay
       * 
* * optional .common.Header header = 1; */ public org.hyperledger.fabric.protos.common.Common.HeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.hyperledger.fabric.protos.common.Common.Header.getDefaultInstance() : header_; } } /** *
       * Header is included to provide identity and prevent replay
       * 
* * optional .common.Header header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Common.Header, org.hyperledger.fabric.protos.common.Common.Header.Builder, org.hyperledger.fabric.protos.common.Common.HeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Common.Header, org.hyperledger.fabric.protos.common.Common.Header.Builder, org.hyperledger.fabric.protos.common.Common.HeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Data, the encoding of which is defined by the type in the header
       * 
* * optional bytes data = 2; */ public com.google.protobuf.ByteString getData() { return data_; } /** *
       * Data, the encoding of which is defined by the type in the header
       * 
* * optional bytes data = 2; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); return this; } /** *
       * Data, the encoding of which is defined by the type in the header
       * 
* * optional bytes data = 2; */ public Builder clearData() { data_ = getDefaultInstance().getData(); 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:common.Payload) } // @@protoc_insertion_point(class_scope:common.Payload) private static final org.hyperledger.fabric.protos.common.Common.Payload DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Common.Payload(); } public static org.hyperledger.fabric.protos.common.Common.Payload getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Payload parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Payload(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.common.Common.Payload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnvelopeOrBuilder extends // @@protoc_insertion_point(interface_extends:common.Envelope) com.google.protobuf.MessageOrBuilder { /** *
     * A marshaled Payload
     * 
* * optional bytes payload = 1; */ com.google.protobuf.ByteString getPayload(); /** *
     * A signature by the creator specified in the Payload header
     * 
* * optional bytes signature = 2; */ com.google.protobuf.ByteString getSignature(); } /** *
   * Envelope wraps a Payload with a signature so that the message may be authenticated
   * 
* * Protobuf type {@code common.Envelope} */ public static final class Envelope extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.Envelope) EnvelopeOrBuilder { // Use Envelope.newBuilder() to construct. private Envelope(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Envelope() { payload_ = com.google.protobuf.ByteString.EMPTY; signature_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Envelope( 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: { payload_ = input.readBytes(); break; } case 18: { signature_ = 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.common.Common.internal_static_common_Envelope_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Envelope_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.Envelope.class, org.hyperledger.fabric.protos.common.Common.Envelope.Builder.class); } public static final int PAYLOAD_FIELD_NUMBER = 1; private com.google.protobuf.ByteString payload_; /** *
     * A marshaled Payload
     * 
* * optional bytes payload = 1; */ public com.google.protobuf.ByteString getPayload() { return payload_; } public static final int SIGNATURE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString signature_; /** *
     * A signature by the creator specified in the Payload header
     * 
* * optional bytes signature = 2; */ public com.google.protobuf.ByteString getSignature() { return signature_; } 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 (!payload_.isEmpty()) { output.writeBytes(1, payload_); } if (!signature_.isEmpty()) { output.writeBytes(2, signature_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!payload_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, payload_); } if (!signature_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, signature_); } 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.common.Common.Envelope)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Common.Envelope other = (org.hyperledger.fabric.protos.common.Common.Envelope) obj; boolean result = true; result = result && getPayload() .equals(other.getPayload()); result = result && getSignature() .equals(other.getSignature()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSignature().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Common.Envelope parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.Envelope 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.common.Common.Envelope parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.Envelope parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Common.Envelope parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.Envelope 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.common.Common.Envelope parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.Envelope 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.common.Common.Envelope parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.Envelope 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.common.Common.Envelope 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; } /** *
     * Envelope wraps a Payload with a signature so that the message may be authenticated
     * 
* * Protobuf type {@code common.Envelope} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.Envelope) org.hyperledger.fabric.protos.common.Common.EnvelopeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Envelope_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Envelope_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.Envelope.class, org.hyperledger.fabric.protos.common.Common.Envelope.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Common.Envelope.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(); payload_ = com.google.protobuf.ByteString.EMPTY; signature_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Envelope_descriptor; } public org.hyperledger.fabric.protos.common.Common.Envelope getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Common.Envelope.getDefaultInstance(); } public org.hyperledger.fabric.protos.common.Common.Envelope build() { org.hyperledger.fabric.protos.common.Common.Envelope result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.common.Common.Envelope buildPartial() { org.hyperledger.fabric.protos.common.Common.Envelope result = new org.hyperledger.fabric.protos.common.Common.Envelope(this); result.payload_ = payload_; result.signature_ = signature_; 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.common.Common.Envelope) { return mergeFrom((org.hyperledger.fabric.protos.common.Common.Envelope)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Common.Envelope other) { if (other == org.hyperledger.fabric.protos.common.Common.Envelope.getDefaultInstance()) return this; if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { setPayload(other.getPayload()); } if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { setSignature(other.getSignature()); } 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.common.Common.Envelope parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.common.Common.Envelope) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; /** *
       * A marshaled Payload
       * 
* * optional bytes payload = 1; */ public com.google.protobuf.ByteString getPayload() { return payload_; } /** *
       * A marshaled Payload
       * 
* * optional bytes payload = 1; */ public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); return this; } /** *
       * A marshaled Payload
       * 
* * optional bytes payload = 1; */ public Builder clearPayload() { payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** *
       * A signature by the creator specified in the Payload header
       * 
* * optional bytes signature = 2; */ public com.google.protobuf.ByteString getSignature() { return signature_; } /** *
       * A signature by the creator specified in the Payload header
       * 
* * optional bytes signature = 2; */ public Builder setSignature(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signature_ = value; onChanged(); return this; } /** *
       * A signature by the creator specified in the Payload header
       * 
* * optional bytes signature = 2; */ public Builder clearSignature() { signature_ = getDefaultInstance().getSignature(); 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:common.Envelope) } // @@protoc_insertion_point(class_scope:common.Envelope) private static final org.hyperledger.fabric.protos.common.Common.Envelope DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Common.Envelope(); } public static org.hyperledger.fabric.protos.common.Common.Envelope getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Envelope parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Envelope(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.common.Common.Envelope getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BlockOrBuilder extends // @@protoc_insertion_point(interface_extends:common.Block) com.google.protobuf.MessageOrBuilder { /** * optional .common.BlockHeader header = 1; */ boolean hasHeader(); /** * optional .common.BlockHeader header = 1; */ org.hyperledger.fabric.protos.common.Common.BlockHeader getHeader(); /** * optional .common.BlockHeader header = 1; */ org.hyperledger.fabric.protos.common.Common.BlockHeaderOrBuilder getHeaderOrBuilder(); /** * optional .common.BlockData data = 2; */ boolean hasData(); /** * optional .common.BlockData data = 2; */ org.hyperledger.fabric.protos.common.Common.BlockData getData(); /** * optional .common.BlockData data = 2; */ org.hyperledger.fabric.protos.common.Common.BlockDataOrBuilder getDataOrBuilder(); /** * optional .common.BlockMetadata metadata = 3; */ boolean hasMetadata(); /** * optional .common.BlockMetadata metadata = 3; */ org.hyperledger.fabric.protos.common.Common.BlockMetadata getMetadata(); /** * optional .common.BlockMetadata metadata = 3; */ org.hyperledger.fabric.protos.common.Common.BlockMetadataOrBuilder getMetadataOrBuilder(); } /** *
   * This is finalized block structure to be shared among the orderer and peer
   * Note that the BlockHeader chains to the previous BlockHeader, and the BlockData hash is embedded
   * in the BlockHeader.  This makes it natural and obvious that the Data is included in the hash, but
   * the Metadata is not.
   * 
* * Protobuf type {@code common.Block} */ public static final class Block extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.Block) BlockOrBuilder { // Use Block.newBuilder() to construct. private Block(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Block() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Block( 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.common.Common.BlockHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.hyperledger.fabric.protos.common.Common.BlockHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { org.hyperledger.fabric.protos.common.Common.BlockData.Builder subBuilder = null; if (data_ != null) { subBuilder = data_.toBuilder(); } data_ = input.readMessage(org.hyperledger.fabric.protos.common.Common.BlockData.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(data_); data_ = subBuilder.buildPartial(); } break; } case 26: { org.hyperledger.fabric.protos.common.Common.BlockMetadata.Builder subBuilder = null; if (metadata_ != null) { subBuilder = metadata_.toBuilder(); } metadata_ = input.readMessage(org.hyperledger.fabric.protos.common.Common.BlockMetadata.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(metadata_); metadata_ = 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.common.Common.internal_static_common_Block_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.Block.class, org.hyperledger.fabric.protos.common.Common.Block.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.common.Common.BlockHeader header_; /** * optional .common.BlockHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * optional .common.BlockHeader header = 1; */ public org.hyperledger.fabric.protos.common.Common.BlockHeader getHeader() { return header_ == null ? org.hyperledger.fabric.protos.common.Common.BlockHeader.getDefaultInstance() : header_; } /** * optional .common.BlockHeader header = 1; */ public org.hyperledger.fabric.protos.common.Common.BlockHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int DATA_FIELD_NUMBER = 2; private org.hyperledger.fabric.protos.common.Common.BlockData data_; /** * optional .common.BlockData data = 2; */ public boolean hasData() { return data_ != null; } /** * optional .common.BlockData data = 2; */ public org.hyperledger.fabric.protos.common.Common.BlockData getData() { return data_ == null ? org.hyperledger.fabric.protos.common.Common.BlockData.getDefaultInstance() : data_; } /** * optional .common.BlockData data = 2; */ public org.hyperledger.fabric.protos.common.Common.BlockDataOrBuilder getDataOrBuilder() { return getData(); } public static final int METADATA_FIELD_NUMBER = 3; private org.hyperledger.fabric.protos.common.Common.BlockMetadata metadata_; /** * optional .common.BlockMetadata metadata = 3; */ public boolean hasMetadata() { return metadata_ != null; } /** * optional .common.BlockMetadata metadata = 3; */ public org.hyperledger.fabric.protos.common.Common.BlockMetadata getMetadata() { return metadata_ == null ? org.hyperledger.fabric.protos.common.Common.BlockMetadata.getDefaultInstance() : metadata_; } /** * optional .common.BlockMetadata metadata = 3; */ public org.hyperledger.fabric.protos.common.Common.BlockMetadataOrBuilder getMetadataOrBuilder() { return getMetadata(); } 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 (header_ != null) { output.writeMessage(1, getHeader()); } if (data_ != null) { output.writeMessage(2, getData()); } if (metadata_ != null) { output.writeMessage(3, getMetadata()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (data_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getData()); } if (metadata_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getMetadata()); } 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.common.Common.Block)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Common.Block other = (org.hyperledger.fabric.protos.common.Common.Block) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (hasData() == other.hasData()); if (hasData()) { result = result && getData() .equals(other.getData()); } result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata() .equals(other.getMetadata()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasData()) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); } if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Common.Block parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.Block 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.common.Common.Block parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.Block parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Common.Block parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.Block 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.common.Common.Block parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.Block 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.common.Common.Block parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.Block 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.common.Common.Block 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; } /** *
     * This is finalized block structure to be shared among the orderer and peer
     * Note that the BlockHeader chains to the previous BlockHeader, and the BlockData hash is embedded
     * in the BlockHeader.  This makes it natural and obvious that the Data is included in the hash, but
     * the Metadata is not.
     * 
* * Protobuf type {@code common.Block} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.Block) org.hyperledger.fabric.protos.common.Common.BlockOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Block_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.Block.class, org.hyperledger.fabric.protos.common.Common.Block.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Common.Block.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 (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (dataBuilder_ == null) { data_ = null; } else { data_ = null; dataBuilder_ = null; } if (metadataBuilder_ == null) { metadata_ = null; } else { metadata_ = null; metadataBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Block_descriptor; } public org.hyperledger.fabric.protos.common.Common.Block getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance(); } public org.hyperledger.fabric.protos.common.Common.Block build() { org.hyperledger.fabric.protos.common.Common.Block result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.common.Common.Block buildPartial() { org.hyperledger.fabric.protos.common.Common.Block result = new org.hyperledger.fabric.protos.common.Common.Block(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (dataBuilder_ == null) { result.data_ = data_; } else { result.data_ = dataBuilder_.build(); } if (metadataBuilder_ == null) { result.metadata_ = metadata_; } else { result.metadata_ = metadataBuilder_.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.common.Common.Block) { return mergeFrom((org.hyperledger.fabric.protos.common.Common.Block)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Common.Block other) { if (other == org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasData()) { mergeData(other.getData()); } if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } 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.common.Common.Block parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.common.Common.Block) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.hyperledger.fabric.protos.common.Common.BlockHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Common.BlockHeader, org.hyperledger.fabric.protos.common.Common.BlockHeader.Builder, org.hyperledger.fabric.protos.common.Common.BlockHeaderOrBuilder> headerBuilder_; /** * optional .common.BlockHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * optional .common.BlockHeader header = 1; */ public org.hyperledger.fabric.protos.common.Common.BlockHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.hyperledger.fabric.protos.common.Common.BlockHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * optional .common.BlockHeader header = 1; */ public Builder setHeader(org.hyperledger.fabric.protos.common.Common.BlockHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * optional .common.BlockHeader header = 1; */ public Builder setHeader( org.hyperledger.fabric.protos.common.Common.BlockHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .common.BlockHeader header = 1; */ public Builder mergeHeader(org.hyperledger.fabric.protos.common.Common.BlockHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.hyperledger.fabric.protos.common.Common.BlockHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * optional .common.BlockHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * optional .common.BlockHeader header = 1; */ public org.hyperledger.fabric.protos.common.Common.BlockHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * optional .common.BlockHeader header = 1; */ public org.hyperledger.fabric.protos.common.Common.BlockHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.hyperledger.fabric.protos.common.Common.BlockHeader.getDefaultInstance() : header_; } } /** * optional .common.BlockHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Common.BlockHeader, org.hyperledger.fabric.protos.common.Common.BlockHeader.Builder, org.hyperledger.fabric.protos.common.Common.BlockHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Common.BlockHeader, org.hyperledger.fabric.protos.common.Common.BlockHeader.Builder, org.hyperledger.fabric.protos.common.Common.BlockHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private org.hyperledger.fabric.protos.common.Common.BlockData data_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Common.BlockData, org.hyperledger.fabric.protos.common.Common.BlockData.Builder, org.hyperledger.fabric.protos.common.Common.BlockDataOrBuilder> dataBuilder_; /** * optional .common.BlockData data = 2; */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** * optional .common.BlockData data = 2; */ public org.hyperledger.fabric.protos.common.Common.BlockData getData() { if (dataBuilder_ == null) { return data_ == null ? org.hyperledger.fabric.protos.common.Common.BlockData.getDefaultInstance() : data_; } else { return dataBuilder_.getMessage(); } } /** * optional .common.BlockData data = 2; */ public Builder setData(org.hyperledger.fabric.protos.common.Common.BlockData value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); } else { dataBuilder_.setMessage(value); } return this; } /** * optional .common.BlockData data = 2; */ public Builder setData( org.hyperledger.fabric.protos.common.Common.BlockData.Builder builderForValue) { if (dataBuilder_ == null) { data_ = builderForValue.build(); onChanged(); } else { dataBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .common.BlockData data = 2; */ public Builder mergeData(org.hyperledger.fabric.protos.common.Common.BlockData value) { if (dataBuilder_ == null) { if (data_ != null) { data_ = org.hyperledger.fabric.protos.common.Common.BlockData.newBuilder(data_).mergeFrom(value).buildPartial(); } else { data_ = value; } onChanged(); } else { dataBuilder_.mergeFrom(value); } return this; } /** * optional .common.BlockData data = 2; */ public Builder clearData() { if (dataBuilder_ == null) { data_ = null; onChanged(); } else { data_ = null; dataBuilder_ = null; } return this; } /** * optional .common.BlockData data = 2; */ public org.hyperledger.fabric.protos.common.Common.BlockData.Builder getDataBuilder() { onChanged(); return getDataFieldBuilder().getBuilder(); } /** * optional .common.BlockData data = 2; */ public org.hyperledger.fabric.protos.common.Common.BlockDataOrBuilder getDataOrBuilder() { if (dataBuilder_ != null) { return dataBuilder_.getMessageOrBuilder(); } else { return data_ == null ? org.hyperledger.fabric.protos.common.Common.BlockData.getDefaultInstance() : data_; } } /** * optional .common.BlockData data = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Common.BlockData, org.hyperledger.fabric.protos.common.Common.BlockData.Builder, org.hyperledger.fabric.protos.common.Common.BlockDataOrBuilder> getDataFieldBuilder() { if (dataBuilder_ == null) { dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Common.BlockData, org.hyperledger.fabric.protos.common.Common.BlockData.Builder, org.hyperledger.fabric.protos.common.Common.BlockDataOrBuilder>( getData(), getParentForChildren(), isClean()); data_ = null; } return dataBuilder_; } private org.hyperledger.fabric.protos.common.Common.BlockMetadata metadata_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Common.BlockMetadata, org.hyperledger.fabric.protos.common.Common.BlockMetadata.Builder, org.hyperledger.fabric.protos.common.Common.BlockMetadataOrBuilder> metadataBuilder_; /** * optional .common.BlockMetadata metadata = 3; */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** * optional .common.BlockMetadata metadata = 3; */ public org.hyperledger.fabric.protos.common.Common.BlockMetadata getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? org.hyperledger.fabric.protos.common.Common.BlockMetadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** * optional .common.BlockMetadata metadata = 3; */ public Builder setMetadata(org.hyperledger.fabric.protos.common.Common.BlockMetadata value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } return this; } /** * optional .common.BlockMetadata metadata = 3; */ public Builder setMetadata( org.hyperledger.fabric.protos.common.Common.BlockMetadata.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .common.BlockMetadata metadata = 3; */ public Builder mergeMetadata(org.hyperledger.fabric.protos.common.Common.BlockMetadata value) { if (metadataBuilder_ == null) { if (metadata_ != null) { metadata_ = org.hyperledger.fabric.protos.common.Common.BlockMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } return this; } /** * optional .common.BlockMetadata metadata = 3; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadata_ = null; metadataBuilder_ = null; } return this; } /** * optional .common.BlockMetadata metadata = 3; */ public org.hyperledger.fabric.protos.common.Common.BlockMetadata.Builder getMetadataBuilder() { onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * optional .common.BlockMetadata metadata = 3; */ public org.hyperledger.fabric.protos.common.Common.BlockMetadataOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? org.hyperledger.fabric.protos.common.Common.BlockMetadata.getDefaultInstance() : metadata_; } } /** * optional .common.BlockMetadata metadata = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Common.BlockMetadata, org.hyperledger.fabric.protos.common.Common.BlockMetadata.Builder, org.hyperledger.fabric.protos.common.Common.BlockMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Common.BlockMetadata, org.hyperledger.fabric.protos.common.Common.BlockMetadata.Builder, org.hyperledger.fabric.protos.common.Common.BlockMetadataOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } 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:common.Block) } // @@protoc_insertion_point(class_scope:common.Block) private static final org.hyperledger.fabric.protos.common.Common.Block DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Common.Block(); } public static org.hyperledger.fabric.protos.common.Common.Block getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Block parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Block(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.common.Common.Block getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BlockHeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:common.BlockHeader) com.google.protobuf.MessageOrBuilder { /** *
     * The position in the blockchain
     * 
* * optional uint64 number = 1; */ long getNumber(); /** *
     * The hash of the previous block header
     * 
* * optional bytes previous_hash = 2; */ com.google.protobuf.ByteString getPreviousHash(); /** *
     * The hash of the BlockData, by MerkleTree
     * 
* * optional bytes data_hash = 3; */ com.google.protobuf.ByteString getDataHash(); } /** *
   * BlockHeader is the element of the block which forms the block chain
   * The block header is hashed using the configured chain hashing algorithm
   * over the ASN.1 encoding of the BlockHeader
   * 
* * Protobuf type {@code common.BlockHeader} */ public static final class BlockHeader extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.BlockHeader) BlockHeaderOrBuilder { // Use BlockHeader.newBuilder() to construct. private BlockHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BlockHeader() { number_ = 0L; previousHash_ = com.google.protobuf.ByteString.EMPTY; dataHash_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private BlockHeader( 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: { number_ = input.readUInt64(); break; } case 18: { previousHash_ = input.readBytes(); break; } case 26: { dataHash_ = 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.common.Common.internal_static_common_BlockHeader_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_BlockHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.BlockHeader.class, org.hyperledger.fabric.protos.common.Common.BlockHeader.Builder.class); } public static final int NUMBER_FIELD_NUMBER = 1; private long number_; /** *
     * The position in the blockchain
     * 
* * optional uint64 number = 1; */ public long getNumber() { return number_; } public static final int PREVIOUS_HASH_FIELD_NUMBER = 2; private com.google.protobuf.ByteString previousHash_; /** *
     * The hash of the previous block header
     * 
* * optional bytes previous_hash = 2; */ public com.google.protobuf.ByteString getPreviousHash() { return previousHash_; } public static final int DATA_HASH_FIELD_NUMBER = 3; private com.google.protobuf.ByteString dataHash_; /** *
     * The hash of the BlockData, by MerkleTree
     * 
* * optional bytes data_hash = 3; */ public com.google.protobuf.ByteString getDataHash() { return dataHash_; } 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 (number_ != 0L) { output.writeUInt64(1, number_); } if (!previousHash_.isEmpty()) { output.writeBytes(2, previousHash_); } if (!dataHash_.isEmpty()) { output.writeBytes(3, dataHash_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (number_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, number_); } if (!previousHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, previousHash_); } if (!dataHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, dataHash_); } 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.common.Common.BlockHeader)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Common.BlockHeader other = (org.hyperledger.fabric.protos.common.Common.BlockHeader) obj; boolean result = true; result = result && (getNumber() == other.getNumber()); result = result && getPreviousHash() .equals(other.getPreviousHash()); result = result && getDataHash() .equals(other.getDataHash()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNumber()); hash = (37 * hash) + PREVIOUS_HASH_FIELD_NUMBER; hash = (53 * hash) + getPreviousHash().hashCode(); hash = (37 * hash) + DATA_HASH_FIELD_NUMBER; hash = (53 * hash) + getDataHash().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Common.BlockHeader parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.BlockHeader 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.common.Common.BlockHeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.BlockHeader parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Common.BlockHeader parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.BlockHeader 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.common.Common.BlockHeader parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.BlockHeader 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.common.Common.BlockHeader parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.BlockHeader 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.common.Common.BlockHeader 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; } /** *
     * BlockHeader is the element of the block which forms the block chain
     * The block header is hashed using the configured chain hashing algorithm
     * over the ASN.1 encoding of the BlockHeader
     * 
* * Protobuf type {@code common.BlockHeader} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.BlockHeader) org.hyperledger.fabric.protos.common.Common.BlockHeaderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_BlockHeader_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_BlockHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.BlockHeader.class, org.hyperledger.fabric.protos.common.Common.BlockHeader.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Common.BlockHeader.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(); number_ = 0L; previousHash_ = com.google.protobuf.ByteString.EMPTY; dataHash_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_BlockHeader_descriptor; } public org.hyperledger.fabric.protos.common.Common.BlockHeader getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Common.BlockHeader.getDefaultInstance(); } public org.hyperledger.fabric.protos.common.Common.BlockHeader build() { org.hyperledger.fabric.protos.common.Common.BlockHeader result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.common.Common.BlockHeader buildPartial() { org.hyperledger.fabric.protos.common.Common.BlockHeader result = new org.hyperledger.fabric.protos.common.Common.BlockHeader(this); result.number_ = number_; result.previousHash_ = previousHash_; result.dataHash_ = dataHash_; 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.common.Common.BlockHeader) { return mergeFrom((org.hyperledger.fabric.protos.common.Common.BlockHeader)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Common.BlockHeader other) { if (other == org.hyperledger.fabric.protos.common.Common.BlockHeader.getDefaultInstance()) return this; if (other.getNumber() != 0L) { setNumber(other.getNumber()); } if (other.getPreviousHash() != com.google.protobuf.ByteString.EMPTY) { setPreviousHash(other.getPreviousHash()); } if (other.getDataHash() != com.google.protobuf.ByteString.EMPTY) { setDataHash(other.getDataHash()); } 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.common.Common.BlockHeader parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.common.Common.BlockHeader) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long number_ ; /** *
       * The position in the blockchain
       * 
* * optional uint64 number = 1; */ public long getNumber() { return number_; } /** *
       * The position in the blockchain
       * 
* * optional uint64 number = 1; */ public Builder setNumber(long value) { number_ = value; onChanged(); return this; } /** *
       * The position in the blockchain
       * 
* * optional uint64 number = 1; */ public Builder clearNumber() { number_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString previousHash_ = com.google.protobuf.ByteString.EMPTY; /** *
       * The hash of the previous block header
       * 
* * optional bytes previous_hash = 2; */ public com.google.protobuf.ByteString getPreviousHash() { return previousHash_; } /** *
       * The hash of the previous block header
       * 
* * optional bytes previous_hash = 2; */ public Builder setPreviousHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } previousHash_ = value; onChanged(); return this; } /** *
       * The hash of the previous block header
       * 
* * optional bytes previous_hash = 2; */ public Builder clearPreviousHash() { previousHash_ = getDefaultInstance().getPreviousHash(); onChanged(); return this; } private com.google.protobuf.ByteString dataHash_ = com.google.protobuf.ByteString.EMPTY; /** *
       * The hash of the BlockData, by MerkleTree
       * 
* * optional bytes data_hash = 3; */ public com.google.protobuf.ByteString getDataHash() { return dataHash_; } /** *
       * The hash of the BlockData, by MerkleTree
       * 
* * optional bytes data_hash = 3; */ public Builder setDataHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } dataHash_ = value; onChanged(); return this; } /** *
       * The hash of the BlockData, by MerkleTree
       * 
* * optional bytes data_hash = 3; */ public Builder clearDataHash() { dataHash_ = getDefaultInstance().getDataHash(); 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:common.BlockHeader) } // @@protoc_insertion_point(class_scope:common.BlockHeader) private static final org.hyperledger.fabric.protos.common.Common.BlockHeader DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Common.BlockHeader(); } public static org.hyperledger.fabric.protos.common.Common.BlockHeader getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BlockHeader parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BlockHeader(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.common.Common.BlockHeader getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BlockDataOrBuilder extends // @@protoc_insertion_point(interface_extends:common.BlockData) com.google.protobuf.MessageOrBuilder { /** * repeated bytes data = 1; */ java.util.List getDataList(); /** * repeated bytes data = 1; */ int getDataCount(); /** * repeated bytes data = 1; */ com.google.protobuf.ByteString getData(int index); } /** * Protobuf type {@code common.BlockData} */ public static final class BlockData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.BlockData) BlockDataOrBuilder { // Use BlockData.newBuilder() to construct. private BlockData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BlockData() { data_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private BlockData( 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)) { data_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } data_.add(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 { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { data_ = java.util.Collections.unmodifiableList(data_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_BlockData_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_BlockData_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.BlockData.class, org.hyperledger.fabric.protos.common.Common.BlockData.Builder.class); } public static final int DATA_FIELD_NUMBER = 1; private java.util.List data_; /** * repeated bytes data = 1; */ public java.util.List getDataList() { return data_; } /** * repeated bytes data = 1; */ public int getDataCount() { return data_.size(); } /** * repeated bytes data = 1; */ public com.google.protobuf.ByteString getData(int index) { return data_.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 < data_.size(); i++) { output.writeBytes(1, data_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < data_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(data_.get(i)); } size += dataSize; size += 1 * getDataList().size(); } 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.common.Common.BlockData)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Common.BlockData other = (org.hyperledger.fabric.protos.common.Common.BlockData) obj; boolean result = true; result = result && getDataList() .equals(other.getDataList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getDataCount() > 0) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getDataList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Common.BlockData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.BlockData 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.common.Common.BlockData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.BlockData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Common.BlockData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.BlockData 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.common.Common.BlockData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.BlockData 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.common.Common.BlockData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.BlockData 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.common.Common.BlockData 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 common.BlockData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.BlockData) org.hyperledger.fabric.protos.common.Common.BlockDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_BlockData_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_BlockData_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.BlockData.class, org.hyperledger.fabric.protos.common.Common.BlockData.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Common.BlockData.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(); data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_BlockData_descriptor; } public org.hyperledger.fabric.protos.common.Common.BlockData getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Common.BlockData.getDefaultInstance(); } public org.hyperledger.fabric.protos.common.Common.BlockData build() { org.hyperledger.fabric.protos.common.Common.BlockData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.common.Common.BlockData buildPartial() { org.hyperledger.fabric.protos.common.Common.BlockData result = new org.hyperledger.fabric.protos.common.Common.BlockData(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { data_ = java.util.Collections.unmodifiableList(data_); bitField0_ = (bitField0_ & ~0x00000001); } result.data_ = data_; 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.common.Common.BlockData) { return mergeFrom((org.hyperledger.fabric.protos.common.Common.BlockData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Common.BlockData other) { if (other == org.hyperledger.fabric.protos.common.Common.BlockData.getDefaultInstance()) return this; if (!other.data_.isEmpty()) { if (data_.isEmpty()) { data_ = other.data_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDataIsMutable(); data_.addAll(other.data_); } 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.common.Common.BlockData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.common.Common.BlockData) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List data_ = java.util.Collections.emptyList(); private void ensureDataIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { data_ = new java.util.ArrayList(data_); bitField0_ |= 0x00000001; } } /** * repeated bytes data = 1; */ public java.util.List getDataList() { return java.util.Collections.unmodifiableList(data_); } /** * repeated bytes data = 1; */ public int getDataCount() { return data_.size(); } /** * repeated bytes data = 1; */ public com.google.protobuf.ByteString getData(int index) { return data_.get(index); } /** * repeated bytes data = 1; */ public Builder setData( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.set(index, value); onChanged(); return this; } /** * repeated bytes data = 1; */ public Builder addData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.add(value); onChanged(); return this; } /** * repeated bytes data = 1; */ public Builder addAllData( java.lang.Iterable values) { ensureDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, data_); onChanged(); return this; } /** * repeated bytes data = 1; */ public Builder clearData() { data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); 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:common.BlockData) } // @@protoc_insertion_point(class_scope:common.BlockData) private static final org.hyperledger.fabric.protos.common.Common.BlockData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Common.BlockData(); } public static org.hyperledger.fabric.protos.common.Common.BlockData getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BlockData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BlockData(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.common.Common.BlockData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BlockMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:common.BlockMetadata) com.google.protobuf.MessageOrBuilder { /** * repeated bytes metadata = 1; */ java.util.List getMetadataList(); /** * repeated bytes metadata = 1; */ int getMetadataCount(); /** * repeated bytes metadata = 1; */ com.google.protobuf.ByteString getMetadata(int index); } /** * Protobuf type {@code common.BlockMetadata} */ public static final class BlockMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.BlockMetadata) BlockMetadataOrBuilder { // Use BlockMetadata.newBuilder() to construct. private BlockMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BlockMetadata() { metadata_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private BlockMetadata( 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)) { metadata_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } metadata_.add(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 { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { metadata_ = java.util.Collections.unmodifiableList(metadata_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_BlockMetadata_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_BlockMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.BlockMetadata.class, org.hyperledger.fabric.protos.common.Common.BlockMetadata.Builder.class); } public static final int METADATA_FIELD_NUMBER = 1; private java.util.List metadata_; /** * repeated bytes metadata = 1; */ public java.util.List getMetadataList() { return metadata_; } /** * repeated bytes metadata = 1; */ public int getMetadataCount() { return metadata_.size(); } /** * repeated bytes metadata = 1; */ public com.google.protobuf.ByteString getMetadata(int index) { return metadata_.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 < metadata_.size(); i++) { output.writeBytes(1, metadata_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < metadata_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(metadata_.get(i)); } size += dataSize; size += 1 * getMetadataList().size(); } 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.common.Common.BlockMetadata)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Common.BlockMetadata other = (org.hyperledger.fabric.protos.common.Common.BlockMetadata) obj; boolean result = true; result = result && getMetadataList() .equals(other.getMetadataList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getMetadataCount() > 0) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadataList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Common.BlockMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.BlockMetadata 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.common.Common.BlockMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.BlockMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Common.BlockMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.BlockMetadata 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.common.Common.BlockMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.BlockMetadata 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.common.Common.BlockMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Common.BlockMetadata 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.common.Common.BlockMetadata 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 common.BlockMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.BlockMetadata) org.hyperledger.fabric.protos.common.Common.BlockMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_BlockMetadata_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_BlockMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.BlockMetadata.class, org.hyperledger.fabric.protos.common.Common.BlockMetadata.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Common.BlockMetadata.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(); metadata_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_BlockMetadata_descriptor; } public org.hyperledger.fabric.protos.common.Common.BlockMetadata getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Common.BlockMetadata.getDefaultInstance(); } public org.hyperledger.fabric.protos.common.Common.BlockMetadata build() { org.hyperledger.fabric.protos.common.Common.BlockMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.common.Common.BlockMetadata buildPartial() { org.hyperledger.fabric.protos.common.Common.BlockMetadata result = new org.hyperledger.fabric.protos.common.Common.BlockMetadata(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { metadata_ = java.util.Collections.unmodifiableList(metadata_); bitField0_ = (bitField0_ & ~0x00000001); } result.metadata_ = metadata_; 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.common.Common.BlockMetadata) { return mergeFrom((org.hyperledger.fabric.protos.common.Common.BlockMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Common.BlockMetadata other) { if (other == org.hyperledger.fabric.protos.common.Common.BlockMetadata.getDefaultInstance()) return this; if (!other.metadata_.isEmpty()) { if (metadata_.isEmpty()) { metadata_ = other.metadata_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMetadataIsMutable(); metadata_.addAll(other.metadata_); } 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.common.Common.BlockMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.common.Common.BlockMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List metadata_ = java.util.Collections.emptyList(); private void ensureMetadataIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { metadata_ = new java.util.ArrayList(metadata_); bitField0_ |= 0x00000001; } } /** * repeated bytes metadata = 1; */ public java.util.List getMetadataList() { return java.util.Collections.unmodifiableList(metadata_); } /** * repeated bytes metadata = 1; */ public int getMetadataCount() { return metadata_.size(); } /** * repeated bytes metadata = 1; */ public com.google.protobuf.ByteString getMetadata(int index) { return metadata_.get(index); } /** * repeated bytes metadata = 1; */ public Builder setMetadata( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureMetadataIsMutable(); metadata_.set(index, value); onChanged(); return this; } /** * repeated bytes metadata = 1; */ public Builder addMetadata(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureMetadataIsMutable(); metadata_.add(value); onChanged(); return this; } /** * repeated bytes metadata = 1; */ public Builder addAllMetadata( java.lang.Iterable values) { ensureMetadataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, metadata_); onChanged(); return this; } /** * repeated bytes metadata = 1; */ public Builder clearMetadata() { metadata_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); 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:common.BlockMetadata) } // @@protoc_insertion_point(class_scope:common.BlockMetadata) private static final org.hyperledger.fabric.protos.common.Common.BlockMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Common.BlockMetadata(); } public static org.hyperledger.fabric.protos.common.Common.BlockMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BlockMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BlockMetadata(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.common.Common.BlockMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_LastConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_LastConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_Metadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_Metadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_MetadataSignature_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_MetadataSignature_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_Header_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_Header_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_ChannelHeader_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_ChannelHeader_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_SignatureHeader_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_SignatureHeader_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_Payload_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_Payload_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_Envelope_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_Envelope_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_Block_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_Block_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_BlockHeader_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_BlockHeader_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_BlockData_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_BlockData_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_BlockMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_BlockMetadata_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\023common/common.proto\022\006common\032\037google/pr" + "otobuf/timestamp.proto\"\033\n\nLastConfig\022\r\n\005" + "index\030\001 \001(\004\"H\n\010Metadata\022\r\n\005value\030\001 \001(\014\022-" + "\n\nsignatures\030\002 \003(\0132\031.common.MetadataSign" + "ature\"@\n\021MetadataSignature\022\030\n\020signature_" + "header\030\001 \001(\014\022\021\n\tsignature\030\002 \001(\014\":\n\006Heade" + "r\022\026\n\016channel_header\030\001 \001(\014\022\030\n\020signature_h" + "eader\030\002 \001(\014\"\271\001\n\rChannelHeader\022\014\n\004type\030\001 " + "\001(\005\022\017\n\007version\030\002 \001(\005\022-\n\ttimestamp\030\003 \001(\0132" + "\032.google.protobuf.Timestamp\022\022\n\nchannel_i", "d\030\004 \001(\t\022\r\n\005tx_id\030\005 \001(\t\022\r\n\005epoch\030\006 \001(\004\022\021\n" + "\textension\030\007 \001(\014\022\025\n\rtls_cert_hash\030\010 \001(\014\"" + "1\n\017SignatureHeader\022\017\n\007creator\030\001 \001(\014\022\r\n\005n" + "once\030\002 \001(\014\"7\n\007Payload\022\036\n\006header\030\001 \001(\0132\016." + "common.Header\022\014\n\004data\030\002 \001(\014\".\n\010Envelope\022" + "\017\n\007payload\030\001 \001(\014\022\021\n\tsignature\030\002 \001(\014\"v\n\005B" + "lock\022#\n\006header\030\001 \001(\0132\023.common.BlockHeade" + "r\022\037\n\004data\030\002 \001(\0132\021.common.BlockData\022\'\n\010me" + "tadata\030\003 \001(\0132\025.common.BlockMetadata\"G\n\013B" + "lockHeader\022\016\n\006number\030\001 \001(\004\022\025\n\rprevious_h", "ash\030\002 \001(\014\022\021\n\tdata_hash\030\003 \001(\014\"\031\n\tBlockDat" + "a\022\014\n\004data\030\001 \003(\014\"!\n\rBlockMetadata\022\020\n\010meta" + "data\030\001 \003(\014*\300\001\n\006Status\022\013\n\007UNKNOWN\020\000\022\014\n\007SU" + "CCESS\020\310\001\022\020\n\013BAD_REQUEST\020\220\003\022\016\n\tFORBIDDEN\020" + "\223\003\022\016\n\tNOT_FOUND\020\224\003\022\035\n\030REQUEST_ENTITY_TOO" + "_LARGE\020\235\003\022\032\n\025INTERNAL_SERVER_ERROR\020\364\003\022\024\n" + "\017NOT_IMPLEMENTED\020\365\003\022\030\n\023SERVICE_UNAVAILAB" + "LE\020\367\003*\263\001\n\nHeaderType\022\013\n\007MESSAGE\020\000\022\n\n\006CON" + "FIG\020\001\022\021\n\rCONFIG_UPDATE\020\002\022\030\n\024ENDORSER_TRA" + "NSACTION\020\003\022\027\n\023ORDERER_TRANSACTION\020\004\022\025\n\021D", "ELIVER_SEEK_INFO\020\005\022\025\n\021CHAINCODE_PACKAGE\020" + "\006\022\030\n\024PEER_ADMIN_OPERATION\020\010*[\n\022BlockMeta" + "dataIndex\022\016\n\nSIGNATURES\020\000\022\017\n\013LAST_CONFIG" + "\020\001\022\027\n\023TRANSACTIONS_FILTER\020\002\022\013\n\007ORDERER\020\003" + "BS\n$org.hyperledger.fabric.protos.common" + "Z+github.com/hyperledger/fabric/protos/c" + "ommonb\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[] { com.google.protobuf.TimestampProto.getDescriptor(), }, assigner); internal_static_common_LastConfig_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_common_LastConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_LastConfig_descriptor, new java.lang.String[] { "Index", }); internal_static_common_Metadata_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_common_Metadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_Metadata_descriptor, new java.lang.String[] { "Value", "Signatures", }); internal_static_common_MetadataSignature_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_common_MetadataSignature_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_MetadataSignature_descriptor, new java.lang.String[] { "SignatureHeader", "Signature", }); internal_static_common_Header_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_common_Header_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_Header_descriptor, new java.lang.String[] { "ChannelHeader", "SignatureHeader", }); internal_static_common_ChannelHeader_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_common_ChannelHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_ChannelHeader_descriptor, new java.lang.String[] { "Type", "Version", "Timestamp", "ChannelId", "TxId", "Epoch", "Extension", "TlsCertHash", }); internal_static_common_SignatureHeader_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_common_SignatureHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_SignatureHeader_descriptor, new java.lang.String[] { "Creator", "Nonce", }); internal_static_common_Payload_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_common_Payload_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_Payload_descriptor, new java.lang.String[] { "Header", "Data", }); internal_static_common_Envelope_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_common_Envelope_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_Envelope_descriptor, new java.lang.String[] { "Payload", "Signature", }); internal_static_common_Block_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_common_Block_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_Block_descriptor, new java.lang.String[] { "Header", "Data", "Metadata", }); internal_static_common_BlockHeader_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_common_BlockHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_BlockHeader_descriptor, new java.lang.String[] { "Number", "PreviousHash", "DataHash", }); internal_static_common_BlockData_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_common_BlockData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_BlockData_descriptor, new java.lang.String[] { "Data", }); internal_static_common_BlockMetadata_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_common_BlockMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_BlockMetadata_descriptor, new java.lang.String[] { "Metadata", }); com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy