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

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

The 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) } /** * 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
     *e.g. For Kafka, this is where we store the last offset written to the local ledger 
     * 
* * ORDERER = 3 [deprecated = true]; */ @java.lang.Deprecated ORDERER(3), /** *
     * Block metadata array position to store the hash of TRANSACTIONS_FILTER, State Updates,
     *and the COMMIT_HASH of the previous block 
     * 
* * COMMIT_HASH = 4; */ COMMIT_HASH(4), 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
     *e.g. For Kafka, this is where we store the last offset written to the local ledger 
     * 
* * ORDERER = 3 [deprecated = true]; */ public static final int ORDERER_VALUE = 3; /** *
     * Block metadata array position to store the hash of TRANSACTIONS_FILTER, State Updates,
     *and the COMMIT_HASH of the previous block 
     * 
* * COMMIT_HASH = 4; */ public static final int COMMIT_HASH_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static 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; case 4: return COMMIT_HASH; 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 { /** * 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 { private static final long serialVersionUID = 0L; // Use LastConfig.newBuilder() to construct. private LastConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LastConfig() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LastConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LastConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { index_ = input.readUInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_LastConfig_descriptor; } @java.lang.Override 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_; /** * uint64 index = 1; */ public long getIndex() { return index_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (index_ != 0L) { output.writeUInt64(1, index_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (index_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, index_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Common.LastConfig)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Common.LastConfig other = (org.hyperledger.fabric.protos.common.Common.LastConfig) obj; if (getIndex() != other.getIndex()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.LastConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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; } @java.lang.Override 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) { } } @java.lang.Override public Builder clear() { super.clear(); index_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_LastConfig_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.common.Common.LastConfig getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Common.LastConfig.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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_ ; /** * uint64 index = 1; */ public long getIndex() { return index_; } /** * uint64 index = 1; */ public Builder setIndex(long value) { index_ = value; onChanged(); return this; } /** * uint64 index = 1; */ public Builder clearIndex() { index_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override 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; } @java.lang.Override 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 { /** * 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Metadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Metadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { value_ = input.readBytes(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { signatures_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } signatures_.add( input.readMessage(org.hyperledger.fabric.protos.common.Common.MetadataSignature.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } 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) != 0)) { signatures_ = java.util.Collections.unmodifiableList(signatures_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Metadata_descriptor; } @java.lang.Override 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); } public static final int VALUE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString value_; /** * 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; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!value_.isEmpty()) { output.writeBytes(1, value_); } for (int i = 0; i < signatures_.size(); i++) { output.writeMessage(2, signatures_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override 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)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Common.Metadata)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Common.Metadata other = (org.hyperledger.fabric.protos.common.Common.Metadata) obj; if (!getValue() .equals(other.getValue())) return false; if (!getSignaturesList() .equals(other.getSignaturesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.Metadata parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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; } @java.lang.Override 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(); } } @java.lang.Override public Builder clear() { super.clear(); value_ = com.google.protobuf.ByteString.EMPTY; if (signaturesBuilder_ == null) { signatures_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { signaturesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Metadata_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.common.Common.Metadata getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Common.Metadata.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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_; result.value_ = value_; if (signaturesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { signatures_ = java.util.Collections.unmodifiableList(signatures_); bitField0_ = (bitField0_ & ~0x00000001); } result.signatures_ = signatures_; } else { result.signatures_ = signaturesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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_ & ~0x00000001); } else { ensureSignaturesIsMutable(); signatures_.addAll(other.signatures_); } onChanged(); } } else { if (!other.signatures_.isEmpty()) { if (signaturesBuilder_.isEmpty()) { signaturesBuilder_.dispose(); signaturesBuilder_ = null; signatures_ = other.signatures_; bitField0_ = (bitField0_ & ~0x00000001); signaturesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSignaturesFieldBuilder() : null; } else { signaturesBuilder_.addAllMessages(other.signatures_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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; /** * bytes value = 1; */ public com.google.protobuf.ByteString getValue() { return value_; } /** * bytes value = 1; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * 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_ & 0x00000001) != 0)) { signatures_ = new java.util.ArrayList(signatures_); bitField0_ |= 0x00000001; } } 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_ & ~0x00000001); 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_ & 0x00000001) != 0), getParentForChildren(), isClean()); signatures_ = null; } return signaturesBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override 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; } @java.lang.Override 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
     * 
* * bytes signature_header = 1; */ com.google.protobuf.ByteString getSignatureHeader(); /** *
     * The signature over the concatenation of the Metadata value bytes, signatureHeader, and block header
     * 
* * 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MetadataSignature(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MetadataSignature( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { signatureHeader_ = input.readBytes(); break; } case 18: { signature_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_MetadataSignature_descriptor; } @java.lang.Override 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
     * 
* * 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
     * 
* * bytes signature = 2; */ public com.google.protobuf.ByteString getSignature() { return signature_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!signatureHeader_.isEmpty()) { output.writeBytes(1, signatureHeader_); } if (!signature_.isEmpty()) { output.writeBytes(2, signature_); } unknownFields.writeTo(output); } @java.lang.Override 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_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Common.MetadataSignature)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Common.MetadataSignature other = (org.hyperledger.fabric.protos.common.Common.MetadataSignature) obj; if (!getSignatureHeader() .equals(other.getSignatureHeader())) return false; if (!getSignature() .equals(other.getSignature())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.MetadataSignature parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * 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; } @java.lang.Override 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) { } } @java.lang.Override public Builder clear() { super.clear(); signatureHeader_ = com.google.protobuf.ByteString.EMPTY; signature_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_MetadataSignature_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.common.Common.MetadataSignature getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Common.MetadataSignature.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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
       * 
* * bytes signature_header = 1; */ public com.google.protobuf.ByteString getSignatureHeader() { return signatureHeader_; } /** *
       * An encoded SignatureHeader
       * 
* * 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
       * 
* * 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
       * 
* * 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
       * 
* * 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
       * 
* * bytes signature = 2; */ public Builder clearSignature() { signature_ = getDefaultInstance().getSignature(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override 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; } @java.lang.Override 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 { /** * bytes channel_header = 1; */ com.google.protobuf.ByteString getChannelHeader(); /** * 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Header(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Header( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { channelHeader_ = input.readBytes(); break; } case 18: { signatureHeader_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Header_descriptor; } @java.lang.Override 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_; /** * 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_; /** * bytes signature_header = 2; */ public com.google.protobuf.ByteString getSignatureHeader() { return signatureHeader_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!channelHeader_.isEmpty()) { output.writeBytes(1, channelHeader_); } if (!signatureHeader_.isEmpty()) { output.writeBytes(2, signatureHeader_); } unknownFields.writeTo(output); } @java.lang.Override 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_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Common.Header)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Common.Header other = (org.hyperledger.fabric.protos.common.Common.Header) obj; if (!getChannelHeader() .equals(other.getChannelHeader())) return false; if (!getSignatureHeader() .equals(other.getSignatureHeader())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CHANNEL_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( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.Header parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * 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; } @java.lang.Override 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) { } } @java.lang.Override public Builder clear() { super.clear(); channelHeader_ = com.google.protobuf.ByteString.EMPTY; signatureHeader_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Header_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.common.Common.Header getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Common.Header.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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; /** * bytes channel_header = 1; */ public com.google.protobuf.ByteString getChannelHeader() { return channelHeader_; } /** * bytes channel_header = 1; */ public Builder setChannelHeader(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } channelHeader_ = value; onChanged(); return this; } /** * bytes channel_header = 1; */ public Builder clearChannelHeader() { channelHeader_ = getDefaultInstance().getChannelHeader(); onChanged(); return this; } private com.google.protobuf.ByteString signatureHeader_ = com.google.protobuf.ByteString.EMPTY; /** * bytes signature_header = 2; */ public com.google.protobuf.ByteString getSignatureHeader() { return signatureHeader_; } /** * bytes signature_header = 2; */ public Builder setSignatureHeader(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signatureHeader_ = value; onChanged(); return this; } /** * bytes signature_header = 2; */ public Builder clearSignatureHeader() { signatureHeader_ = getDefaultInstance().getSignatureHeader(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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
() { @java.lang.Override 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; } @java.lang.Override 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
     * 
* * int32 type = 1; */ int getType(); /** *
     * Version indicates message protocol version
     * 
* * int32 version = 2; */ int getVersion(); /** *
     * Timestamp is the local time when the message was created
     * by the sender
     * 
* * .google.protobuf.Timestamp timestamp = 3; */ boolean hasTimestamp(); /** *
     * Timestamp is the local time when the message was created
     * by the sender
     * 
* * .google.protobuf.Timestamp timestamp = 3; */ com.google.protobuf.Timestamp getTimestamp(); /** *
     * Timestamp is the local time when the message was created
     * by the sender
     * 
* * .google.protobuf.Timestamp timestamp = 3; */ com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); /** *
     * Identifier of the channel this message is bound for
     * 
* * string channel_id = 4; */ java.lang.String getChannelId(); /** *
     * Identifier of the channel this message is bound for
     * 
* * 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
     * 
* * 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
     * 
* * 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)
     * 
* * uint64 epoch = 6; */ long getEpoch(); /** *
     * Extension that may be attached based on the header type
     * 
* * bytes extension = 7; */ com.google.protobuf.ByteString getExtension(); /** *
     * If mutual TLS is employed, this represents
     * the hash of the client's TLS certificate
     * 
* * 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 { private static final long serialVersionUID = 0L; // Use ChannelHeader.newBuilder() to construct. private ChannelHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChannelHeader() { channelId_ = ""; txId_ = ""; extension_ = com.google.protobuf.ByteString.EMPTY; tlsCertHash_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ChannelHeader(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ChannelHeader( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: 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; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_ChannelHeader_descriptor; } @java.lang.Override 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
     * 
* * int32 type = 1; */ public int getType() { return type_; } public static final int VERSION_FIELD_NUMBER = 2; private int version_; /** *
     * Version indicates message protocol version
     * 
* * 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
     * 
* * .google.protobuf.Timestamp timestamp = 3; */ public boolean hasTimestamp() { return timestamp_ != null; } /** *
     * Timestamp is the local time when the message was created
     * by the sender
     * 
* * .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
     * 
* * .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
     * 
* * 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
     * 
* * 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
     * 
* * 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
     * 
* * 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)
     * 
* * 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
     * 
* * 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
     * 
* * bytes tls_cert_hash = 8; */ public com.google.protobuf.ByteString getTlsCertHash() { return tlsCertHash_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (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_); } unknownFields.writeTo(output); } @java.lang.Override 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_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Common.ChannelHeader)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Common.ChannelHeader other = (org.hyperledger.fabric.protos.common.Common.ChannelHeader) obj; if (getType() != other.getType()) return false; if (getVersion() != other.getVersion()) return false; if (hasTimestamp() != other.hasTimestamp()) return false; if (hasTimestamp()) { if (!getTimestamp() .equals(other.getTimestamp())) return false; } if (!getChannelId() .equals(other.getChannelId())) return false; if (!getTxId() .equals(other.getTxId())) return false; if (getEpoch() != other.getEpoch()) return false; if (!getExtension() .equals(other.getExtension())) return false; if (!getTlsCertHash() .equals(other.getTlsCertHash())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.ChannelHeader parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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; } @java.lang.Override 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) { } } @java.lang.Override 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; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_ChannelHeader_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.common.Common.ChannelHeader getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Common.ChannelHeader.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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
       * 
* * int32 type = 1; */ public int getType() { return type_; } /** *
       * Header types 0-10000 are reserved and defined by HeaderType
       * 
* * int32 type = 1; */ public Builder setType(int value) { type_ = value; onChanged(); return this; } /** *
       * Header types 0-10000 are reserved and defined by HeaderType
       * 
* * int32 type = 1; */ public Builder clearType() { type_ = 0; onChanged(); return this; } private int version_ ; /** *
       * Version indicates message protocol version
       * 
* * int32 version = 2; */ public int getVersion() { return version_; } /** *
       * Version indicates message protocol version
       * 
* * int32 version = 2; */ public Builder setVersion(int value) { version_ = value; onChanged(); return this; } /** *
       * Version indicates message protocol version
       * 
* * int32 version = 2; */ public Builder clearVersion() { version_ = 0; onChanged(); return this; } private com.google.protobuf.Timestamp timestamp_; 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
       * 
* * .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
       * 
* * .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
       * 
* * .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
       * 
* * .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
       * 
* * .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
       * 
* * .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
       * 
* * .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
       * 
* * .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
       * 
* * .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
       * 
* * 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
       * 
* * 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
       * 
* * 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
       * 
* * string channel_id = 4; */ public Builder clearChannelId() { channelId_ = getDefaultInstance().getChannelId(); onChanged(); return this; } /** *
       * Identifier of the channel this message is bound for
       * 
* * 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
       * 
* * 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
       * 
* * 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
       * 
* * 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
       * 
* * 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
       * 
* * 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)
       * 
* * 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)
       * 
* * 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)
       * 
* * 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
       * 
* * bytes extension = 7; */ public com.google.protobuf.ByteString getExtension() { return extension_; } /** *
       * Extension that may be attached based on the header type
       * 
* * 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
       * 
* * 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
       * 
* * 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
       * 
* * 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
       * 
* * bytes tls_cert_hash = 8; */ public Builder clearTlsCertHash() { tlsCertHash_ = getDefaultInstance().getTlsCertHash(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override 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; } @java.lang.Override 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
     * 
* * bytes creator = 1; */ com.google.protobuf.ByteString getCreator(); /** *
     * Arbitrary number that may only be used once. Can be used to detect replay attacks.
     * 
* * 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SignatureHeader(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SignatureHeader( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { creator_ = input.readBytes(); break; } case 18: { nonce_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_SignatureHeader_descriptor; } @java.lang.Override 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
     * 
* * 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.
     * 
* * bytes nonce = 2; */ public com.google.protobuf.ByteString getNonce() { return nonce_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!creator_.isEmpty()) { output.writeBytes(1, creator_); } if (!nonce_.isEmpty()) { output.writeBytes(2, nonce_); } unknownFields.writeTo(output); } @java.lang.Override 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_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Common.SignatureHeader)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Common.SignatureHeader other = (org.hyperledger.fabric.protos.common.Common.SignatureHeader) obj; if (!getCreator() .equals(other.getCreator())) return false; if (!getNonce() .equals(other.getNonce())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.SignatureHeader parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * 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; } @java.lang.Override 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) { } } @java.lang.Override public Builder clear() { super.clear(); creator_ = com.google.protobuf.ByteString.EMPTY; nonce_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_SignatureHeader_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.common.Common.SignatureHeader getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Common.SignatureHeader.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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
       * 
* * bytes creator = 1; */ public com.google.protobuf.ByteString getCreator() { return creator_; } /** *
       * Creator of the message, a marshaled msp.SerializedIdentity
       * 
* * 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
       * 
* * 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.
       * 
* * 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.
       * 
* * 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.
       * 
* * bytes nonce = 2; */ public Builder clearNonce() { nonce_ = getDefaultInstance().getNonce(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override 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; } @java.lang.Override 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
     * 
* * .common.Header header = 1; */ boolean hasHeader(); /** *
     * Header is included to provide identity and prevent replay
     * 
* * .common.Header header = 1; */ org.hyperledger.fabric.protos.common.Common.Header getHeader(); /** *
     * Header is included to provide identity and prevent replay
     * 
* * .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
     * 
* * 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Payload(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Payload( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: 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; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Payload_descriptor; } @java.lang.Override 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
     * 
* * .common.Header header = 1; */ public boolean hasHeader() { return header_ != null; } /** *
     * Header is included to provide identity and prevent replay
     * 
* * .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
     * 
* * .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
     * 
* * bytes data = 2; */ public com.google.protobuf.ByteString getData() { return data_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (!data_.isEmpty()) { output.writeBytes(2, data_); } unknownFields.writeTo(output); } @java.lang.Override 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_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Common.Payload)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Common.Payload other = (org.hyperledger.fabric.protos.common.Common.Payload) obj; if (hasHeader() != other.hasHeader()) return false; if (hasHeader()) { if (!getHeader() .equals(other.getHeader())) return false; } if (!getData() .equals(other.getData())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.Payload parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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; } @java.lang.Override 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) { } } @java.lang.Override public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } data_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Payload_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.common.Common.Payload getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Common.Payload.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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_; 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
       * 
* * .common.Header header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** *
       * Header is included to provide identity and prevent replay
       * 
* * .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
       * 
* * .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
       * 
* * .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
       * 
* * .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
       * 
* * .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
       * 
* * .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
       * 
* * .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
       * 
* * .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
       * 
* * bytes data = 2; */ public com.google.protobuf.ByteString getData() { return data_; } /** *
       * Data, the encoding of which is defined by the type in the header
       * 
* * 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
       * 
* * bytes data = 2; */ public Builder clearData() { data_ = getDefaultInstance().getData(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override 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; } @java.lang.Override 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
     * 
* * bytes payload = 1; */ com.google.protobuf.ByteString getPayload(); /** *
     * A signature by the creator specified in the Payload header
     * 
* * 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Envelope(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Envelope( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { payload_ = input.readBytes(); break; } case 18: { signature_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Envelope_descriptor; } @java.lang.Override 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
     * 
* * 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
     * 
* * bytes signature = 2; */ public com.google.protobuf.ByteString getSignature() { return signature_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!payload_.isEmpty()) { output.writeBytes(1, payload_); } if (!signature_.isEmpty()) { output.writeBytes(2, signature_); } unknownFields.writeTo(output); } @java.lang.Override 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_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Common.Envelope)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Common.Envelope other = (org.hyperledger.fabric.protos.common.Common.Envelope) obj; if (!getPayload() .equals(other.getPayload())) return false; if (!getSignature() .equals(other.getSignature())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.Envelope parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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; } @java.lang.Override 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) { } } @java.lang.Override public Builder clear() { super.clear(); payload_ = com.google.protobuf.ByteString.EMPTY; signature_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Envelope_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.common.Common.Envelope getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Common.Envelope.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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
       * 
* * bytes payload = 1; */ public com.google.protobuf.ByteString getPayload() { return payload_; } /** *
       * A marshaled Payload
       * 
* * 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
       * 
* * 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
       * 
* * bytes signature = 2; */ public com.google.protobuf.ByteString getSignature() { return signature_; } /** *
       * A signature by the creator specified in the Payload header
       * 
* * 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
       * 
* * bytes signature = 2; */ public Builder clearSignature() { signature_ = getDefaultInstance().getSignature(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override 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; } @java.lang.Override 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 { /** * .common.BlockHeader header = 1; */ boolean hasHeader(); /** * .common.BlockHeader header = 1; */ org.hyperledger.fabric.protos.common.Common.BlockHeader getHeader(); /** * .common.BlockHeader header = 1; */ org.hyperledger.fabric.protos.common.Common.BlockHeaderOrBuilder getHeaderOrBuilder(); /** * .common.BlockData data = 2; */ boolean hasData(); /** * .common.BlockData data = 2; */ org.hyperledger.fabric.protos.common.Common.BlockData getData(); /** * .common.BlockData data = 2; */ org.hyperledger.fabric.protos.common.Common.BlockDataOrBuilder getDataOrBuilder(); /** * .common.BlockMetadata metadata = 3; */ boolean hasMetadata(); /** * .common.BlockMetadata metadata = 3; */ org.hyperledger.fabric.protos.common.Common.BlockMetadata getMetadata(); /** * .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 { private static final long serialVersionUID = 0L; // Use Block.newBuilder() to construct. private Block(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Block() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Block(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Block( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: 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; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Block_descriptor; } @java.lang.Override 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_; /** * .common.BlockHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .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_; } /** * .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_; /** * .common.BlockData data = 2; */ public boolean hasData() { return data_ != null; } /** * .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_; } /** * .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_; /** * .common.BlockMetadata metadata = 3; */ public boolean hasMetadata() { return metadata_ != null; } /** * .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_; } /** * .common.BlockMetadata metadata = 3; */ public org.hyperledger.fabric.protos.common.Common.BlockMetadataOrBuilder getMetadataOrBuilder() { return getMetadata(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (data_ != null) { output.writeMessage(2, getData()); } if (metadata_ != null) { output.writeMessage(3, getMetadata()); } unknownFields.writeTo(output); } @java.lang.Override 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()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Common.Block)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Common.Block other = (org.hyperledger.fabric.protos.common.Common.Block) obj; if (hasHeader() != other.hasHeader()) return false; if (hasHeader()) { if (!getHeader() .equals(other.getHeader())) return false; } if (hasData() != other.hasData()) return false; if (hasData()) { if (!getData() .equals(other.getData())) return false; } if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { if (!getMetadata() .equals(other.getMetadata())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.Block parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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; } @java.lang.Override 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) { } } @java.lang.Override 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; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_Block_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.common.Common.Block getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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_; 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_; /** * .common.BlockHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .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(); } } /** * .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; } /** * .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; } /** * .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; } /** * .common.BlockHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .common.BlockHeader header = 1; */ public org.hyperledger.fabric.protos.common.Common.BlockHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .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_; } } /** * .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_; 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_; /** * .common.BlockData data = 2; */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** * .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(); } } /** * .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; } /** * .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; } /** * .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; } /** * .common.BlockData data = 2; */ public Builder clearData() { if (dataBuilder_ == null) { data_ = null; onChanged(); } else { data_ = null; dataBuilder_ = null; } return this; } /** * .common.BlockData data = 2; */ public org.hyperledger.fabric.protos.common.Common.BlockData.Builder getDataBuilder() { onChanged(); return getDataFieldBuilder().getBuilder(); } /** * .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_; } } /** * .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_; 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_; /** * .common.BlockMetadata metadata = 3; */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** * .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(); } } /** * .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; } /** * .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; } /** * .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; } /** * .common.BlockMetadata metadata = 3; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadata_ = null; metadataBuilder_ = null; } return this; } /** * .common.BlockMetadata metadata = 3; */ public org.hyperledger.fabric.protos.common.Common.BlockMetadata.Builder getMetadataBuilder() { onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * .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_; } } /** * .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_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override 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; } @java.lang.Override 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
     * 
* * uint64 number = 1; */ long getNumber(); /** *
     * The hash of the previous block header
     * 
* * bytes previous_hash = 2; */ com.google.protobuf.ByteString getPreviousHash(); /** *
     * The hash of the BlockData, by MerkleTree
     * 
* * 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 { private static final long serialVersionUID = 0L; // Use BlockHeader.newBuilder() to construct. private BlockHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BlockHeader() { previousHash_ = com.google.protobuf.ByteString.EMPTY; dataHash_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BlockHeader(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BlockHeader( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { number_ = input.readUInt64(); break; } case 18: { previousHash_ = input.readBytes(); break; } case 26: { dataHash_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_BlockHeader_descriptor; } @java.lang.Override 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
     * 
* * 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
     * 
* * 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
     * 
* * bytes data_hash = 3; */ public com.google.protobuf.ByteString getDataHash() { return dataHash_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (number_ != 0L) { output.writeUInt64(1, number_); } if (!previousHash_.isEmpty()) { output.writeBytes(2, previousHash_); } if (!dataHash_.isEmpty()) { output.writeBytes(3, dataHash_); } unknownFields.writeTo(output); } @java.lang.Override 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_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Common.BlockHeader)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Common.BlockHeader other = (org.hyperledger.fabric.protos.common.Common.BlockHeader) obj; if (getNumber() != other.getNumber()) return false; if (!getPreviousHash() .equals(other.getPreviousHash())) return false; if (!getDataHash() .equals(other.getDataHash())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.BlockHeader parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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; } @java.lang.Override 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) { } } @java.lang.Override public Builder clear() { super.clear(); number_ = 0L; previousHash_ = com.google.protobuf.ByteString.EMPTY; dataHash_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_BlockHeader_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.common.Common.BlockHeader getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Common.BlockHeader.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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
       * 
* * uint64 number = 1; */ public long getNumber() { return number_; } /** *
       * The position in the blockchain
       * 
* * uint64 number = 1; */ public Builder setNumber(long value) { number_ = value; onChanged(); return this; } /** *
       * The position in the blockchain
       * 
* * 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
       * 
* * bytes previous_hash = 2; */ public com.google.protobuf.ByteString getPreviousHash() { return previousHash_; } /** *
       * The hash of the previous block header
       * 
* * 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
       * 
* * 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
       * 
* * bytes data_hash = 3; */ public com.google.protobuf.ByteString getDataHash() { return dataHash_; } /** *
       * The hash of the BlockData, by MerkleTree
       * 
* * 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
       * 
* * bytes data_hash = 3; */ public Builder clearDataHash() { dataHash_ = getDefaultInstance().getDataHash(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override 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; } @java.lang.Override 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BlockData(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BlockData( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { data_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } data_.add(input.readBytes()); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } 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) != 0)) { data_ = java.util.Collections.unmodifiableList(data_); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_BlockData_descriptor; } @java.lang.Override 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; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < data_.size(); i++) { output.writeBytes(1, data_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override 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(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Common.BlockData)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Common.BlockData other = (org.hyperledger.fabric.protos.common.Common.BlockData) obj; if (!getDataList() .equals(other.getDataList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.BlockData parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * 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; } @java.lang.Override 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) { } } @java.lang.Override public Builder clear() { super.clear(); data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_BlockData_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.common.Common.BlockData getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Common.BlockData.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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) != 0)) { data_ = java.util.Collections.unmodifiableList(data_); bitField0_ = (bitField0_ & ~0x00000001); } result.data_ = data_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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) != 0)) { data_ = new java.util.ArrayList(data_); bitField0_ |= 0x00000001; } } /** * repeated bytes data = 1; */ public java.util.List getDataList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(data_) : 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; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override 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; } @java.lang.Override 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BlockMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BlockMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { metadata_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } metadata_.add(input.readBytes()); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } 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) != 0)) { metadata_ = java.util.Collections.unmodifiableList(metadata_); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_BlockMetadata_descriptor; } @java.lang.Override 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; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < metadata_.size(); i++) { output.writeBytes(1, metadata_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override 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(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Common.BlockMetadata)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Common.BlockMetadata other = (org.hyperledger.fabric.protos.common.Common.BlockMetadata) obj; if (!getMetadataList() .equals(other.getMetadataList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.BlockMetadata parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * 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; } @java.lang.Override 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) { } } @java.lang.Override public Builder clear() { super.clear(); metadata_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_BlockMetadata_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.common.Common.BlockMetadata getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Common.BlockMetadata.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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) != 0)) { metadata_ = java.util.Collections.unmodifiableList(metadata_); bitField0_ = (bitField0_ & ~0x00000001); } result.metadata_ = metadata_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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) != 0)) { metadata_ = new java.util.ArrayList(metadata_); bitField0_ |= 0x00000001; } } /** * repeated bytes metadata = 1; */ public java.util.List getMetadataList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(metadata_) : 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; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override 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; } @java.lang.Override public org.hyperledger.fabric.protos.common.Common.BlockMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OrdererBlockMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:common.OrdererBlockMetadata) com.google.protobuf.MessageOrBuilder { /** * .common.LastConfig last_config = 1; */ boolean hasLastConfig(); /** * .common.LastConfig last_config = 1; */ org.hyperledger.fabric.protos.common.Common.LastConfig getLastConfig(); /** * .common.LastConfig last_config = 1; */ org.hyperledger.fabric.protos.common.Common.LastConfigOrBuilder getLastConfigOrBuilder(); /** * bytes consenter_metadata = 2; */ com.google.protobuf.ByteString getConsenterMetadata(); } /** *
   * OrdererBlockMetadata defines metadata that is set by the ordering service.
   * 
* * Protobuf type {@code common.OrdererBlockMetadata} */ public static final class OrdererBlockMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.OrdererBlockMetadata) OrdererBlockMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use OrdererBlockMetadata.newBuilder() to construct. private OrdererBlockMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OrdererBlockMetadata() { consenterMetadata_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OrdererBlockMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OrdererBlockMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.hyperledger.fabric.protos.common.Common.LastConfig.Builder subBuilder = null; if (lastConfig_ != null) { subBuilder = lastConfig_.toBuilder(); } lastConfig_ = input.readMessage(org.hyperledger.fabric.protos.common.Common.LastConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastConfig_); lastConfig_ = subBuilder.buildPartial(); } break; } case 18: { consenterMetadata_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_OrdererBlockMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_OrdererBlockMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata.class, org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata.Builder.class); } public static final int LAST_CONFIG_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.common.Common.LastConfig lastConfig_; /** * .common.LastConfig last_config = 1; */ public boolean hasLastConfig() { return lastConfig_ != null; } /** * .common.LastConfig last_config = 1; */ public org.hyperledger.fabric.protos.common.Common.LastConfig getLastConfig() { return lastConfig_ == null ? org.hyperledger.fabric.protos.common.Common.LastConfig.getDefaultInstance() : lastConfig_; } /** * .common.LastConfig last_config = 1; */ public org.hyperledger.fabric.protos.common.Common.LastConfigOrBuilder getLastConfigOrBuilder() { return getLastConfig(); } public static final int CONSENTER_METADATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString consenterMetadata_; /** * bytes consenter_metadata = 2; */ public com.google.protobuf.ByteString getConsenterMetadata() { return consenterMetadata_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (lastConfig_ != null) { output.writeMessage(1, getLastConfig()); } if (!consenterMetadata_.isEmpty()) { output.writeBytes(2, consenterMetadata_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (lastConfig_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getLastConfig()); } if (!consenterMetadata_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, consenterMetadata_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata other = (org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata) obj; if (hasLastConfig() != other.hasLastConfig()) return false; if (hasLastConfig()) { if (!getLastConfig() .equals(other.getLastConfig())) return false; } if (!getConsenterMetadata() .equals(other.getConsenterMetadata())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasLastConfig()) { hash = (37 * hash) + LAST_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getLastConfig().hashCode(); } hash = (37 * hash) + CONSENTER_METADATA_FIELD_NUMBER; hash = (53 * hash) + getConsenterMetadata().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata 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.OrdererBlockMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata 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.OrdererBlockMetadata 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.OrdererBlockMetadata 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.OrdererBlockMetadata 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.OrdererBlockMetadata 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.OrdererBlockMetadata 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.OrdererBlockMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * OrdererBlockMetadata defines metadata that is set by the ordering service.
     * 
* * Protobuf type {@code common.OrdererBlockMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.OrdererBlockMetadata) org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_OrdererBlockMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_OrdererBlockMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata.class, org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (lastConfigBuilder_ == null) { lastConfig_ = null; } else { lastConfig_ = null; lastConfigBuilder_ = null; } consenterMetadata_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Common.internal_static_common_OrdererBlockMetadata_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata build() { org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata buildPartial() { org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata result = new org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata(this); if (lastConfigBuilder_ == null) { result.lastConfig_ = lastConfig_; } else { result.lastConfig_ = lastConfigBuilder_.build(); } result.consenterMetadata_ = consenterMetadata_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata) { return mergeFrom((org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata other) { if (other == org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata.getDefaultInstance()) return this; if (other.hasLastConfig()) { mergeLastConfig(other.getLastConfig()); } if (other.getConsenterMetadata() != com.google.protobuf.ByteString.EMPTY) { setConsenterMetadata(other.getConsenterMetadata()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.hyperledger.fabric.protos.common.Common.LastConfig lastConfig_; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Common.LastConfig, org.hyperledger.fabric.protos.common.Common.LastConfig.Builder, org.hyperledger.fabric.protos.common.Common.LastConfigOrBuilder> lastConfigBuilder_; /** * .common.LastConfig last_config = 1; */ public boolean hasLastConfig() { return lastConfigBuilder_ != null || lastConfig_ != null; } /** * .common.LastConfig last_config = 1; */ public org.hyperledger.fabric.protos.common.Common.LastConfig getLastConfig() { if (lastConfigBuilder_ == null) { return lastConfig_ == null ? org.hyperledger.fabric.protos.common.Common.LastConfig.getDefaultInstance() : lastConfig_; } else { return lastConfigBuilder_.getMessage(); } } /** * .common.LastConfig last_config = 1; */ public Builder setLastConfig(org.hyperledger.fabric.protos.common.Common.LastConfig value) { if (lastConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastConfig_ = value; onChanged(); } else { lastConfigBuilder_.setMessage(value); } return this; } /** * .common.LastConfig last_config = 1; */ public Builder setLastConfig( org.hyperledger.fabric.protos.common.Common.LastConfig.Builder builderForValue) { if (lastConfigBuilder_ == null) { lastConfig_ = builderForValue.build(); onChanged(); } else { lastConfigBuilder_.setMessage(builderForValue.build()); } return this; } /** * .common.LastConfig last_config = 1; */ public Builder mergeLastConfig(org.hyperledger.fabric.protos.common.Common.LastConfig value) { if (lastConfigBuilder_ == null) { if (lastConfig_ != null) { lastConfig_ = org.hyperledger.fabric.protos.common.Common.LastConfig.newBuilder(lastConfig_).mergeFrom(value).buildPartial(); } else { lastConfig_ = value; } onChanged(); } else { lastConfigBuilder_.mergeFrom(value); } return this; } /** * .common.LastConfig last_config = 1; */ public Builder clearLastConfig() { if (lastConfigBuilder_ == null) { lastConfig_ = null; onChanged(); } else { lastConfig_ = null; lastConfigBuilder_ = null; } return this; } /** * .common.LastConfig last_config = 1; */ public org.hyperledger.fabric.protos.common.Common.LastConfig.Builder getLastConfigBuilder() { onChanged(); return getLastConfigFieldBuilder().getBuilder(); } /** * .common.LastConfig last_config = 1; */ public org.hyperledger.fabric.protos.common.Common.LastConfigOrBuilder getLastConfigOrBuilder() { if (lastConfigBuilder_ != null) { return lastConfigBuilder_.getMessageOrBuilder(); } else { return lastConfig_ == null ? org.hyperledger.fabric.protos.common.Common.LastConfig.getDefaultInstance() : lastConfig_; } } /** * .common.LastConfig last_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Common.LastConfig, org.hyperledger.fabric.protos.common.Common.LastConfig.Builder, org.hyperledger.fabric.protos.common.Common.LastConfigOrBuilder> getLastConfigFieldBuilder() { if (lastConfigBuilder_ == null) { lastConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Common.LastConfig, org.hyperledger.fabric.protos.common.Common.LastConfig.Builder, org.hyperledger.fabric.protos.common.Common.LastConfigOrBuilder>( getLastConfig(), getParentForChildren(), isClean()); lastConfig_ = null; } return lastConfigBuilder_; } private com.google.protobuf.ByteString consenterMetadata_ = com.google.protobuf.ByteString.EMPTY; /** * bytes consenter_metadata = 2; */ public com.google.protobuf.ByteString getConsenterMetadata() { return consenterMetadata_; } /** * bytes consenter_metadata = 2; */ public Builder setConsenterMetadata(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } consenterMetadata_ = value; onChanged(); return this; } /** * bytes consenter_metadata = 2; */ public Builder clearConsenterMetadata() { consenterMetadata_ = getDefaultInstance().getConsenterMetadata(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:common.OrdererBlockMetadata) } // @@protoc_insertion_point(class_scope:common.OrdererBlockMetadata) private static final org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata(); } public static org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OrdererBlockMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OrdererBlockMetadata(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.common.Common.OrdererBlockMetadata 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; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_OrdererBlockMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_OrdererBlockMetadata_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\"[\n\024OrdererBlockMetadata\022\'\n\013la" + "st_config\030\001 \001(\0132\022.common.LastConfig\022\032\n\022c" + "onsenter_metadata\030\002 \001(\014*\300\001\n\006Status\022\013\n\007UN" + "KNOWN\020\000\022\014\n\007SUCCESS\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\030REQUE" + "ST_ENTITY_TOO_LARGE\020\235\003\022\032\n\025INTERNAL_SERVE" + "R_ERROR\020\364\003\022\024\n\017NOT_IMPLEMENTED\020\365\003\022\030\n\023SERV" + "ICE_UNAVAILABLE\020\367\003*\350\001\n\nHeaderType\022\013\n\007MES" + "SAGE\020\000\022\n\n\006CONFIG\020\001\022\021\n\rCONFIG_UPDATE\020\002\022\030\n" + "\024ENDORSER_TRANSACTION\020\003\022\027\n\023ORDERER_TRANS" + "ACTION\020\004\022\025\n\021DELIVER_SEEK_INFO\020\005\022\025\n\021CHAIN" + "CODE_PACKAGE\020\006\022\030\n\024PEER_ADMIN_OPERATION\020\010" + "\"\004\010\007\020\007\"\004\010\t\020\t*\024PEER_RESOURCE_UPDATE*\021TOKE" + "N_TRANSACTION*p\n\022BlockMetadataIndex\022\016\n\nS" + "IGNATURES\020\000\022\017\n\013LAST_CONFIG\020\001\022\027\n\023TRANSACT" + "IONS_FILTER\020\002\022\017\n\007ORDERER\020\003\032\002\010\001\022\017\n\013COMMIT" + "_HASH\020\004BV\n$org.hyperledger.fabric.protos" + ".commonZ.github.com/hyperledger/fabric-p" + "rotos-go/commonb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), }); 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", }); internal_static_common_OrdererBlockMetadata_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_common_OrdererBlockMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_OrdererBlockMetadata_descriptor, new java.lang.String[] { "LastConfig", "ConsenterMetadata", }); com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy