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

org.hyperledger.fabric.protos.msp.MspConfig Maven / Gradle / Ivy

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

package org.hyperledger.fabric.protos.msp;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface MSPConfigOrBuilder extends
      // @@protoc_insertion_point(interface_extends:msp.MSPConfig)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Type holds the type of the MSP; the default one would
     * be of type FABRIC implementing an X.509 based provider
     * 
* * optional int32 type = 1; */ int getType(); /** *
     * Config is MSP dependent configuration info
     * 
* * optional bytes config = 2; */ com.google.protobuf.ByteString getConfig(); } /** *
   * MSPConfig collects all the configuration information for
   * an MSP. The Config field should be unmarshalled in a way
   * that depends on the Type
   * 
* * Protobuf type {@code msp.MSPConfig} */ public static final class MSPConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:msp.MSPConfig) MSPConfigOrBuilder { // Use MSPConfig.newBuilder() to construct. private MSPConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MSPConfig() { type_ = 0; config_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private MSPConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { type_ = input.readInt32(); break; } case 18: { config_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_MSPConfig_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_MSPConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig.class, org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** *
     * Type holds the type of the MSP; the default one would
     * be of type FABRIC implementing an X.509 based provider
     * 
* * optional int32 type = 1; */ public int getType() { return type_; } public static final int CONFIG_FIELD_NUMBER = 2; private com.google.protobuf.ByteString config_; /** *
     * Config is MSP dependent configuration info
     * 
* * optional bytes config = 2; */ public com.google.protobuf.ByteString getConfig() { return config_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != 0) { output.writeInt32(1, type_); } if (!config_.isEmpty()) { output.writeBytes(2, config_); } } 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 (!config_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, config_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig)) { return super.equals(obj); } org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig other = (org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig) obj; boolean result = true; result = result && (getType() == other.getType()); result = result && getConfig() .equals(other.getConfig()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType(); hash = (37 * hash) + CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConfig().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig 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.msp.MspConfig.MSPConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig 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.msp.MspConfig.MSPConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig 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.msp.MspConfig.MSPConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * MSPConfig collects all the configuration information for
     * an MSP. The Config field should be unmarshalled in a way
     * that depends on the Type
     * 
* * Protobuf type {@code msp.MSPConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:msp.MSPConfig) org.hyperledger.fabric.protos.msp.MspConfig.MSPConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_MSPConfig_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_MSPConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig.class, org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig.Builder.class); } // Construct using org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); type_ = 0; config_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_MSPConfig_descriptor; } public org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig getDefaultInstanceForType() { return org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig.getDefaultInstance(); } public org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig build() { org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig buildPartial() { org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig result = new org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig(this); result.type_ = type_; result.config_ = config_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig) { return mergeFrom((org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig other) { if (other == org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig.getDefaultInstance()) return this; if (other.getType() != 0) { setType(other.getType()); } if (other.getConfig() != com.google.protobuf.ByteString.EMPTY) { setConfig(other.getConfig()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int type_ ; /** *
       * Type holds the type of the MSP; the default one would
       * be of type FABRIC implementing an X.509 based provider
       * 
* * optional int32 type = 1; */ public int getType() { return type_; } /** *
       * Type holds the type of the MSP; the default one would
       * be of type FABRIC implementing an X.509 based provider
       * 
* * optional int32 type = 1; */ public Builder setType(int value) { type_ = value; onChanged(); return this; } /** *
       * Type holds the type of the MSP; the default one would
       * be of type FABRIC implementing an X.509 based provider
       * 
* * optional int32 type = 1; */ public Builder clearType() { type_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString config_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Config is MSP dependent configuration info
       * 
* * optional bytes config = 2; */ public com.google.protobuf.ByteString getConfig() { return config_; } /** *
       * Config is MSP dependent configuration info
       * 
* * optional bytes config = 2; */ public Builder setConfig(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } config_ = value; onChanged(); return this; } /** *
       * Config is MSP dependent configuration info
       * 
* * optional bytes config = 2; */ public Builder clearConfig() { config_ = getDefaultInstance().getConfig(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:msp.MSPConfig) } // @@protoc_insertion_point(class_scope:msp.MSPConfig) private static final org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig(); } public static org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MSPConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MSPConfig(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.msp.MspConfig.MSPConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FabricMSPConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:msp.FabricMSPConfig) com.google.protobuf.MessageOrBuilder { /** *
     * Name holds the identifier of the MSP; MSP identifier
     * is chosen by the application that governs this MSP.
     * For example, and assuming the default implementation of MSP,
     * that is X.509-based and considers a single Issuer,
     * this can refer to the Subject OU field or the Issuer OU field.
     * 
* * optional string name = 1; */ java.lang.String getName(); /** *
     * Name holds the identifier of the MSP; MSP identifier
     * is chosen by the application that governs this MSP.
     * For example, and assuming the default implementation of MSP,
     * that is X.509-based and considers a single Issuer,
     * this can refer to the Subject OU field or the Issuer OU field.
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** *
     * List of root certificates trusted by this MSP
     * they are used upon certificate validation (see
     * comment for IntermediateCerts below)
     * 
* * repeated bytes root_certs = 2; */ java.util.List getRootCertsList(); /** *
     * List of root certificates trusted by this MSP
     * they are used upon certificate validation (see
     * comment for IntermediateCerts below)
     * 
* * repeated bytes root_certs = 2; */ int getRootCertsCount(); /** *
     * List of root certificates trusted by this MSP
     * they are used upon certificate validation (see
     * comment for IntermediateCerts below)
     * 
* * repeated bytes root_certs = 2; */ com.google.protobuf.ByteString getRootCerts(int index); /** *
     * List of intermediate certificates trusted by this MSP;
     * they are used upon certificate validation as follows:
     * validation attempts to build a path from the certificate
     * to be validated (which is at one end of the path) and
     * one of the certs in the RootCerts field (which is at
     * the other end of the path). If the path is longer than
     * 2, certificates in the middle are searched within the
     * IntermediateCerts pool
     * 
* * repeated bytes intermediate_certs = 3; */ java.util.List getIntermediateCertsList(); /** *
     * List of intermediate certificates trusted by this MSP;
     * they are used upon certificate validation as follows:
     * validation attempts to build a path from the certificate
     * to be validated (which is at one end of the path) and
     * one of the certs in the RootCerts field (which is at
     * the other end of the path). If the path is longer than
     * 2, certificates in the middle are searched within the
     * IntermediateCerts pool
     * 
* * repeated bytes intermediate_certs = 3; */ int getIntermediateCertsCount(); /** *
     * List of intermediate certificates trusted by this MSP;
     * they are used upon certificate validation as follows:
     * validation attempts to build a path from the certificate
     * to be validated (which is at one end of the path) and
     * one of the certs in the RootCerts field (which is at
     * the other end of the path). If the path is longer than
     * 2, certificates in the middle are searched within the
     * IntermediateCerts pool
     * 
* * repeated bytes intermediate_certs = 3; */ com.google.protobuf.ByteString getIntermediateCerts(int index); /** *
     * Identity denoting the administrator of this MSP
     * 
* * repeated bytes admins = 4; */ java.util.List getAdminsList(); /** *
     * Identity denoting the administrator of this MSP
     * 
* * repeated bytes admins = 4; */ int getAdminsCount(); /** *
     * Identity denoting the administrator of this MSP
     * 
* * repeated bytes admins = 4; */ com.google.protobuf.ByteString getAdmins(int index); /** *
     * Identity revocation list
     * 
* * repeated bytes revocation_list = 5; */ java.util.List getRevocationListList(); /** *
     * Identity revocation list
     * 
* * repeated bytes revocation_list = 5; */ int getRevocationListCount(); /** *
     * Identity revocation list
     * 
* * repeated bytes revocation_list = 5; */ com.google.protobuf.ByteString getRevocationList(int index); /** *
     * SigningIdentity holds information on the signing identity
     * this peer is to use, and which is to be imported by the
     * MSP defined before
     * 
* * optional .msp.SigningIdentityInfo signing_identity = 6; */ boolean hasSigningIdentity(); /** *
     * SigningIdentity holds information on the signing identity
     * this peer is to use, and which is to be imported by the
     * MSP defined before
     * 
* * optional .msp.SigningIdentityInfo signing_identity = 6; */ org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo getSigningIdentity(); /** *
     * SigningIdentity holds information on the signing identity
     * this peer is to use, and which is to be imported by the
     * MSP defined before
     * 
* * optional .msp.SigningIdentityInfo signing_identity = 6; */ org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfoOrBuilder getSigningIdentityOrBuilder(); /** *
     * OrganizationalUnitIdentifiers holds one or more
     * fabric organizational unit identifiers that belong to
     * this MSP configuration
     * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ java.util.List getOrganizationalUnitIdentifiersList(); /** *
     * OrganizationalUnitIdentifiers holds one or more
     * fabric organizational unit identifiers that belong to
     * this MSP configuration
     * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier getOrganizationalUnitIdentifiers(int index); /** *
     * OrganizationalUnitIdentifiers holds one or more
     * fabric organizational unit identifiers that belong to
     * this MSP configuration
     * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ int getOrganizationalUnitIdentifiersCount(); /** *
     * OrganizationalUnitIdentifiers holds one or more
     * fabric organizational unit identifiers that belong to
     * this MSP configuration
     * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ java.util.List getOrganizationalUnitIdentifiersOrBuilderList(); /** *
     * OrganizationalUnitIdentifiers holds one or more
     * fabric organizational unit identifiers that belong to
     * this MSP configuration
     * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifierOrBuilder getOrganizationalUnitIdentifiersOrBuilder( int index); /** *
     * FabricCryptoConfig contains the configuration parameters
     * for the cryptographic algorithms used by this MSP
     * 
* * optional .msp.FabricCryptoConfig crypto_config = 8; */ boolean hasCryptoConfig(); /** *
     * FabricCryptoConfig contains the configuration parameters
     * for the cryptographic algorithms used by this MSP
     * 
* * optional .msp.FabricCryptoConfig crypto_config = 8; */ org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig getCryptoConfig(); /** *
     * FabricCryptoConfig contains the configuration parameters
     * for the cryptographic algorithms used by this MSP
     * 
* * optional .msp.FabricCryptoConfig crypto_config = 8; */ org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfigOrBuilder getCryptoConfigOrBuilder(); /** *
     * List of TLS root certificates trusted by this MSP.
     * They are returned by GetTLSRootCerts.
     * 
* * repeated bytes tls_root_certs = 9; */ java.util.List getTlsRootCertsList(); /** *
     * List of TLS root certificates trusted by this MSP.
     * They are returned by GetTLSRootCerts.
     * 
* * repeated bytes tls_root_certs = 9; */ int getTlsRootCertsCount(); /** *
     * List of TLS root certificates trusted by this MSP.
     * They are returned by GetTLSRootCerts.
     * 
* * repeated bytes tls_root_certs = 9; */ com.google.protobuf.ByteString getTlsRootCerts(int index); /** *
     * List of TLS intermediate certificates trusted by this MSP;
     * They are returned by GetTLSIntermediateCerts.
     * 
* * repeated bytes tls_intermediate_certs = 10; */ java.util.List getTlsIntermediateCertsList(); /** *
     * List of TLS intermediate certificates trusted by this MSP;
     * They are returned by GetTLSIntermediateCerts.
     * 
* * repeated bytes tls_intermediate_certs = 10; */ int getTlsIntermediateCertsCount(); /** *
     * List of TLS intermediate certificates trusted by this MSP;
     * They are returned by GetTLSIntermediateCerts.
     * 
* * repeated bytes tls_intermediate_certs = 10; */ com.google.protobuf.ByteString getTlsIntermediateCerts(int index); /** *
     * fabric_node_ous contains the configuration to distinguish clients from peers from orderers
     * based on the OUs.
     * 
* * optional .msp.FabricNodeOUs fabric_node_ous = 11; */ boolean hasFabricNodeOus(); /** *
     * fabric_node_ous contains the configuration to distinguish clients from peers from orderers
     * based on the OUs.
     * 
* * optional .msp.FabricNodeOUs fabric_node_ous = 11; */ org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs getFabricNodeOus(); /** *
     * fabric_node_ous contains the configuration to distinguish clients from peers from orderers
     * based on the OUs.
     * 
* * optional .msp.FabricNodeOUs fabric_node_ous = 11; */ org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUsOrBuilder getFabricNodeOusOrBuilder(); } /** *
   * FabricMSPConfig collects all the configuration information for
   * a Fabric MSP.
   * Here we assume a default certificate validation policy, where
   * any certificate signed by any of the listed rootCA certs would
   * be considered as valid under this MSP.
   * This MSP may or may not come with a signing identity. If it does,
   * it can also issue signing identities. If it does not, it can only
   * be used to validate and verify certificates.
   * 
* * Protobuf type {@code msp.FabricMSPConfig} */ public static final class FabricMSPConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:msp.FabricMSPConfig) FabricMSPConfigOrBuilder { // Use FabricMSPConfig.newBuilder() to construct. private FabricMSPConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FabricMSPConfig() { name_ = ""; rootCerts_ = java.util.Collections.emptyList(); intermediateCerts_ = java.util.Collections.emptyList(); admins_ = java.util.Collections.emptyList(); revocationList_ = java.util.Collections.emptyList(); organizationalUnitIdentifiers_ = java.util.Collections.emptyList(); tlsRootCerts_ = java.util.Collections.emptyList(); tlsIntermediateCerts_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private FabricMSPConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { rootCerts_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } rootCerts_.add(input.readBytes()); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { intermediateCerts_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } intermediateCerts_.add(input.readBytes()); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { admins_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } admins_.add(input.readBytes()); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { revocationList_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } revocationList_.add(input.readBytes()); break; } case 50: { org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo.Builder subBuilder = null; if (signingIdentity_ != null) { subBuilder = signingIdentity_.toBuilder(); } signingIdentity_ = input.readMessage(org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(signingIdentity_); signingIdentity_ = subBuilder.buildPartial(); } break; } case 58: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { organizationalUnitIdentifiers_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } organizationalUnitIdentifiers_.add( input.readMessage(org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.parser(), extensionRegistry)); break; } case 66: { org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig.Builder subBuilder = null; if (cryptoConfig_ != null) { subBuilder = cryptoConfig_.toBuilder(); } cryptoConfig_ = input.readMessage(org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(cryptoConfig_); cryptoConfig_ = subBuilder.buildPartial(); } break; } case 74: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { tlsRootCerts_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } tlsRootCerts_.add(input.readBytes()); break; } case 82: { if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { tlsIntermediateCerts_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } tlsIntermediateCerts_.add(input.readBytes()); break; } case 90: { org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs.Builder subBuilder = null; if (fabricNodeOus_ != null) { subBuilder = fabricNodeOus_.toBuilder(); } fabricNodeOus_ = input.readMessage(org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(fabricNodeOus_); fabricNodeOus_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { rootCerts_ = java.util.Collections.unmodifiableList(rootCerts_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { intermediateCerts_ = java.util.Collections.unmodifiableList(intermediateCerts_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { admins_ = java.util.Collections.unmodifiableList(admins_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { revocationList_ = java.util.Collections.unmodifiableList(revocationList_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { organizationalUnitIdentifiers_ = java.util.Collections.unmodifiableList(organizationalUnitIdentifiers_); } if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { tlsRootCerts_ = java.util.Collections.unmodifiableList(tlsRootCerts_); } if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { tlsIntermediateCerts_ = java.util.Collections.unmodifiableList(tlsIntermediateCerts_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_FabricMSPConfig_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_FabricMSPConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig.class, org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Name holds the identifier of the MSP; MSP identifier
     * is chosen by the application that governs this MSP.
     * For example, and assuming the default implementation of MSP,
     * that is X.509-based and considers a single Issuer,
     * this can refer to the Subject OU field or the Issuer OU field.
     * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
     * Name holds the identifier of the MSP; MSP identifier
     * is chosen by the application that governs this MSP.
     * For example, and assuming the default implementation of MSP,
     * that is X.509-based and considers a single Issuer,
     * this can refer to the Subject OU field or the Issuer OU field.
     * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ROOT_CERTS_FIELD_NUMBER = 2; private java.util.List rootCerts_; /** *
     * List of root certificates trusted by this MSP
     * they are used upon certificate validation (see
     * comment for IntermediateCerts below)
     * 
* * repeated bytes root_certs = 2; */ public java.util.List getRootCertsList() { return rootCerts_; } /** *
     * List of root certificates trusted by this MSP
     * they are used upon certificate validation (see
     * comment for IntermediateCerts below)
     * 
* * repeated bytes root_certs = 2; */ public int getRootCertsCount() { return rootCerts_.size(); } /** *
     * List of root certificates trusted by this MSP
     * they are used upon certificate validation (see
     * comment for IntermediateCerts below)
     * 
* * repeated bytes root_certs = 2; */ public com.google.protobuf.ByteString getRootCerts(int index) { return rootCerts_.get(index); } public static final int INTERMEDIATE_CERTS_FIELD_NUMBER = 3; private java.util.List intermediateCerts_; /** *
     * List of intermediate certificates trusted by this MSP;
     * they are used upon certificate validation as follows:
     * validation attempts to build a path from the certificate
     * to be validated (which is at one end of the path) and
     * one of the certs in the RootCerts field (which is at
     * the other end of the path). If the path is longer than
     * 2, certificates in the middle are searched within the
     * IntermediateCerts pool
     * 
* * repeated bytes intermediate_certs = 3; */ public java.util.List getIntermediateCertsList() { return intermediateCerts_; } /** *
     * List of intermediate certificates trusted by this MSP;
     * they are used upon certificate validation as follows:
     * validation attempts to build a path from the certificate
     * to be validated (which is at one end of the path) and
     * one of the certs in the RootCerts field (which is at
     * the other end of the path). If the path is longer than
     * 2, certificates in the middle are searched within the
     * IntermediateCerts pool
     * 
* * repeated bytes intermediate_certs = 3; */ public int getIntermediateCertsCount() { return intermediateCerts_.size(); } /** *
     * List of intermediate certificates trusted by this MSP;
     * they are used upon certificate validation as follows:
     * validation attempts to build a path from the certificate
     * to be validated (which is at one end of the path) and
     * one of the certs in the RootCerts field (which is at
     * the other end of the path). If the path is longer than
     * 2, certificates in the middle are searched within the
     * IntermediateCerts pool
     * 
* * repeated bytes intermediate_certs = 3; */ public com.google.protobuf.ByteString getIntermediateCerts(int index) { return intermediateCerts_.get(index); } public static final int ADMINS_FIELD_NUMBER = 4; private java.util.List admins_; /** *
     * Identity denoting the administrator of this MSP
     * 
* * repeated bytes admins = 4; */ public java.util.List getAdminsList() { return admins_; } /** *
     * Identity denoting the administrator of this MSP
     * 
* * repeated bytes admins = 4; */ public int getAdminsCount() { return admins_.size(); } /** *
     * Identity denoting the administrator of this MSP
     * 
* * repeated bytes admins = 4; */ public com.google.protobuf.ByteString getAdmins(int index) { return admins_.get(index); } public static final int REVOCATION_LIST_FIELD_NUMBER = 5; private java.util.List revocationList_; /** *
     * Identity revocation list
     * 
* * repeated bytes revocation_list = 5; */ public java.util.List getRevocationListList() { return revocationList_; } /** *
     * Identity revocation list
     * 
* * repeated bytes revocation_list = 5; */ public int getRevocationListCount() { return revocationList_.size(); } /** *
     * Identity revocation list
     * 
* * repeated bytes revocation_list = 5; */ public com.google.protobuf.ByteString getRevocationList(int index) { return revocationList_.get(index); } public static final int SIGNING_IDENTITY_FIELD_NUMBER = 6; private org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo signingIdentity_; /** *
     * SigningIdentity holds information on the signing identity
     * this peer is to use, and which is to be imported by the
     * MSP defined before
     * 
* * optional .msp.SigningIdentityInfo signing_identity = 6; */ public boolean hasSigningIdentity() { return signingIdentity_ != null; } /** *
     * SigningIdentity holds information on the signing identity
     * this peer is to use, and which is to be imported by the
     * MSP defined before
     * 
* * optional .msp.SigningIdentityInfo signing_identity = 6; */ public org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo getSigningIdentity() { return signingIdentity_ == null ? org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo.getDefaultInstance() : signingIdentity_; } /** *
     * SigningIdentity holds information on the signing identity
     * this peer is to use, and which is to be imported by the
     * MSP defined before
     * 
* * optional .msp.SigningIdentityInfo signing_identity = 6; */ public org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfoOrBuilder getSigningIdentityOrBuilder() { return getSigningIdentity(); } public static final int ORGANIZATIONAL_UNIT_IDENTIFIERS_FIELD_NUMBER = 7; private java.util.List organizationalUnitIdentifiers_; /** *
     * OrganizationalUnitIdentifiers holds one or more
     * fabric organizational unit identifiers that belong to
     * this MSP configuration
     * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ public java.util.List getOrganizationalUnitIdentifiersList() { return organizationalUnitIdentifiers_; } /** *
     * OrganizationalUnitIdentifiers holds one or more
     * fabric organizational unit identifiers that belong to
     * this MSP configuration
     * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ public java.util.List getOrganizationalUnitIdentifiersOrBuilderList() { return organizationalUnitIdentifiers_; } /** *
     * OrganizationalUnitIdentifiers holds one or more
     * fabric organizational unit identifiers that belong to
     * this MSP configuration
     * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ public int getOrganizationalUnitIdentifiersCount() { return organizationalUnitIdentifiers_.size(); } /** *
     * OrganizationalUnitIdentifiers holds one or more
     * fabric organizational unit identifiers that belong to
     * this MSP configuration
     * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier getOrganizationalUnitIdentifiers(int index) { return organizationalUnitIdentifiers_.get(index); } /** *
     * OrganizationalUnitIdentifiers holds one or more
     * fabric organizational unit identifiers that belong to
     * this MSP configuration
     * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifierOrBuilder getOrganizationalUnitIdentifiersOrBuilder( int index) { return organizationalUnitIdentifiers_.get(index); } public static final int CRYPTO_CONFIG_FIELD_NUMBER = 8; private org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig cryptoConfig_; /** *
     * FabricCryptoConfig contains the configuration parameters
     * for the cryptographic algorithms used by this MSP
     * 
* * optional .msp.FabricCryptoConfig crypto_config = 8; */ public boolean hasCryptoConfig() { return cryptoConfig_ != null; } /** *
     * FabricCryptoConfig contains the configuration parameters
     * for the cryptographic algorithms used by this MSP
     * 
* * optional .msp.FabricCryptoConfig crypto_config = 8; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig getCryptoConfig() { return cryptoConfig_ == null ? org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig.getDefaultInstance() : cryptoConfig_; } /** *
     * FabricCryptoConfig contains the configuration parameters
     * for the cryptographic algorithms used by this MSP
     * 
* * optional .msp.FabricCryptoConfig crypto_config = 8; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfigOrBuilder getCryptoConfigOrBuilder() { return getCryptoConfig(); } public static final int TLS_ROOT_CERTS_FIELD_NUMBER = 9; private java.util.List tlsRootCerts_; /** *
     * List of TLS root certificates trusted by this MSP.
     * They are returned by GetTLSRootCerts.
     * 
* * repeated bytes tls_root_certs = 9; */ public java.util.List getTlsRootCertsList() { return tlsRootCerts_; } /** *
     * List of TLS root certificates trusted by this MSP.
     * They are returned by GetTLSRootCerts.
     * 
* * repeated bytes tls_root_certs = 9; */ public int getTlsRootCertsCount() { return tlsRootCerts_.size(); } /** *
     * List of TLS root certificates trusted by this MSP.
     * They are returned by GetTLSRootCerts.
     * 
* * repeated bytes tls_root_certs = 9; */ public com.google.protobuf.ByteString getTlsRootCerts(int index) { return tlsRootCerts_.get(index); } public static final int TLS_INTERMEDIATE_CERTS_FIELD_NUMBER = 10; private java.util.List tlsIntermediateCerts_; /** *
     * List of TLS intermediate certificates trusted by this MSP;
     * They are returned by GetTLSIntermediateCerts.
     * 
* * repeated bytes tls_intermediate_certs = 10; */ public java.util.List getTlsIntermediateCertsList() { return tlsIntermediateCerts_; } /** *
     * List of TLS intermediate certificates trusted by this MSP;
     * They are returned by GetTLSIntermediateCerts.
     * 
* * repeated bytes tls_intermediate_certs = 10; */ public int getTlsIntermediateCertsCount() { return tlsIntermediateCerts_.size(); } /** *
     * List of TLS intermediate certificates trusted by this MSP;
     * They are returned by GetTLSIntermediateCerts.
     * 
* * repeated bytes tls_intermediate_certs = 10; */ public com.google.protobuf.ByteString getTlsIntermediateCerts(int index) { return tlsIntermediateCerts_.get(index); } public static final int FABRIC_NODE_OUS_FIELD_NUMBER = 11; private org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs fabricNodeOus_; /** *
     * fabric_node_ous contains the configuration to distinguish clients from peers from orderers
     * based on the OUs.
     * 
* * optional .msp.FabricNodeOUs fabric_node_ous = 11; */ public boolean hasFabricNodeOus() { return fabricNodeOus_ != null; } /** *
     * fabric_node_ous contains the configuration to distinguish clients from peers from orderers
     * based on the OUs.
     * 
* * optional .msp.FabricNodeOUs fabric_node_ous = 11; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs getFabricNodeOus() { return fabricNodeOus_ == null ? org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs.getDefaultInstance() : fabricNodeOus_; } /** *
     * fabric_node_ous contains the configuration to distinguish clients from peers from orderers
     * based on the OUs.
     * 
* * optional .msp.FabricNodeOUs fabric_node_ous = 11; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUsOrBuilder getFabricNodeOusOrBuilder() { return getFabricNodeOus(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < rootCerts_.size(); i++) { output.writeBytes(2, rootCerts_.get(i)); } for (int i = 0; i < intermediateCerts_.size(); i++) { output.writeBytes(3, intermediateCerts_.get(i)); } for (int i = 0; i < admins_.size(); i++) { output.writeBytes(4, admins_.get(i)); } for (int i = 0; i < revocationList_.size(); i++) { output.writeBytes(5, revocationList_.get(i)); } if (signingIdentity_ != null) { output.writeMessage(6, getSigningIdentity()); } for (int i = 0; i < organizationalUnitIdentifiers_.size(); i++) { output.writeMessage(7, organizationalUnitIdentifiers_.get(i)); } if (cryptoConfig_ != null) { output.writeMessage(8, getCryptoConfig()); } for (int i = 0; i < tlsRootCerts_.size(); i++) { output.writeBytes(9, tlsRootCerts_.get(i)); } for (int i = 0; i < tlsIntermediateCerts_.size(); i++) { output.writeBytes(10, tlsIntermediateCerts_.get(i)); } if (fabricNodeOus_ != null) { output.writeMessage(11, getFabricNodeOus()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } { int dataSize = 0; for (int i = 0; i < rootCerts_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(rootCerts_.get(i)); } size += dataSize; size += 1 * getRootCertsList().size(); } { int dataSize = 0; for (int i = 0; i < intermediateCerts_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(intermediateCerts_.get(i)); } size += dataSize; size += 1 * getIntermediateCertsList().size(); } { int dataSize = 0; for (int i = 0; i < admins_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(admins_.get(i)); } size += dataSize; size += 1 * getAdminsList().size(); } { int dataSize = 0; for (int i = 0; i < revocationList_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(revocationList_.get(i)); } size += dataSize; size += 1 * getRevocationListList().size(); } if (signingIdentity_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getSigningIdentity()); } for (int i = 0; i < organizationalUnitIdentifiers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, organizationalUnitIdentifiers_.get(i)); } if (cryptoConfig_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getCryptoConfig()); } { int dataSize = 0; for (int i = 0; i < tlsRootCerts_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(tlsRootCerts_.get(i)); } size += dataSize; size += 1 * getTlsRootCertsList().size(); } { int dataSize = 0; for (int i = 0; i < tlsIntermediateCerts_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(tlsIntermediateCerts_.get(i)); } size += dataSize; size += 1 * getTlsIntermediateCertsList().size(); } if (fabricNodeOus_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getFabricNodeOus()); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig)) { return super.equals(obj); } org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig other = (org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getRootCertsList() .equals(other.getRootCertsList()); result = result && getIntermediateCertsList() .equals(other.getIntermediateCertsList()); result = result && getAdminsList() .equals(other.getAdminsList()); result = result && getRevocationListList() .equals(other.getRevocationListList()); result = result && (hasSigningIdentity() == other.hasSigningIdentity()); if (hasSigningIdentity()) { result = result && getSigningIdentity() .equals(other.getSigningIdentity()); } result = result && getOrganizationalUnitIdentifiersList() .equals(other.getOrganizationalUnitIdentifiersList()); result = result && (hasCryptoConfig() == other.hasCryptoConfig()); if (hasCryptoConfig()) { result = result && getCryptoConfig() .equals(other.getCryptoConfig()); } result = result && getTlsRootCertsList() .equals(other.getTlsRootCertsList()); result = result && getTlsIntermediateCertsList() .equals(other.getTlsIntermediateCertsList()); result = result && (hasFabricNodeOus() == other.hasFabricNodeOus()); if (hasFabricNodeOus()) { result = result && getFabricNodeOus() .equals(other.getFabricNodeOus()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (getRootCertsCount() > 0) { hash = (37 * hash) + ROOT_CERTS_FIELD_NUMBER; hash = (53 * hash) + getRootCertsList().hashCode(); } if (getIntermediateCertsCount() > 0) { hash = (37 * hash) + INTERMEDIATE_CERTS_FIELD_NUMBER; hash = (53 * hash) + getIntermediateCertsList().hashCode(); } if (getAdminsCount() > 0) { hash = (37 * hash) + ADMINS_FIELD_NUMBER; hash = (53 * hash) + getAdminsList().hashCode(); } if (getRevocationListCount() > 0) { hash = (37 * hash) + REVOCATION_LIST_FIELD_NUMBER; hash = (53 * hash) + getRevocationListList().hashCode(); } if (hasSigningIdentity()) { hash = (37 * hash) + SIGNING_IDENTITY_FIELD_NUMBER; hash = (53 * hash) + getSigningIdentity().hashCode(); } if (getOrganizationalUnitIdentifiersCount() > 0) { hash = (37 * hash) + ORGANIZATIONAL_UNIT_IDENTIFIERS_FIELD_NUMBER; hash = (53 * hash) + getOrganizationalUnitIdentifiersList().hashCode(); } if (hasCryptoConfig()) { hash = (37 * hash) + CRYPTO_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getCryptoConfig().hashCode(); } if (getTlsRootCertsCount() > 0) { hash = (37 * hash) + TLS_ROOT_CERTS_FIELD_NUMBER; hash = (53 * hash) + getTlsRootCertsList().hashCode(); } if (getTlsIntermediateCertsCount() > 0) { hash = (37 * hash) + TLS_INTERMEDIATE_CERTS_FIELD_NUMBER; hash = (53 * hash) + getTlsIntermediateCertsList().hashCode(); } if (hasFabricNodeOus()) { hash = (37 * hash) + FABRIC_NODE_OUS_FIELD_NUMBER; hash = (53 * hash) + getFabricNodeOus().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig 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.msp.MspConfig.FabricMSPConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig 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.msp.MspConfig.FabricMSPConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig 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.msp.MspConfig.FabricMSPConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * FabricMSPConfig collects all the configuration information for
     * a Fabric MSP.
     * Here we assume a default certificate validation policy, where
     * any certificate signed by any of the listed rootCA certs would
     * be considered as valid under this MSP.
     * This MSP may or may not come with a signing identity. If it does,
     * it can also issue signing identities. If it does not, it can only
     * be used to validate and verify certificates.
     * 
* * Protobuf type {@code msp.FabricMSPConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:msp.FabricMSPConfig) org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_FabricMSPConfig_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_FabricMSPConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig.class, org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig.Builder.class); } // Construct using org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOrganizationalUnitIdentifiersFieldBuilder(); } } public Builder clear() { super.clear(); name_ = ""; rootCerts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); intermediateCerts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); admins_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); revocationList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); if (signingIdentityBuilder_ == null) { signingIdentity_ = null; } else { signingIdentity_ = null; signingIdentityBuilder_ = null; } if (organizationalUnitIdentifiersBuilder_ == null) { organizationalUnitIdentifiers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { organizationalUnitIdentifiersBuilder_.clear(); } if (cryptoConfigBuilder_ == null) { cryptoConfig_ = null; } else { cryptoConfig_ = null; cryptoConfigBuilder_ = null; } tlsRootCerts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); tlsIntermediateCerts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); if (fabricNodeOusBuilder_ == null) { fabricNodeOus_ = null; } else { fabricNodeOus_ = null; fabricNodeOusBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_FabricMSPConfig_descriptor; } public org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig getDefaultInstanceForType() { return org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig.getDefaultInstance(); } public org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig build() { org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig buildPartial() { org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig result = new org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; if (((bitField0_ & 0x00000002) == 0x00000002)) { rootCerts_ = java.util.Collections.unmodifiableList(rootCerts_); bitField0_ = (bitField0_ & ~0x00000002); } result.rootCerts_ = rootCerts_; if (((bitField0_ & 0x00000004) == 0x00000004)) { intermediateCerts_ = java.util.Collections.unmodifiableList(intermediateCerts_); bitField0_ = (bitField0_ & ~0x00000004); } result.intermediateCerts_ = intermediateCerts_; if (((bitField0_ & 0x00000008) == 0x00000008)) { admins_ = java.util.Collections.unmodifiableList(admins_); bitField0_ = (bitField0_ & ~0x00000008); } result.admins_ = admins_; if (((bitField0_ & 0x00000010) == 0x00000010)) { revocationList_ = java.util.Collections.unmodifiableList(revocationList_); bitField0_ = (bitField0_ & ~0x00000010); } result.revocationList_ = revocationList_; if (signingIdentityBuilder_ == null) { result.signingIdentity_ = signingIdentity_; } else { result.signingIdentity_ = signingIdentityBuilder_.build(); } if (organizationalUnitIdentifiersBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { organizationalUnitIdentifiers_ = java.util.Collections.unmodifiableList(organizationalUnitIdentifiers_); bitField0_ = (bitField0_ & ~0x00000040); } result.organizationalUnitIdentifiers_ = organizationalUnitIdentifiers_; } else { result.organizationalUnitIdentifiers_ = organizationalUnitIdentifiersBuilder_.build(); } if (cryptoConfigBuilder_ == null) { result.cryptoConfig_ = cryptoConfig_; } else { result.cryptoConfig_ = cryptoConfigBuilder_.build(); } if (((bitField0_ & 0x00000100) == 0x00000100)) { tlsRootCerts_ = java.util.Collections.unmodifiableList(tlsRootCerts_); bitField0_ = (bitField0_ & ~0x00000100); } result.tlsRootCerts_ = tlsRootCerts_; if (((bitField0_ & 0x00000200) == 0x00000200)) { tlsIntermediateCerts_ = java.util.Collections.unmodifiableList(tlsIntermediateCerts_); bitField0_ = (bitField0_ & ~0x00000200); } result.tlsIntermediateCerts_ = tlsIntermediateCerts_; if (fabricNodeOusBuilder_ == null) { result.fabricNodeOus_ = fabricNodeOus_; } else { result.fabricNodeOus_ = fabricNodeOusBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig) { return mergeFrom((org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig other) { if (other == org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.rootCerts_.isEmpty()) { if (rootCerts_.isEmpty()) { rootCerts_ = other.rootCerts_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRootCertsIsMutable(); rootCerts_.addAll(other.rootCerts_); } onChanged(); } if (!other.intermediateCerts_.isEmpty()) { if (intermediateCerts_.isEmpty()) { intermediateCerts_ = other.intermediateCerts_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureIntermediateCertsIsMutable(); intermediateCerts_.addAll(other.intermediateCerts_); } onChanged(); } if (!other.admins_.isEmpty()) { if (admins_.isEmpty()) { admins_ = other.admins_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureAdminsIsMutable(); admins_.addAll(other.admins_); } onChanged(); } if (!other.revocationList_.isEmpty()) { if (revocationList_.isEmpty()) { revocationList_ = other.revocationList_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureRevocationListIsMutable(); revocationList_.addAll(other.revocationList_); } onChanged(); } if (other.hasSigningIdentity()) { mergeSigningIdentity(other.getSigningIdentity()); } if (organizationalUnitIdentifiersBuilder_ == null) { if (!other.organizationalUnitIdentifiers_.isEmpty()) { if (organizationalUnitIdentifiers_.isEmpty()) { organizationalUnitIdentifiers_ = other.organizationalUnitIdentifiers_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureOrganizationalUnitIdentifiersIsMutable(); organizationalUnitIdentifiers_.addAll(other.organizationalUnitIdentifiers_); } onChanged(); } } else { if (!other.organizationalUnitIdentifiers_.isEmpty()) { if (organizationalUnitIdentifiersBuilder_.isEmpty()) { organizationalUnitIdentifiersBuilder_.dispose(); organizationalUnitIdentifiersBuilder_ = null; organizationalUnitIdentifiers_ = other.organizationalUnitIdentifiers_; bitField0_ = (bitField0_ & ~0x00000040); organizationalUnitIdentifiersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOrganizationalUnitIdentifiersFieldBuilder() : null; } else { organizationalUnitIdentifiersBuilder_.addAllMessages(other.organizationalUnitIdentifiers_); } } } if (other.hasCryptoConfig()) { mergeCryptoConfig(other.getCryptoConfig()); } if (!other.tlsRootCerts_.isEmpty()) { if (tlsRootCerts_.isEmpty()) { tlsRootCerts_ = other.tlsRootCerts_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureTlsRootCertsIsMutable(); tlsRootCerts_.addAll(other.tlsRootCerts_); } onChanged(); } if (!other.tlsIntermediateCerts_.isEmpty()) { if (tlsIntermediateCerts_.isEmpty()) { tlsIntermediateCerts_ = other.tlsIntermediateCerts_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureTlsIntermediateCertsIsMutable(); tlsIntermediateCerts_.addAll(other.tlsIntermediateCerts_); } onChanged(); } if (other.hasFabricNodeOus()) { mergeFabricNodeOus(other.getFabricNodeOus()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * Name holds the identifier of the MSP; MSP identifier
       * is chosen by the application that governs this MSP.
       * For example, and assuming the default implementation of MSP,
       * that is X.509-based and considers a single Issuer,
       * this can refer to the Subject OU field or the Issuer OU field.
       * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name holds the identifier of the MSP; MSP identifier
       * is chosen by the application that governs this MSP.
       * For example, and assuming the default implementation of MSP,
       * that is X.509-based and considers a single Issuer,
       * this can refer to the Subject OU field or the Issuer OU field.
       * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name holds the identifier of the MSP; MSP identifier
       * is chosen by the application that governs this MSP.
       * For example, and assuming the default implementation of MSP,
       * that is X.509-based and considers a single Issuer,
       * this can refer to the Subject OU field or the Issuer OU field.
       * 
* * optional string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name holds the identifier of the MSP; MSP identifier
       * is chosen by the application that governs this MSP.
       * For example, and assuming the default implementation of MSP,
       * that is X.509-based and considers a single Issuer,
       * this can refer to the Subject OU field or the Issuer OU field.
       * 
* * optional string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name holds the identifier of the MSP; MSP identifier
       * is chosen by the application that governs this MSP.
       * For example, and assuming the default implementation of MSP,
       * that is X.509-based and considers a single Issuer,
       * this can refer to the Subject OU field or the Issuer OU field.
       * 
* * optional string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.util.List rootCerts_ = java.util.Collections.emptyList(); private void ensureRootCertsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { rootCerts_ = new java.util.ArrayList(rootCerts_); bitField0_ |= 0x00000002; } } /** *
       * List of root certificates trusted by this MSP
       * they are used upon certificate validation (see
       * comment for IntermediateCerts below)
       * 
* * repeated bytes root_certs = 2; */ public java.util.List getRootCertsList() { return java.util.Collections.unmodifiableList(rootCerts_); } /** *
       * List of root certificates trusted by this MSP
       * they are used upon certificate validation (see
       * comment for IntermediateCerts below)
       * 
* * repeated bytes root_certs = 2; */ public int getRootCertsCount() { return rootCerts_.size(); } /** *
       * List of root certificates trusted by this MSP
       * they are used upon certificate validation (see
       * comment for IntermediateCerts below)
       * 
* * repeated bytes root_certs = 2; */ public com.google.protobuf.ByteString getRootCerts(int index) { return rootCerts_.get(index); } /** *
       * List of root certificates trusted by this MSP
       * they are used upon certificate validation (see
       * comment for IntermediateCerts below)
       * 
* * repeated bytes root_certs = 2; */ public Builder setRootCerts( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRootCertsIsMutable(); rootCerts_.set(index, value); onChanged(); return this; } /** *
       * List of root certificates trusted by this MSP
       * they are used upon certificate validation (see
       * comment for IntermediateCerts below)
       * 
* * repeated bytes root_certs = 2; */ public Builder addRootCerts(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRootCertsIsMutable(); rootCerts_.add(value); onChanged(); return this; } /** *
       * List of root certificates trusted by this MSP
       * they are used upon certificate validation (see
       * comment for IntermediateCerts below)
       * 
* * repeated bytes root_certs = 2; */ public Builder addAllRootCerts( java.lang.Iterable values) { ensureRootCertsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, rootCerts_); onChanged(); return this; } /** *
       * List of root certificates trusted by this MSP
       * they are used upon certificate validation (see
       * comment for IntermediateCerts below)
       * 
* * repeated bytes root_certs = 2; */ public Builder clearRootCerts() { rootCerts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private java.util.List intermediateCerts_ = java.util.Collections.emptyList(); private void ensureIntermediateCertsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { intermediateCerts_ = new java.util.ArrayList(intermediateCerts_); bitField0_ |= 0x00000004; } } /** *
       * List of intermediate certificates trusted by this MSP;
       * they are used upon certificate validation as follows:
       * validation attempts to build a path from the certificate
       * to be validated (which is at one end of the path) and
       * one of the certs in the RootCerts field (which is at
       * the other end of the path). If the path is longer than
       * 2, certificates in the middle are searched within the
       * IntermediateCerts pool
       * 
* * repeated bytes intermediate_certs = 3; */ public java.util.List getIntermediateCertsList() { return java.util.Collections.unmodifiableList(intermediateCerts_); } /** *
       * List of intermediate certificates trusted by this MSP;
       * they are used upon certificate validation as follows:
       * validation attempts to build a path from the certificate
       * to be validated (which is at one end of the path) and
       * one of the certs in the RootCerts field (which is at
       * the other end of the path). If the path is longer than
       * 2, certificates in the middle are searched within the
       * IntermediateCerts pool
       * 
* * repeated bytes intermediate_certs = 3; */ public int getIntermediateCertsCount() { return intermediateCerts_.size(); } /** *
       * List of intermediate certificates trusted by this MSP;
       * they are used upon certificate validation as follows:
       * validation attempts to build a path from the certificate
       * to be validated (which is at one end of the path) and
       * one of the certs in the RootCerts field (which is at
       * the other end of the path). If the path is longer than
       * 2, certificates in the middle are searched within the
       * IntermediateCerts pool
       * 
* * repeated bytes intermediate_certs = 3; */ public com.google.protobuf.ByteString getIntermediateCerts(int index) { return intermediateCerts_.get(index); } /** *
       * List of intermediate certificates trusted by this MSP;
       * they are used upon certificate validation as follows:
       * validation attempts to build a path from the certificate
       * to be validated (which is at one end of the path) and
       * one of the certs in the RootCerts field (which is at
       * the other end of the path). If the path is longer than
       * 2, certificates in the middle are searched within the
       * IntermediateCerts pool
       * 
* * repeated bytes intermediate_certs = 3; */ public Builder setIntermediateCerts( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureIntermediateCertsIsMutable(); intermediateCerts_.set(index, value); onChanged(); return this; } /** *
       * List of intermediate certificates trusted by this MSP;
       * they are used upon certificate validation as follows:
       * validation attempts to build a path from the certificate
       * to be validated (which is at one end of the path) and
       * one of the certs in the RootCerts field (which is at
       * the other end of the path). If the path is longer than
       * 2, certificates in the middle are searched within the
       * IntermediateCerts pool
       * 
* * repeated bytes intermediate_certs = 3; */ public Builder addIntermediateCerts(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureIntermediateCertsIsMutable(); intermediateCerts_.add(value); onChanged(); return this; } /** *
       * List of intermediate certificates trusted by this MSP;
       * they are used upon certificate validation as follows:
       * validation attempts to build a path from the certificate
       * to be validated (which is at one end of the path) and
       * one of the certs in the RootCerts field (which is at
       * the other end of the path). If the path is longer than
       * 2, certificates in the middle are searched within the
       * IntermediateCerts pool
       * 
* * repeated bytes intermediate_certs = 3; */ public Builder addAllIntermediateCerts( java.lang.Iterable values) { ensureIntermediateCertsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, intermediateCerts_); onChanged(); return this; } /** *
       * List of intermediate certificates trusted by this MSP;
       * they are used upon certificate validation as follows:
       * validation attempts to build a path from the certificate
       * to be validated (which is at one end of the path) and
       * one of the certs in the RootCerts field (which is at
       * the other end of the path). If the path is longer than
       * 2, certificates in the middle are searched within the
       * IntermediateCerts pool
       * 
* * repeated bytes intermediate_certs = 3; */ public Builder clearIntermediateCerts() { intermediateCerts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private java.util.List admins_ = java.util.Collections.emptyList(); private void ensureAdminsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { admins_ = new java.util.ArrayList(admins_); bitField0_ |= 0x00000008; } } /** *
       * Identity denoting the administrator of this MSP
       * 
* * repeated bytes admins = 4; */ public java.util.List getAdminsList() { return java.util.Collections.unmodifiableList(admins_); } /** *
       * Identity denoting the administrator of this MSP
       * 
* * repeated bytes admins = 4; */ public int getAdminsCount() { return admins_.size(); } /** *
       * Identity denoting the administrator of this MSP
       * 
* * repeated bytes admins = 4; */ public com.google.protobuf.ByteString getAdmins(int index) { return admins_.get(index); } /** *
       * Identity denoting the administrator of this MSP
       * 
* * repeated bytes admins = 4; */ public Builder setAdmins( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAdminsIsMutable(); admins_.set(index, value); onChanged(); return this; } /** *
       * Identity denoting the administrator of this MSP
       * 
* * repeated bytes admins = 4; */ public Builder addAdmins(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAdminsIsMutable(); admins_.add(value); onChanged(); return this; } /** *
       * Identity denoting the administrator of this MSP
       * 
* * repeated bytes admins = 4; */ public Builder addAllAdmins( java.lang.Iterable values) { ensureAdminsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, admins_); onChanged(); return this; } /** *
       * Identity denoting the administrator of this MSP
       * 
* * repeated bytes admins = 4; */ public Builder clearAdmins() { admins_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } private java.util.List revocationList_ = java.util.Collections.emptyList(); private void ensureRevocationListIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { revocationList_ = new java.util.ArrayList(revocationList_); bitField0_ |= 0x00000010; } } /** *
       * Identity revocation list
       * 
* * repeated bytes revocation_list = 5; */ public java.util.List getRevocationListList() { return java.util.Collections.unmodifiableList(revocationList_); } /** *
       * Identity revocation list
       * 
* * repeated bytes revocation_list = 5; */ public int getRevocationListCount() { return revocationList_.size(); } /** *
       * Identity revocation list
       * 
* * repeated bytes revocation_list = 5; */ public com.google.protobuf.ByteString getRevocationList(int index) { return revocationList_.get(index); } /** *
       * Identity revocation list
       * 
* * repeated bytes revocation_list = 5; */ public Builder setRevocationList( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRevocationListIsMutable(); revocationList_.set(index, value); onChanged(); return this; } /** *
       * Identity revocation list
       * 
* * repeated bytes revocation_list = 5; */ public Builder addRevocationList(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRevocationListIsMutable(); revocationList_.add(value); onChanged(); return this; } /** *
       * Identity revocation list
       * 
* * repeated bytes revocation_list = 5; */ public Builder addAllRevocationList( java.lang.Iterable values) { ensureRevocationListIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, revocationList_); onChanged(); return this; } /** *
       * Identity revocation list
       * 
* * repeated bytes revocation_list = 5; */ public Builder clearRevocationList() { revocationList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } private org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo signingIdentity_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo, org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo.Builder, org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfoOrBuilder> signingIdentityBuilder_; /** *
       * SigningIdentity holds information on the signing identity
       * this peer is to use, and which is to be imported by the
       * MSP defined before
       * 
* * optional .msp.SigningIdentityInfo signing_identity = 6; */ public boolean hasSigningIdentity() { return signingIdentityBuilder_ != null || signingIdentity_ != null; } /** *
       * SigningIdentity holds information on the signing identity
       * this peer is to use, and which is to be imported by the
       * MSP defined before
       * 
* * optional .msp.SigningIdentityInfo signing_identity = 6; */ public org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo getSigningIdentity() { if (signingIdentityBuilder_ == null) { return signingIdentity_ == null ? org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo.getDefaultInstance() : signingIdentity_; } else { return signingIdentityBuilder_.getMessage(); } } /** *
       * SigningIdentity holds information on the signing identity
       * this peer is to use, and which is to be imported by the
       * MSP defined before
       * 
* * optional .msp.SigningIdentityInfo signing_identity = 6; */ public Builder setSigningIdentity(org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo value) { if (signingIdentityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } signingIdentity_ = value; onChanged(); } else { signingIdentityBuilder_.setMessage(value); } return this; } /** *
       * SigningIdentity holds information on the signing identity
       * this peer is to use, and which is to be imported by the
       * MSP defined before
       * 
* * optional .msp.SigningIdentityInfo signing_identity = 6; */ public Builder setSigningIdentity( org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo.Builder builderForValue) { if (signingIdentityBuilder_ == null) { signingIdentity_ = builderForValue.build(); onChanged(); } else { signingIdentityBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * SigningIdentity holds information on the signing identity
       * this peer is to use, and which is to be imported by the
       * MSP defined before
       * 
* * optional .msp.SigningIdentityInfo signing_identity = 6; */ public Builder mergeSigningIdentity(org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo value) { if (signingIdentityBuilder_ == null) { if (signingIdentity_ != null) { signingIdentity_ = org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo.newBuilder(signingIdentity_).mergeFrom(value).buildPartial(); } else { signingIdentity_ = value; } onChanged(); } else { signingIdentityBuilder_.mergeFrom(value); } return this; } /** *
       * SigningIdentity holds information on the signing identity
       * this peer is to use, and which is to be imported by the
       * MSP defined before
       * 
* * optional .msp.SigningIdentityInfo signing_identity = 6; */ public Builder clearSigningIdentity() { if (signingIdentityBuilder_ == null) { signingIdentity_ = null; onChanged(); } else { signingIdentity_ = null; signingIdentityBuilder_ = null; } return this; } /** *
       * SigningIdentity holds information on the signing identity
       * this peer is to use, and which is to be imported by the
       * MSP defined before
       * 
* * optional .msp.SigningIdentityInfo signing_identity = 6; */ public org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo.Builder getSigningIdentityBuilder() { onChanged(); return getSigningIdentityFieldBuilder().getBuilder(); } /** *
       * SigningIdentity holds information on the signing identity
       * this peer is to use, and which is to be imported by the
       * MSP defined before
       * 
* * optional .msp.SigningIdentityInfo signing_identity = 6; */ public org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfoOrBuilder getSigningIdentityOrBuilder() { if (signingIdentityBuilder_ != null) { return signingIdentityBuilder_.getMessageOrBuilder(); } else { return signingIdentity_ == null ? org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo.getDefaultInstance() : signingIdentity_; } } /** *
       * SigningIdentity holds information on the signing identity
       * this peer is to use, and which is to be imported by the
       * MSP defined before
       * 
* * optional .msp.SigningIdentityInfo signing_identity = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo, org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo.Builder, org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfoOrBuilder> getSigningIdentityFieldBuilder() { if (signingIdentityBuilder_ == null) { signingIdentityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo, org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo.Builder, org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfoOrBuilder>( getSigningIdentity(), getParentForChildren(), isClean()); signingIdentity_ = null; } return signingIdentityBuilder_; } private java.util.List organizationalUnitIdentifiers_ = java.util.Collections.emptyList(); private void ensureOrganizationalUnitIdentifiersIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { organizationalUnitIdentifiers_ = new java.util.ArrayList(organizationalUnitIdentifiers_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier, org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.Builder, org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifierOrBuilder> organizationalUnitIdentifiersBuilder_; /** *
       * OrganizationalUnitIdentifiers holds one or more
       * fabric organizational unit identifiers that belong to
       * this MSP configuration
       * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ public java.util.List getOrganizationalUnitIdentifiersList() { if (organizationalUnitIdentifiersBuilder_ == null) { return java.util.Collections.unmodifiableList(organizationalUnitIdentifiers_); } else { return organizationalUnitIdentifiersBuilder_.getMessageList(); } } /** *
       * OrganizationalUnitIdentifiers holds one or more
       * fabric organizational unit identifiers that belong to
       * this MSP configuration
       * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ public int getOrganizationalUnitIdentifiersCount() { if (organizationalUnitIdentifiersBuilder_ == null) { return organizationalUnitIdentifiers_.size(); } else { return organizationalUnitIdentifiersBuilder_.getCount(); } } /** *
       * OrganizationalUnitIdentifiers holds one or more
       * fabric organizational unit identifiers that belong to
       * this MSP configuration
       * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier getOrganizationalUnitIdentifiers(int index) { if (organizationalUnitIdentifiersBuilder_ == null) { return organizationalUnitIdentifiers_.get(index); } else { return organizationalUnitIdentifiersBuilder_.getMessage(index); } } /** *
       * OrganizationalUnitIdentifiers holds one or more
       * fabric organizational unit identifiers that belong to
       * this MSP configuration
       * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ public Builder setOrganizationalUnitIdentifiers( int index, org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier value) { if (organizationalUnitIdentifiersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOrganizationalUnitIdentifiersIsMutable(); organizationalUnitIdentifiers_.set(index, value); onChanged(); } else { organizationalUnitIdentifiersBuilder_.setMessage(index, value); } return this; } /** *
       * OrganizationalUnitIdentifiers holds one or more
       * fabric organizational unit identifiers that belong to
       * this MSP configuration
       * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ public Builder setOrganizationalUnitIdentifiers( int index, org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.Builder builderForValue) { if (organizationalUnitIdentifiersBuilder_ == null) { ensureOrganizationalUnitIdentifiersIsMutable(); organizationalUnitIdentifiers_.set(index, builderForValue.build()); onChanged(); } else { organizationalUnitIdentifiersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * OrganizationalUnitIdentifiers holds one or more
       * fabric organizational unit identifiers that belong to
       * this MSP configuration
       * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ public Builder addOrganizationalUnitIdentifiers(org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier value) { if (organizationalUnitIdentifiersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOrganizationalUnitIdentifiersIsMutable(); organizationalUnitIdentifiers_.add(value); onChanged(); } else { organizationalUnitIdentifiersBuilder_.addMessage(value); } return this; } /** *
       * OrganizationalUnitIdentifiers holds one or more
       * fabric organizational unit identifiers that belong to
       * this MSP configuration
       * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ public Builder addOrganizationalUnitIdentifiers( int index, org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier value) { if (organizationalUnitIdentifiersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOrganizationalUnitIdentifiersIsMutable(); organizationalUnitIdentifiers_.add(index, value); onChanged(); } else { organizationalUnitIdentifiersBuilder_.addMessage(index, value); } return this; } /** *
       * OrganizationalUnitIdentifiers holds one or more
       * fabric organizational unit identifiers that belong to
       * this MSP configuration
       * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ public Builder addOrganizationalUnitIdentifiers( org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.Builder builderForValue) { if (organizationalUnitIdentifiersBuilder_ == null) { ensureOrganizationalUnitIdentifiersIsMutable(); organizationalUnitIdentifiers_.add(builderForValue.build()); onChanged(); } else { organizationalUnitIdentifiersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * OrganizationalUnitIdentifiers holds one or more
       * fabric organizational unit identifiers that belong to
       * this MSP configuration
       * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ public Builder addOrganizationalUnitIdentifiers( int index, org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.Builder builderForValue) { if (organizationalUnitIdentifiersBuilder_ == null) { ensureOrganizationalUnitIdentifiersIsMutable(); organizationalUnitIdentifiers_.add(index, builderForValue.build()); onChanged(); } else { organizationalUnitIdentifiersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * OrganizationalUnitIdentifiers holds one or more
       * fabric organizational unit identifiers that belong to
       * this MSP configuration
       * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ public Builder addAllOrganizationalUnitIdentifiers( java.lang.Iterable values) { if (organizationalUnitIdentifiersBuilder_ == null) { ensureOrganizationalUnitIdentifiersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, organizationalUnitIdentifiers_); onChanged(); } else { organizationalUnitIdentifiersBuilder_.addAllMessages(values); } return this; } /** *
       * OrganizationalUnitIdentifiers holds one or more
       * fabric organizational unit identifiers that belong to
       * this MSP configuration
       * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ public Builder clearOrganizationalUnitIdentifiers() { if (organizationalUnitIdentifiersBuilder_ == null) { organizationalUnitIdentifiers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { organizationalUnitIdentifiersBuilder_.clear(); } return this; } /** *
       * OrganizationalUnitIdentifiers holds one or more
       * fabric organizational unit identifiers that belong to
       * this MSP configuration
       * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ public Builder removeOrganizationalUnitIdentifiers(int index) { if (organizationalUnitIdentifiersBuilder_ == null) { ensureOrganizationalUnitIdentifiersIsMutable(); organizationalUnitIdentifiers_.remove(index); onChanged(); } else { organizationalUnitIdentifiersBuilder_.remove(index); } return this; } /** *
       * OrganizationalUnitIdentifiers holds one or more
       * fabric organizational unit identifiers that belong to
       * this MSP configuration
       * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.Builder getOrganizationalUnitIdentifiersBuilder( int index) { return getOrganizationalUnitIdentifiersFieldBuilder().getBuilder(index); } /** *
       * OrganizationalUnitIdentifiers holds one or more
       * fabric organizational unit identifiers that belong to
       * this MSP configuration
       * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifierOrBuilder getOrganizationalUnitIdentifiersOrBuilder( int index) { if (organizationalUnitIdentifiersBuilder_ == null) { return organizationalUnitIdentifiers_.get(index); } else { return organizationalUnitIdentifiersBuilder_.getMessageOrBuilder(index); } } /** *
       * OrganizationalUnitIdentifiers holds one or more
       * fabric organizational unit identifiers that belong to
       * this MSP configuration
       * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ public java.util.List getOrganizationalUnitIdentifiersOrBuilderList() { if (organizationalUnitIdentifiersBuilder_ != null) { return organizationalUnitIdentifiersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(organizationalUnitIdentifiers_); } } /** *
       * OrganizationalUnitIdentifiers holds one or more
       * fabric organizational unit identifiers that belong to
       * this MSP configuration
       * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.Builder addOrganizationalUnitIdentifiersBuilder() { return getOrganizationalUnitIdentifiersFieldBuilder().addBuilder( org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.getDefaultInstance()); } /** *
       * OrganizationalUnitIdentifiers holds one or more
       * fabric organizational unit identifiers that belong to
       * this MSP configuration
       * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.Builder addOrganizationalUnitIdentifiersBuilder( int index) { return getOrganizationalUnitIdentifiersFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.getDefaultInstance()); } /** *
       * OrganizationalUnitIdentifiers holds one or more
       * fabric organizational unit identifiers that belong to
       * this MSP configuration
       * 
* * repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7; */ public java.util.List getOrganizationalUnitIdentifiersBuilderList() { return getOrganizationalUnitIdentifiersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier, org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.Builder, org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifierOrBuilder> getOrganizationalUnitIdentifiersFieldBuilder() { if (organizationalUnitIdentifiersBuilder_ == null) { organizationalUnitIdentifiersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier, org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.Builder, org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifierOrBuilder>( organizationalUnitIdentifiers_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); organizationalUnitIdentifiers_ = null; } return organizationalUnitIdentifiersBuilder_; } private org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig cryptoConfig_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig, org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig.Builder, org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfigOrBuilder> cryptoConfigBuilder_; /** *
       * FabricCryptoConfig contains the configuration parameters
       * for the cryptographic algorithms used by this MSP
       * 
* * optional .msp.FabricCryptoConfig crypto_config = 8; */ public boolean hasCryptoConfig() { return cryptoConfigBuilder_ != null || cryptoConfig_ != null; } /** *
       * FabricCryptoConfig contains the configuration parameters
       * for the cryptographic algorithms used by this MSP
       * 
* * optional .msp.FabricCryptoConfig crypto_config = 8; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig getCryptoConfig() { if (cryptoConfigBuilder_ == null) { return cryptoConfig_ == null ? org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig.getDefaultInstance() : cryptoConfig_; } else { return cryptoConfigBuilder_.getMessage(); } } /** *
       * FabricCryptoConfig contains the configuration parameters
       * for the cryptographic algorithms used by this MSP
       * 
* * optional .msp.FabricCryptoConfig crypto_config = 8; */ public Builder setCryptoConfig(org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig value) { if (cryptoConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cryptoConfig_ = value; onChanged(); } else { cryptoConfigBuilder_.setMessage(value); } return this; } /** *
       * FabricCryptoConfig contains the configuration parameters
       * for the cryptographic algorithms used by this MSP
       * 
* * optional .msp.FabricCryptoConfig crypto_config = 8; */ public Builder setCryptoConfig( org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig.Builder builderForValue) { if (cryptoConfigBuilder_ == null) { cryptoConfig_ = builderForValue.build(); onChanged(); } else { cryptoConfigBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * FabricCryptoConfig contains the configuration parameters
       * for the cryptographic algorithms used by this MSP
       * 
* * optional .msp.FabricCryptoConfig crypto_config = 8; */ public Builder mergeCryptoConfig(org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig value) { if (cryptoConfigBuilder_ == null) { if (cryptoConfig_ != null) { cryptoConfig_ = org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig.newBuilder(cryptoConfig_).mergeFrom(value).buildPartial(); } else { cryptoConfig_ = value; } onChanged(); } else { cryptoConfigBuilder_.mergeFrom(value); } return this; } /** *
       * FabricCryptoConfig contains the configuration parameters
       * for the cryptographic algorithms used by this MSP
       * 
* * optional .msp.FabricCryptoConfig crypto_config = 8; */ public Builder clearCryptoConfig() { if (cryptoConfigBuilder_ == null) { cryptoConfig_ = null; onChanged(); } else { cryptoConfig_ = null; cryptoConfigBuilder_ = null; } return this; } /** *
       * FabricCryptoConfig contains the configuration parameters
       * for the cryptographic algorithms used by this MSP
       * 
* * optional .msp.FabricCryptoConfig crypto_config = 8; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig.Builder getCryptoConfigBuilder() { onChanged(); return getCryptoConfigFieldBuilder().getBuilder(); } /** *
       * FabricCryptoConfig contains the configuration parameters
       * for the cryptographic algorithms used by this MSP
       * 
* * optional .msp.FabricCryptoConfig crypto_config = 8; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfigOrBuilder getCryptoConfigOrBuilder() { if (cryptoConfigBuilder_ != null) { return cryptoConfigBuilder_.getMessageOrBuilder(); } else { return cryptoConfig_ == null ? org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig.getDefaultInstance() : cryptoConfig_; } } /** *
       * FabricCryptoConfig contains the configuration parameters
       * for the cryptographic algorithms used by this MSP
       * 
* * optional .msp.FabricCryptoConfig crypto_config = 8; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig, org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig.Builder, org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfigOrBuilder> getCryptoConfigFieldBuilder() { if (cryptoConfigBuilder_ == null) { cryptoConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig, org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig.Builder, org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfigOrBuilder>( getCryptoConfig(), getParentForChildren(), isClean()); cryptoConfig_ = null; } return cryptoConfigBuilder_; } private java.util.List tlsRootCerts_ = java.util.Collections.emptyList(); private void ensureTlsRootCertsIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { tlsRootCerts_ = new java.util.ArrayList(tlsRootCerts_); bitField0_ |= 0x00000100; } } /** *
       * List of TLS root certificates trusted by this MSP.
       * They are returned by GetTLSRootCerts.
       * 
* * repeated bytes tls_root_certs = 9; */ public java.util.List getTlsRootCertsList() { return java.util.Collections.unmodifiableList(tlsRootCerts_); } /** *
       * List of TLS root certificates trusted by this MSP.
       * They are returned by GetTLSRootCerts.
       * 
* * repeated bytes tls_root_certs = 9; */ public int getTlsRootCertsCount() { return tlsRootCerts_.size(); } /** *
       * List of TLS root certificates trusted by this MSP.
       * They are returned by GetTLSRootCerts.
       * 
* * repeated bytes tls_root_certs = 9; */ public com.google.protobuf.ByteString getTlsRootCerts(int index) { return tlsRootCerts_.get(index); } /** *
       * List of TLS root certificates trusted by this MSP.
       * They are returned by GetTLSRootCerts.
       * 
* * repeated bytes tls_root_certs = 9; */ public Builder setTlsRootCerts( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureTlsRootCertsIsMutable(); tlsRootCerts_.set(index, value); onChanged(); return this; } /** *
       * List of TLS root certificates trusted by this MSP.
       * They are returned by GetTLSRootCerts.
       * 
* * repeated bytes tls_root_certs = 9; */ public Builder addTlsRootCerts(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureTlsRootCertsIsMutable(); tlsRootCerts_.add(value); onChanged(); return this; } /** *
       * List of TLS root certificates trusted by this MSP.
       * They are returned by GetTLSRootCerts.
       * 
* * repeated bytes tls_root_certs = 9; */ public Builder addAllTlsRootCerts( java.lang.Iterable values) { ensureTlsRootCertsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tlsRootCerts_); onChanged(); return this; } /** *
       * List of TLS root certificates trusted by this MSP.
       * They are returned by GetTLSRootCerts.
       * 
* * repeated bytes tls_root_certs = 9; */ public Builder clearTlsRootCerts() { tlsRootCerts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } private java.util.List tlsIntermediateCerts_ = java.util.Collections.emptyList(); private void ensureTlsIntermediateCertsIsMutable() { if (!((bitField0_ & 0x00000200) == 0x00000200)) { tlsIntermediateCerts_ = new java.util.ArrayList(tlsIntermediateCerts_); bitField0_ |= 0x00000200; } } /** *
       * List of TLS intermediate certificates trusted by this MSP;
       * They are returned by GetTLSIntermediateCerts.
       * 
* * repeated bytes tls_intermediate_certs = 10; */ public java.util.List getTlsIntermediateCertsList() { return java.util.Collections.unmodifiableList(tlsIntermediateCerts_); } /** *
       * List of TLS intermediate certificates trusted by this MSP;
       * They are returned by GetTLSIntermediateCerts.
       * 
* * repeated bytes tls_intermediate_certs = 10; */ public int getTlsIntermediateCertsCount() { return tlsIntermediateCerts_.size(); } /** *
       * List of TLS intermediate certificates trusted by this MSP;
       * They are returned by GetTLSIntermediateCerts.
       * 
* * repeated bytes tls_intermediate_certs = 10; */ public com.google.protobuf.ByteString getTlsIntermediateCerts(int index) { return tlsIntermediateCerts_.get(index); } /** *
       * List of TLS intermediate certificates trusted by this MSP;
       * They are returned by GetTLSIntermediateCerts.
       * 
* * repeated bytes tls_intermediate_certs = 10; */ public Builder setTlsIntermediateCerts( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureTlsIntermediateCertsIsMutable(); tlsIntermediateCerts_.set(index, value); onChanged(); return this; } /** *
       * List of TLS intermediate certificates trusted by this MSP;
       * They are returned by GetTLSIntermediateCerts.
       * 
* * repeated bytes tls_intermediate_certs = 10; */ public Builder addTlsIntermediateCerts(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureTlsIntermediateCertsIsMutable(); tlsIntermediateCerts_.add(value); onChanged(); return this; } /** *
       * List of TLS intermediate certificates trusted by this MSP;
       * They are returned by GetTLSIntermediateCerts.
       * 
* * repeated bytes tls_intermediate_certs = 10; */ public Builder addAllTlsIntermediateCerts( java.lang.Iterable values) { ensureTlsIntermediateCertsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tlsIntermediateCerts_); onChanged(); return this; } /** *
       * List of TLS intermediate certificates trusted by this MSP;
       * They are returned by GetTLSIntermediateCerts.
       * 
* * repeated bytes tls_intermediate_certs = 10; */ public Builder clearTlsIntermediateCerts() { tlsIntermediateCerts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } private org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs fabricNodeOus_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs, org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs.Builder, org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUsOrBuilder> fabricNodeOusBuilder_; /** *
       * fabric_node_ous contains the configuration to distinguish clients from peers from orderers
       * based on the OUs.
       * 
* * optional .msp.FabricNodeOUs fabric_node_ous = 11; */ public boolean hasFabricNodeOus() { return fabricNodeOusBuilder_ != null || fabricNodeOus_ != null; } /** *
       * fabric_node_ous contains the configuration to distinguish clients from peers from orderers
       * based on the OUs.
       * 
* * optional .msp.FabricNodeOUs fabric_node_ous = 11; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs getFabricNodeOus() { if (fabricNodeOusBuilder_ == null) { return fabricNodeOus_ == null ? org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs.getDefaultInstance() : fabricNodeOus_; } else { return fabricNodeOusBuilder_.getMessage(); } } /** *
       * fabric_node_ous contains the configuration to distinguish clients from peers from orderers
       * based on the OUs.
       * 
* * optional .msp.FabricNodeOUs fabric_node_ous = 11; */ public Builder setFabricNodeOus(org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs value) { if (fabricNodeOusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fabricNodeOus_ = value; onChanged(); } else { fabricNodeOusBuilder_.setMessage(value); } return this; } /** *
       * fabric_node_ous contains the configuration to distinguish clients from peers from orderers
       * based on the OUs.
       * 
* * optional .msp.FabricNodeOUs fabric_node_ous = 11; */ public Builder setFabricNodeOus( org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs.Builder builderForValue) { if (fabricNodeOusBuilder_ == null) { fabricNodeOus_ = builderForValue.build(); onChanged(); } else { fabricNodeOusBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * fabric_node_ous contains the configuration to distinguish clients from peers from orderers
       * based on the OUs.
       * 
* * optional .msp.FabricNodeOUs fabric_node_ous = 11; */ public Builder mergeFabricNodeOus(org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs value) { if (fabricNodeOusBuilder_ == null) { if (fabricNodeOus_ != null) { fabricNodeOus_ = org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs.newBuilder(fabricNodeOus_).mergeFrom(value).buildPartial(); } else { fabricNodeOus_ = value; } onChanged(); } else { fabricNodeOusBuilder_.mergeFrom(value); } return this; } /** *
       * fabric_node_ous contains the configuration to distinguish clients from peers from orderers
       * based on the OUs.
       * 
* * optional .msp.FabricNodeOUs fabric_node_ous = 11; */ public Builder clearFabricNodeOus() { if (fabricNodeOusBuilder_ == null) { fabricNodeOus_ = null; onChanged(); } else { fabricNodeOus_ = null; fabricNodeOusBuilder_ = null; } return this; } /** *
       * fabric_node_ous contains the configuration to distinguish clients from peers from orderers
       * based on the OUs.
       * 
* * optional .msp.FabricNodeOUs fabric_node_ous = 11; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs.Builder getFabricNodeOusBuilder() { onChanged(); return getFabricNodeOusFieldBuilder().getBuilder(); } /** *
       * fabric_node_ous contains the configuration to distinguish clients from peers from orderers
       * based on the OUs.
       * 
* * optional .msp.FabricNodeOUs fabric_node_ous = 11; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUsOrBuilder getFabricNodeOusOrBuilder() { if (fabricNodeOusBuilder_ != null) { return fabricNodeOusBuilder_.getMessageOrBuilder(); } else { return fabricNodeOus_ == null ? org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs.getDefaultInstance() : fabricNodeOus_; } } /** *
       * fabric_node_ous contains the configuration to distinguish clients from peers from orderers
       * based on the OUs.
       * 
* * optional .msp.FabricNodeOUs fabric_node_ous = 11; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs, org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs.Builder, org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUsOrBuilder> getFabricNodeOusFieldBuilder() { if (fabricNodeOusBuilder_ == null) { fabricNodeOusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs, org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs.Builder, org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUsOrBuilder>( getFabricNodeOus(), getParentForChildren(), isClean()); fabricNodeOus_ = null; } return fabricNodeOusBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:msp.FabricMSPConfig) } // @@protoc_insertion_point(class_scope:msp.FabricMSPConfig) private static final org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig(); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FabricMSPConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FabricMSPConfig(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FabricCryptoConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:msp.FabricCryptoConfig) com.google.protobuf.MessageOrBuilder { /** *
     * SignatureHashFamily is a string representing the hash family to be used
     * during sign and verify operations.
     * Allowed values are "SHA2" and "SHA3".
     * 
* * optional string signature_hash_family = 1; */ java.lang.String getSignatureHashFamily(); /** *
     * SignatureHashFamily is a string representing the hash family to be used
     * during sign and verify operations.
     * Allowed values are "SHA2" and "SHA3".
     * 
* * optional string signature_hash_family = 1; */ com.google.protobuf.ByteString getSignatureHashFamilyBytes(); /** *
     * IdentityIdentifierHashFunction is a string representing the hash function
     * to be used during the computation of the identity identifier of an MSP identity.
     * Allowed values are "SHA256", "SHA384" and "SHA3_256", "SHA3_384".
     * 
* * optional string identity_identifier_hash_function = 2; */ java.lang.String getIdentityIdentifierHashFunction(); /** *
     * IdentityIdentifierHashFunction is a string representing the hash function
     * to be used during the computation of the identity identifier of an MSP identity.
     * Allowed values are "SHA256", "SHA384" and "SHA3_256", "SHA3_384".
     * 
* * optional string identity_identifier_hash_function = 2; */ com.google.protobuf.ByteString getIdentityIdentifierHashFunctionBytes(); } /** *
   * FabricCryptoConfig contains configuration parameters
   * for the cryptographic algorithms used by the MSP
   * this configuration refers to
   * 
* * Protobuf type {@code msp.FabricCryptoConfig} */ public static final class FabricCryptoConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:msp.FabricCryptoConfig) FabricCryptoConfigOrBuilder { // Use FabricCryptoConfig.newBuilder() to construct. private FabricCryptoConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FabricCryptoConfig() { signatureHashFamily_ = ""; identityIdentifierHashFunction_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private FabricCryptoConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); signatureHashFamily_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); identityIdentifierHashFunction_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_FabricCryptoConfig_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_FabricCryptoConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig.class, org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig.Builder.class); } public static final int SIGNATURE_HASH_FAMILY_FIELD_NUMBER = 1; private volatile java.lang.Object signatureHashFamily_; /** *
     * SignatureHashFamily is a string representing the hash family to be used
     * during sign and verify operations.
     * Allowed values are "SHA2" and "SHA3".
     * 
* * optional string signature_hash_family = 1; */ public java.lang.String getSignatureHashFamily() { java.lang.Object ref = signatureHashFamily_; 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(); signatureHashFamily_ = s; return s; } } /** *
     * SignatureHashFamily is a string representing the hash family to be used
     * during sign and verify operations.
     * Allowed values are "SHA2" and "SHA3".
     * 
* * optional string signature_hash_family = 1; */ public com.google.protobuf.ByteString getSignatureHashFamilyBytes() { java.lang.Object ref = signatureHashFamily_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); signatureHashFamily_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IDENTITY_IDENTIFIER_HASH_FUNCTION_FIELD_NUMBER = 2; private volatile java.lang.Object identityIdentifierHashFunction_; /** *
     * IdentityIdentifierHashFunction is a string representing the hash function
     * to be used during the computation of the identity identifier of an MSP identity.
     * Allowed values are "SHA256", "SHA384" and "SHA3_256", "SHA3_384".
     * 
* * optional string identity_identifier_hash_function = 2; */ public java.lang.String getIdentityIdentifierHashFunction() { java.lang.Object ref = identityIdentifierHashFunction_; 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(); identityIdentifierHashFunction_ = s; return s; } } /** *
     * IdentityIdentifierHashFunction is a string representing the hash function
     * to be used during the computation of the identity identifier of an MSP identity.
     * Allowed values are "SHA256", "SHA384" and "SHA3_256", "SHA3_384".
     * 
* * optional string identity_identifier_hash_function = 2; */ public com.google.protobuf.ByteString getIdentityIdentifierHashFunctionBytes() { java.lang.Object ref = identityIdentifierHashFunction_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); identityIdentifierHashFunction_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSignatureHashFamilyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, signatureHashFamily_); } if (!getIdentityIdentifierHashFunctionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, identityIdentifierHashFunction_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getSignatureHashFamilyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, signatureHashFamily_); } if (!getIdentityIdentifierHashFunctionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, identityIdentifierHashFunction_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig)) { return super.equals(obj); } org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig other = (org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig) obj; boolean result = true; result = result && getSignatureHashFamily() .equals(other.getSignatureHashFamily()); result = result && getIdentityIdentifierHashFunction() .equals(other.getIdentityIdentifierHashFunction()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + SIGNATURE_HASH_FAMILY_FIELD_NUMBER; hash = (53 * hash) + getSignatureHashFamily().hashCode(); hash = (37 * hash) + IDENTITY_IDENTIFIER_HASH_FUNCTION_FIELD_NUMBER; hash = (53 * hash) + getIdentityIdentifierHashFunction().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig 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.msp.MspConfig.FabricCryptoConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig 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.msp.MspConfig.FabricCryptoConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig 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.msp.MspConfig.FabricCryptoConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * FabricCryptoConfig contains configuration parameters
     * for the cryptographic algorithms used by the MSP
     * this configuration refers to
     * 
* * Protobuf type {@code msp.FabricCryptoConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:msp.FabricCryptoConfig) org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_FabricCryptoConfig_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_FabricCryptoConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig.class, org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig.Builder.class); } // Construct using org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); signatureHashFamily_ = ""; identityIdentifierHashFunction_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_FabricCryptoConfig_descriptor; } public org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig getDefaultInstanceForType() { return org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig.getDefaultInstance(); } public org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig build() { org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig buildPartial() { org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig result = new org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig(this); result.signatureHashFamily_ = signatureHashFamily_; result.identityIdentifierHashFunction_ = identityIdentifierHashFunction_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig) { return mergeFrom((org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig other) { if (other == org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig.getDefaultInstance()) return this; if (!other.getSignatureHashFamily().isEmpty()) { signatureHashFamily_ = other.signatureHashFamily_; onChanged(); } if (!other.getIdentityIdentifierHashFunction().isEmpty()) { identityIdentifierHashFunction_ = other.identityIdentifierHashFunction_; onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object signatureHashFamily_ = ""; /** *
       * SignatureHashFamily is a string representing the hash family to be used
       * during sign and verify operations.
       * Allowed values are "SHA2" and "SHA3".
       * 
* * optional string signature_hash_family = 1; */ public java.lang.String getSignatureHashFamily() { java.lang.Object ref = signatureHashFamily_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); signatureHashFamily_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * SignatureHashFamily is a string representing the hash family to be used
       * during sign and verify operations.
       * Allowed values are "SHA2" and "SHA3".
       * 
* * optional string signature_hash_family = 1; */ public com.google.protobuf.ByteString getSignatureHashFamilyBytes() { java.lang.Object ref = signatureHashFamily_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); signatureHashFamily_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * SignatureHashFamily is a string representing the hash family to be used
       * during sign and verify operations.
       * Allowed values are "SHA2" and "SHA3".
       * 
* * optional string signature_hash_family = 1; */ public Builder setSignatureHashFamily( java.lang.String value) { if (value == null) { throw new NullPointerException(); } signatureHashFamily_ = value; onChanged(); return this; } /** *
       * SignatureHashFamily is a string representing the hash family to be used
       * during sign and verify operations.
       * Allowed values are "SHA2" and "SHA3".
       * 
* * optional string signature_hash_family = 1; */ public Builder clearSignatureHashFamily() { signatureHashFamily_ = getDefaultInstance().getSignatureHashFamily(); onChanged(); return this; } /** *
       * SignatureHashFamily is a string representing the hash family to be used
       * during sign and verify operations.
       * Allowed values are "SHA2" and "SHA3".
       * 
* * optional string signature_hash_family = 1; */ public Builder setSignatureHashFamilyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); signatureHashFamily_ = value; onChanged(); return this; } private java.lang.Object identityIdentifierHashFunction_ = ""; /** *
       * IdentityIdentifierHashFunction is a string representing the hash function
       * to be used during the computation of the identity identifier of an MSP identity.
       * Allowed values are "SHA256", "SHA384" and "SHA3_256", "SHA3_384".
       * 
* * optional string identity_identifier_hash_function = 2; */ public java.lang.String getIdentityIdentifierHashFunction() { java.lang.Object ref = identityIdentifierHashFunction_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identityIdentifierHashFunction_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * IdentityIdentifierHashFunction is a string representing the hash function
       * to be used during the computation of the identity identifier of an MSP identity.
       * Allowed values are "SHA256", "SHA384" and "SHA3_256", "SHA3_384".
       * 
* * optional string identity_identifier_hash_function = 2; */ public com.google.protobuf.ByteString getIdentityIdentifierHashFunctionBytes() { java.lang.Object ref = identityIdentifierHashFunction_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); identityIdentifierHashFunction_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * IdentityIdentifierHashFunction is a string representing the hash function
       * to be used during the computation of the identity identifier of an MSP identity.
       * Allowed values are "SHA256", "SHA384" and "SHA3_256", "SHA3_384".
       * 
* * optional string identity_identifier_hash_function = 2; */ public Builder setIdentityIdentifierHashFunction( java.lang.String value) { if (value == null) { throw new NullPointerException(); } identityIdentifierHashFunction_ = value; onChanged(); return this; } /** *
       * IdentityIdentifierHashFunction is a string representing the hash function
       * to be used during the computation of the identity identifier of an MSP identity.
       * Allowed values are "SHA256", "SHA384" and "SHA3_256", "SHA3_384".
       * 
* * optional string identity_identifier_hash_function = 2; */ public Builder clearIdentityIdentifierHashFunction() { identityIdentifierHashFunction_ = getDefaultInstance().getIdentityIdentifierHashFunction(); onChanged(); return this; } /** *
       * IdentityIdentifierHashFunction is a string representing the hash function
       * to be used during the computation of the identity identifier of an MSP identity.
       * Allowed values are "SHA256", "SHA384" and "SHA3_256", "SHA3_384".
       * 
* * optional string identity_identifier_hash_function = 2; */ public Builder setIdentityIdentifierHashFunctionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); identityIdentifierHashFunction_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:msp.FabricCryptoConfig) } // @@protoc_insertion_point(class_scope:msp.FabricCryptoConfig) private static final org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig(); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FabricCryptoConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FabricCryptoConfig(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.msp.MspConfig.FabricCryptoConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IdemixMSPConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:msp.IdemixMSPConfig) com.google.protobuf.MessageOrBuilder { /** *
     * Name holds the identifier of the MSP
     * 
* * optional string name = 1; */ java.lang.String getName(); /** *
     * Name holds the identifier of the MSP
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** *
     * ipk represents the (serialized) issuer public key
     * 
* * optional bytes ipk = 2; */ com.google.protobuf.ByteString getIpk(); /** *
     * signer may contain crypto material to configure a default signer
     * 
* * optional .msp.IdemixMSPSignerConfig signer = 3; */ boolean hasSigner(); /** *
     * signer may contain crypto material to configure a default signer
     * 
* * optional .msp.IdemixMSPSignerConfig signer = 3; */ org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig getSigner(); /** *
     * signer may contain crypto material to configure a default signer
     * 
* * optional .msp.IdemixMSPSignerConfig signer = 3; */ org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfigOrBuilder getSignerOrBuilder(); /** *
     * revocation_pk is the public key used for revocation of credentials
     * 
* * optional bytes revocation_pk = 4; */ com.google.protobuf.ByteString getRevocationPk(); /** *
     * epoch represents the current epoch (time interval) used for revocation
     * 
* * optional int64 epoch = 5; */ long getEpoch(); } /** *
   * IdemixMSPConfig collects all the configuration information for
   * an Idemix MSP.
   * 
* * Protobuf type {@code msp.IdemixMSPConfig} */ public static final class IdemixMSPConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:msp.IdemixMSPConfig) IdemixMSPConfigOrBuilder { // Use IdemixMSPConfig.newBuilder() to construct. private IdemixMSPConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IdemixMSPConfig() { name_ = ""; ipk_ = com.google.protobuf.ByteString.EMPTY; revocationPk_ = com.google.protobuf.ByteString.EMPTY; epoch_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private IdemixMSPConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { ipk_ = input.readBytes(); break; } case 26: { org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig.Builder subBuilder = null; if (signer_ != null) { subBuilder = signer_.toBuilder(); } signer_ = input.readMessage(org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(signer_); signer_ = subBuilder.buildPartial(); } break; } case 34: { revocationPk_ = input.readBytes(); break; } case 40: { epoch_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_IdemixMSPConfig_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_IdemixMSPConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig.class, org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Name holds the identifier of the MSP
     * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
     * Name holds the identifier of the MSP
     * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IPK_FIELD_NUMBER = 2; private com.google.protobuf.ByteString ipk_; /** *
     * ipk represents the (serialized) issuer public key
     * 
* * optional bytes ipk = 2; */ public com.google.protobuf.ByteString getIpk() { return ipk_; } public static final int SIGNER_FIELD_NUMBER = 3; private org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig signer_; /** *
     * signer may contain crypto material to configure a default signer
     * 
* * optional .msp.IdemixMSPSignerConfig signer = 3; */ public boolean hasSigner() { return signer_ != null; } /** *
     * signer may contain crypto material to configure a default signer
     * 
* * optional .msp.IdemixMSPSignerConfig signer = 3; */ public org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig getSigner() { return signer_ == null ? org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig.getDefaultInstance() : signer_; } /** *
     * signer may contain crypto material to configure a default signer
     * 
* * optional .msp.IdemixMSPSignerConfig signer = 3; */ public org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfigOrBuilder getSignerOrBuilder() { return getSigner(); } public static final int REVOCATION_PK_FIELD_NUMBER = 4; private com.google.protobuf.ByteString revocationPk_; /** *
     * revocation_pk is the public key used for revocation of credentials
     * 
* * optional bytes revocation_pk = 4; */ public com.google.protobuf.ByteString getRevocationPk() { return revocationPk_; } public static final int EPOCH_FIELD_NUMBER = 5; private long epoch_; /** *
     * epoch represents the current epoch (time interval) used for revocation
     * 
* * optional int64 epoch = 5; */ public long getEpoch() { return epoch_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!ipk_.isEmpty()) { output.writeBytes(2, ipk_); } if (signer_ != null) { output.writeMessage(3, getSigner()); } if (!revocationPk_.isEmpty()) { output.writeBytes(4, revocationPk_); } if (epoch_ != 0L) { output.writeInt64(5, epoch_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!ipk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, ipk_); } if (signer_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSigner()); } if (!revocationPk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, revocationPk_); } if (epoch_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, epoch_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig)) { return super.equals(obj); } org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig other = (org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getIpk() .equals(other.getIpk()); result = result && (hasSigner() == other.hasSigner()); if (hasSigner()) { result = result && getSigner() .equals(other.getSigner()); } result = result && getRevocationPk() .equals(other.getRevocationPk()); result = result && (getEpoch() == other.getEpoch()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + IPK_FIELD_NUMBER; hash = (53 * hash) + getIpk().hashCode(); if (hasSigner()) { hash = (37 * hash) + SIGNER_FIELD_NUMBER; hash = (53 * hash) + getSigner().hashCode(); } hash = (37 * hash) + REVOCATION_PK_FIELD_NUMBER; hash = (53 * hash) + getRevocationPk().hashCode(); hash = (37 * hash) + EPOCH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEpoch()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig 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.msp.MspConfig.IdemixMSPConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig 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.msp.MspConfig.IdemixMSPConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig 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.msp.MspConfig.IdemixMSPConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * IdemixMSPConfig collects all the configuration information for
     * an Idemix MSP.
     * 
* * Protobuf type {@code msp.IdemixMSPConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:msp.IdemixMSPConfig) org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_IdemixMSPConfig_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_IdemixMSPConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig.class, org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig.Builder.class); } // Construct using org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; ipk_ = com.google.protobuf.ByteString.EMPTY; if (signerBuilder_ == null) { signer_ = null; } else { signer_ = null; signerBuilder_ = null; } revocationPk_ = com.google.protobuf.ByteString.EMPTY; epoch_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_IdemixMSPConfig_descriptor; } public org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig getDefaultInstanceForType() { return org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig.getDefaultInstance(); } public org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig build() { org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig buildPartial() { org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig result = new org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig(this); result.name_ = name_; result.ipk_ = ipk_; if (signerBuilder_ == null) { result.signer_ = signer_; } else { result.signer_ = signerBuilder_.build(); } result.revocationPk_ = revocationPk_; result.epoch_ = epoch_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig) { return mergeFrom((org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig other) { if (other == org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getIpk() != com.google.protobuf.ByteString.EMPTY) { setIpk(other.getIpk()); } if (other.hasSigner()) { mergeSigner(other.getSigner()); } if (other.getRevocationPk() != com.google.protobuf.ByteString.EMPTY) { setRevocationPk(other.getRevocationPk()); } if (other.getEpoch() != 0L) { setEpoch(other.getEpoch()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** *
       * Name holds the identifier of the MSP
       * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name holds the identifier of the MSP
       * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name holds the identifier of the MSP
       * 
* * optional string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name holds the identifier of the MSP
       * 
* * optional string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name holds the identifier of the MSP
       * 
* * optional string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private com.google.protobuf.ByteString ipk_ = com.google.protobuf.ByteString.EMPTY; /** *
       * ipk represents the (serialized) issuer public key
       * 
* * optional bytes ipk = 2; */ public com.google.protobuf.ByteString getIpk() { return ipk_; } /** *
       * ipk represents the (serialized) issuer public key
       * 
* * optional bytes ipk = 2; */ public Builder setIpk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ipk_ = value; onChanged(); return this; } /** *
       * ipk represents the (serialized) issuer public key
       * 
* * optional bytes ipk = 2; */ public Builder clearIpk() { ipk_ = getDefaultInstance().getIpk(); onChanged(); return this; } private org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig signer_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig, org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig.Builder, org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfigOrBuilder> signerBuilder_; /** *
       * signer may contain crypto material to configure a default signer
       * 
* * optional .msp.IdemixMSPSignerConfig signer = 3; */ public boolean hasSigner() { return signerBuilder_ != null || signer_ != null; } /** *
       * signer may contain crypto material to configure a default signer
       * 
* * optional .msp.IdemixMSPSignerConfig signer = 3; */ public org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig getSigner() { if (signerBuilder_ == null) { return signer_ == null ? org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig.getDefaultInstance() : signer_; } else { return signerBuilder_.getMessage(); } } /** *
       * signer may contain crypto material to configure a default signer
       * 
* * optional .msp.IdemixMSPSignerConfig signer = 3; */ public Builder setSigner(org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig value) { if (signerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } signer_ = value; onChanged(); } else { signerBuilder_.setMessage(value); } return this; } /** *
       * signer may contain crypto material to configure a default signer
       * 
* * optional .msp.IdemixMSPSignerConfig signer = 3; */ public Builder setSigner( org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig.Builder builderForValue) { if (signerBuilder_ == null) { signer_ = builderForValue.build(); onChanged(); } else { signerBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * signer may contain crypto material to configure a default signer
       * 
* * optional .msp.IdemixMSPSignerConfig signer = 3; */ public Builder mergeSigner(org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig value) { if (signerBuilder_ == null) { if (signer_ != null) { signer_ = org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig.newBuilder(signer_).mergeFrom(value).buildPartial(); } else { signer_ = value; } onChanged(); } else { signerBuilder_.mergeFrom(value); } return this; } /** *
       * signer may contain crypto material to configure a default signer
       * 
* * optional .msp.IdemixMSPSignerConfig signer = 3; */ public Builder clearSigner() { if (signerBuilder_ == null) { signer_ = null; onChanged(); } else { signer_ = null; signerBuilder_ = null; } return this; } /** *
       * signer may contain crypto material to configure a default signer
       * 
* * optional .msp.IdemixMSPSignerConfig signer = 3; */ public org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig.Builder getSignerBuilder() { onChanged(); return getSignerFieldBuilder().getBuilder(); } /** *
       * signer may contain crypto material to configure a default signer
       * 
* * optional .msp.IdemixMSPSignerConfig signer = 3; */ public org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfigOrBuilder getSignerOrBuilder() { if (signerBuilder_ != null) { return signerBuilder_.getMessageOrBuilder(); } else { return signer_ == null ? org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig.getDefaultInstance() : signer_; } } /** *
       * signer may contain crypto material to configure a default signer
       * 
* * optional .msp.IdemixMSPSignerConfig signer = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig, org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig.Builder, org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfigOrBuilder> getSignerFieldBuilder() { if (signerBuilder_ == null) { signerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig, org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig.Builder, org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfigOrBuilder>( getSigner(), getParentForChildren(), isClean()); signer_ = null; } return signerBuilder_; } private com.google.protobuf.ByteString revocationPk_ = com.google.protobuf.ByteString.EMPTY; /** *
       * revocation_pk is the public key used for revocation of credentials
       * 
* * optional bytes revocation_pk = 4; */ public com.google.protobuf.ByteString getRevocationPk() { return revocationPk_; } /** *
       * revocation_pk is the public key used for revocation of credentials
       * 
* * optional bytes revocation_pk = 4; */ public Builder setRevocationPk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } revocationPk_ = value; onChanged(); return this; } /** *
       * revocation_pk is the public key used for revocation of credentials
       * 
* * optional bytes revocation_pk = 4; */ public Builder clearRevocationPk() { revocationPk_ = getDefaultInstance().getRevocationPk(); onChanged(); return this; } private long epoch_ ; /** *
       * epoch represents the current epoch (time interval) used for revocation
       * 
* * optional int64 epoch = 5; */ public long getEpoch() { return epoch_; } /** *
       * epoch represents the current epoch (time interval) used for revocation
       * 
* * optional int64 epoch = 5; */ public Builder setEpoch(long value) { epoch_ = value; onChanged(); return this; } /** *
       * epoch represents the current epoch (time interval) used for revocation
       * 
* * optional int64 epoch = 5; */ public Builder clearEpoch() { epoch_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:msp.IdemixMSPConfig) } // @@protoc_insertion_point(class_scope:msp.IdemixMSPConfig) private static final org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig(); } public static org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public IdemixMSPConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IdemixMSPConfig(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IdemixMSPSignerConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:msp.IdemixMSPSignerConfig) com.google.protobuf.MessageOrBuilder { /** *
     * cred represents the serialized idemix credential of the default signer
     * 
* * optional bytes cred = 1; */ com.google.protobuf.ByteString getCred(); /** *
     * sk is the secret key of the default signer, corresponding to credential Cred
     * 
* * optional bytes sk = 2; */ com.google.protobuf.ByteString getSk(); /** *
     * organizational_unit_identifier defines the organizational unit the default signer is in
     * 
* * optional string organizational_unit_identifier = 3; */ java.lang.String getOrganizationalUnitIdentifier(); /** *
     * organizational_unit_identifier defines the organizational unit the default signer is in
     * 
* * optional string organizational_unit_identifier = 3; */ com.google.protobuf.ByteString getOrganizationalUnitIdentifierBytes(); /** *
     * role defines whether the default signer is admin, peer, member or client
     * 
* * optional int32 role = 4; */ int getRole(); /** *
     * enrollment_id contains the enrollment id of this signer
     * 
* * optional string enrollment_id = 5; */ java.lang.String getEnrollmentId(); /** *
     * enrollment_id contains the enrollment id of this signer
     * 
* * optional string enrollment_id = 5; */ com.google.protobuf.ByteString getEnrollmentIdBytes(); /** *
     * credential_revocation_information contains a serialized CredentialRevocationInformation
     * 
* * optional bytes credential_revocation_information = 6; */ com.google.protobuf.ByteString getCredentialRevocationInformation(); } /** *
   * IdemixMSPSIgnerConfig contains the crypto material to set up an idemix signing identity
   * 
* * Protobuf type {@code msp.IdemixMSPSignerConfig} */ public static final class IdemixMSPSignerConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:msp.IdemixMSPSignerConfig) IdemixMSPSignerConfigOrBuilder { // Use IdemixMSPSignerConfig.newBuilder() to construct. private IdemixMSPSignerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IdemixMSPSignerConfig() { cred_ = com.google.protobuf.ByteString.EMPTY; sk_ = com.google.protobuf.ByteString.EMPTY; organizationalUnitIdentifier_ = ""; role_ = 0; enrollmentId_ = ""; credentialRevocationInformation_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private IdemixMSPSignerConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { cred_ = input.readBytes(); break; } case 18: { sk_ = input.readBytes(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); organizationalUnitIdentifier_ = s; break; } case 32: { role_ = input.readInt32(); break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); enrollmentId_ = s; break; } case 50: { credentialRevocationInformation_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_IdemixMSPSignerConfig_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_IdemixMSPSignerConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig.class, org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig.Builder.class); } public static final int CRED_FIELD_NUMBER = 1; private com.google.protobuf.ByteString cred_; /** *
     * cred represents the serialized idemix credential of the default signer
     * 
* * optional bytes cred = 1; */ public com.google.protobuf.ByteString getCred() { return cred_; } public static final int SK_FIELD_NUMBER = 2; private com.google.protobuf.ByteString sk_; /** *
     * sk is the secret key of the default signer, corresponding to credential Cred
     * 
* * optional bytes sk = 2; */ public com.google.protobuf.ByteString getSk() { return sk_; } public static final int ORGANIZATIONAL_UNIT_IDENTIFIER_FIELD_NUMBER = 3; private volatile java.lang.Object organizationalUnitIdentifier_; /** *
     * organizational_unit_identifier defines the organizational unit the default signer is in
     * 
* * optional string organizational_unit_identifier = 3; */ public java.lang.String getOrganizationalUnitIdentifier() { java.lang.Object ref = organizationalUnitIdentifier_; 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(); organizationalUnitIdentifier_ = s; return s; } } /** *
     * organizational_unit_identifier defines the organizational unit the default signer is in
     * 
* * optional string organizational_unit_identifier = 3; */ public com.google.protobuf.ByteString getOrganizationalUnitIdentifierBytes() { java.lang.Object ref = organizationalUnitIdentifier_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); organizationalUnitIdentifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ROLE_FIELD_NUMBER = 4; private int role_; /** *
     * role defines whether the default signer is admin, peer, member or client
     * 
* * optional int32 role = 4; */ public int getRole() { return role_; } public static final int ENROLLMENT_ID_FIELD_NUMBER = 5; private volatile java.lang.Object enrollmentId_; /** *
     * enrollment_id contains the enrollment id of this signer
     * 
* * optional string enrollment_id = 5; */ public java.lang.String getEnrollmentId() { java.lang.Object ref = enrollmentId_; 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(); enrollmentId_ = s; return s; } } /** *
     * enrollment_id contains the enrollment id of this signer
     * 
* * optional string enrollment_id = 5; */ public com.google.protobuf.ByteString getEnrollmentIdBytes() { java.lang.Object ref = enrollmentId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); enrollmentId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREDENTIAL_REVOCATION_INFORMATION_FIELD_NUMBER = 6; private com.google.protobuf.ByteString credentialRevocationInformation_; /** *
     * credential_revocation_information contains a serialized CredentialRevocationInformation
     * 
* * optional bytes credential_revocation_information = 6; */ public com.google.protobuf.ByteString getCredentialRevocationInformation() { return credentialRevocationInformation_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!cred_.isEmpty()) { output.writeBytes(1, cred_); } if (!sk_.isEmpty()) { output.writeBytes(2, sk_); } if (!getOrganizationalUnitIdentifierBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, organizationalUnitIdentifier_); } if (role_ != 0) { output.writeInt32(4, role_); } if (!getEnrollmentIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, enrollmentId_); } if (!credentialRevocationInformation_.isEmpty()) { output.writeBytes(6, credentialRevocationInformation_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!cred_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, cred_); } if (!sk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, sk_); } if (!getOrganizationalUnitIdentifierBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, organizationalUnitIdentifier_); } if (role_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, role_); } if (!getEnrollmentIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, enrollmentId_); } if (!credentialRevocationInformation_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, credentialRevocationInformation_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig)) { return super.equals(obj); } org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig other = (org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig) obj; boolean result = true; result = result && getCred() .equals(other.getCred()); result = result && getSk() .equals(other.getSk()); result = result && getOrganizationalUnitIdentifier() .equals(other.getOrganizationalUnitIdentifier()); result = result && (getRole() == other.getRole()); result = result && getEnrollmentId() .equals(other.getEnrollmentId()); result = result && getCredentialRevocationInformation() .equals(other.getCredentialRevocationInformation()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + CRED_FIELD_NUMBER; hash = (53 * hash) + getCred().hashCode(); hash = (37 * hash) + SK_FIELD_NUMBER; hash = (53 * hash) + getSk().hashCode(); hash = (37 * hash) + ORGANIZATIONAL_UNIT_IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getOrganizationalUnitIdentifier().hashCode(); hash = (37 * hash) + ROLE_FIELD_NUMBER; hash = (53 * hash) + getRole(); hash = (37 * hash) + ENROLLMENT_ID_FIELD_NUMBER; hash = (53 * hash) + getEnrollmentId().hashCode(); hash = (37 * hash) + CREDENTIAL_REVOCATION_INFORMATION_FIELD_NUMBER; hash = (53 * hash) + getCredentialRevocationInformation().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig 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.msp.MspConfig.IdemixMSPSignerConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig 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.msp.MspConfig.IdemixMSPSignerConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig 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.msp.MspConfig.IdemixMSPSignerConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * IdemixMSPSIgnerConfig contains the crypto material to set up an idemix signing identity
     * 
* * Protobuf type {@code msp.IdemixMSPSignerConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:msp.IdemixMSPSignerConfig) org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_IdemixMSPSignerConfig_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_IdemixMSPSignerConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig.class, org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig.Builder.class); } // Construct using org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); cred_ = com.google.protobuf.ByteString.EMPTY; sk_ = com.google.protobuf.ByteString.EMPTY; organizationalUnitIdentifier_ = ""; role_ = 0; enrollmentId_ = ""; credentialRevocationInformation_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_IdemixMSPSignerConfig_descriptor; } public org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig getDefaultInstanceForType() { return org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig.getDefaultInstance(); } public org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig build() { org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig buildPartial() { org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig result = new org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig(this); result.cred_ = cred_; result.sk_ = sk_; result.organizationalUnitIdentifier_ = organizationalUnitIdentifier_; result.role_ = role_; result.enrollmentId_ = enrollmentId_; result.credentialRevocationInformation_ = credentialRevocationInformation_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig) { return mergeFrom((org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig other) { if (other == org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig.getDefaultInstance()) return this; if (other.getCred() != com.google.protobuf.ByteString.EMPTY) { setCred(other.getCred()); } if (other.getSk() != com.google.protobuf.ByteString.EMPTY) { setSk(other.getSk()); } if (!other.getOrganizationalUnitIdentifier().isEmpty()) { organizationalUnitIdentifier_ = other.organizationalUnitIdentifier_; onChanged(); } if (other.getRole() != 0) { setRole(other.getRole()); } if (!other.getEnrollmentId().isEmpty()) { enrollmentId_ = other.enrollmentId_; onChanged(); } if (other.getCredentialRevocationInformation() != com.google.protobuf.ByteString.EMPTY) { setCredentialRevocationInformation(other.getCredentialRevocationInformation()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString cred_ = com.google.protobuf.ByteString.EMPTY; /** *
       * cred represents the serialized idemix credential of the default signer
       * 
* * optional bytes cred = 1; */ public com.google.protobuf.ByteString getCred() { return cred_; } /** *
       * cred represents the serialized idemix credential of the default signer
       * 
* * optional bytes cred = 1; */ public Builder setCred(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } cred_ = value; onChanged(); return this; } /** *
       * cred represents the serialized idemix credential of the default signer
       * 
* * optional bytes cred = 1; */ public Builder clearCred() { cred_ = getDefaultInstance().getCred(); onChanged(); return this; } private com.google.protobuf.ByteString sk_ = com.google.protobuf.ByteString.EMPTY; /** *
       * sk is the secret key of the default signer, corresponding to credential Cred
       * 
* * optional bytes sk = 2; */ public com.google.protobuf.ByteString getSk() { return sk_; } /** *
       * sk is the secret key of the default signer, corresponding to credential Cred
       * 
* * optional bytes sk = 2; */ public Builder setSk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } sk_ = value; onChanged(); return this; } /** *
       * sk is the secret key of the default signer, corresponding to credential Cred
       * 
* * optional bytes sk = 2; */ public Builder clearSk() { sk_ = getDefaultInstance().getSk(); onChanged(); return this; } private java.lang.Object organizationalUnitIdentifier_ = ""; /** *
       * organizational_unit_identifier defines the organizational unit the default signer is in
       * 
* * optional string organizational_unit_identifier = 3; */ public java.lang.String getOrganizationalUnitIdentifier() { java.lang.Object ref = organizationalUnitIdentifier_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organizationalUnitIdentifier_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * organizational_unit_identifier defines the organizational unit the default signer is in
       * 
* * optional string organizational_unit_identifier = 3; */ public com.google.protobuf.ByteString getOrganizationalUnitIdentifierBytes() { java.lang.Object ref = organizationalUnitIdentifier_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); organizationalUnitIdentifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * organizational_unit_identifier defines the organizational unit the default signer is in
       * 
* * optional string organizational_unit_identifier = 3; */ public Builder setOrganizationalUnitIdentifier( java.lang.String value) { if (value == null) { throw new NullPointerException(); } organizationalUnitIdentifier_ = value; onChanged(); return this; } /** *
       * organizational_unit_identifier defines the organizational unit the default signer is in
       * 
* * optional string organizational_unit_identifier = 3; */ public Builder clearOrganizationalUnitIdentifier() { organizationalUnitIdentifier_ = getDefaultInstance().getOrganizationalUnitIdentifier(); onChanged(); return this; } /** *
       * organizational_unit_identifier defines the organizational unit the default signer is in
       * 
* * optional string organizational_unit_identifier = 3; */ public Builder setOrganizationalUnitIdentifierBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); organizationalUnitIdentifier_ = value; onChanged(); return this; } private int role_ ; /** *
       * role defines whether the default signer is admin, peer, member or client
       * 
* * optional int32 role = 4; */ public int getRole() { return role_; } /** *
       * role defines whether the default signer is admin, peer, member or client
       * 
* * optional int32 role = 4; */ public Builder setRole(int value) { role_ = value; onChanged(); return this; } /** *
       * role defines whether the default signer is admin, peer, member or client
       * 
* * optional int32 role = 4; */ public Builder clearRole() { role_ = 0; onChanged(); return this; } private java.lang.Object enrollmentId_ = ""; /** *
       * enrollment_id contains the enrollment id of this signer
       * 
* * optional string enrollment_id = 5; */ public java.lang.String getEnrollmentId() { java.lang.Object ref = enrollmentId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); enrollmentId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * enrollment_id contains the enrollment id of this signer
       * 
* * optional string enrollment_id = 5; */ public com.google.protobuf.ByteString getEnrollmentIdBytes() { java.lang.Object ref = enrollmentId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); enrollmentId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * enrollment_id contains the enrollment id of this signer
       * 
* * optional string enrollment_id = 5; */ public Builder setEnrollmentId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } enrollmentId_ = value; onChanged(); return this; } /** *
       * enrollment_id contains the enrollment id of this signer
       * 
* * optional string enrollment_id = 5; */ public Builder clearEnrollmentId() { enrollmentId_ = getDefaultInstance().getEnrollmentId(); onChanged(); return this; } /** *
       * enrollment_id contains the enrollment id of this signer
       * 
* * optional string enrollment_id = 5; */ public Builder setEnrollmentIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); enrollmentId_ = value; onChanged(); return this; } private com.google.protobuf.ByteString credentialRevocationInformation_ = com.google.protobuf.ByteString.EMPTY; /** *
       * credential_revocation_information contains a serialized CredentialRevocationInformation
       * 
* * optional bytes credential_revocation_information = 6; */ public com.google.protobuf.ByteString getCredentialRevocationInformation() { return credentialRevocationInformation_; } /** *
       * credential_revocation_information contains a serialized CredentialRevocationInformation
       * 
* * optional bytes credential_revocation_information = 6; */ public Builder setCredentialRevocationInformation(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } credentialRevocationInformation_ = value; onChanged(); return this; } /** *
       * credential_revocation_information contains a serialized CredentialRevocationInformation
       * 
* * optional bytes credential_revocation_information = 6; */ public Builder clearCredentialRevocationInformation() { credentialRevocationInformation_ = getDefaultInstance().getCredentialRevocationInformation(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:msp.IdemixMSPSignerConfig) } // @@protoc_insertion_point(class_scope:msp.IdemixMSPSignerConfig) private static final org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig(); } public static org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public IdemixMSPSignerConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IdemixMSPSignerConfig(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SigningIdentityInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:msp.SigningIdentityInfo) com.google.protobuf.MessageOrBuilder { /** *
     * PublicSigner carries the public information of the signing
     * identity. For an X.509 provider this would be represented by
     * an X.509 certificate
     * 
* * optional bytes public_signer = 1; */ com.google.protobuf.ByteString getPublicSigner(); /** *
     * PrivateSigner denotes a reference to the private key of the
     * peer's signing identity
     * 
* * optional .msp.KeyInfo private_signer = 2; */ boolean hasPrivateSigner(); /** *
     * PrivateSigner denotes a reference to the private key of the
     * peer's signing identity
     * 
* * optional .msp.KeyInfo private_signer = 2; */ org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo getPrivateSigner(); /** *
     * PrivateSigner denotes a reference to the private key of the
     * peer's signing identity
     * 
* * optional .msp.KeyInfo private_signer = 2; */ org.hyperledger.fabric.protos.msp.MspConfig.KeyInfoOrBuilder getPrivateSignerOrBuilder(); } /** *
   * SigningIdentityInfo represents the configuration information
   * related to the signing identity the peer is to use for generating
   * endorsements
   * 
* * Protobuf type {@code msp.SigningIdentityInfo} */ public static final class SigningIdentityInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:msp.SigningIdentityInfo) SigningIdentityInfoOrBuilder { // Use SigningIdentityInfo.newBuilder() to construct. private SigningIdentityInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SigningIdentityInfo() { publicSigner_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SigningIdentityInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { publicSigner_ = input.readBytes(); break; } case 18: { org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo.Builder subBuilder = null; if (privateSigner_ != null) { subBuilder = privateSigner_.toBuilder(); } privateSigner_ = input.readMessage(org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(privateSigner_); privateSigner_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_SigningIdentityInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_SigningIdentityInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo.class, org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo.Builder.class); } public static final int PUBLIC_SIGNER_FIELD_NUMBER = 1; private com.google.protobuf.ByteString publicSigner_; /** *
     * PublicSigner carries the public information of the signing
     * identity. For an X.509 provider this would be represented by
     * an X.509 certificate
     * 
* * optional bytes public_signer = 1; */ public com.google.protobuf.ByteString getPublicSigner() { return publicSigner_; } public static final int PRIVATE_SIGNER_FIELD_NUMBER = 2; private org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo privateSigner_; /** *
     * PrivateSigner denotes a reference to the private key of the
     * peer's signing identity
     * 
* * optional .msp.KeyInfo private_signer = 2; */ public boolean hasPrivateSigner() { return privateSigner_ != null; } /** *
     * PrivateSigner denotes a reference to the private key of the
     * peer's signing identity
     * 
* * optional .msp.KeyInfo private_signer = 2; */ public org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo getPrivateSigner() { return privateSigner_ == null ? org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo.getDefaultInstance() : privateSigner_; } /** *
     * PrivateSigner denotes a reference to the private key of the
     * peer's signing identity
     * 
* * optional .msp.KeyInfo private_signer = 2; */ public org.hyperledger.fabric.protos.msp.MspConfig.KeyInfoOrBuilder getPrivateSignerOrBuilder() { return getPrivateSigner(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!publicSigner_.isEmpty()) { output.writeBytes(1, publicSigner_); } if (privateSigner_ != null) { output.writeMessage(2, getPrivateSigner()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!publicSigner_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, publicSigner_); } if (privateSigner_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPrivateSigner()); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo)) { return super.equals(obj); } org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo other = (org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo) obj; boolean result = true; result = result && getPublicSigner() .equals(other.getPublicSigner()); result = result && (hasPrivateSigner() == other.hasPrivateSigner()); if (hasPrivateSigner()) { result = result && getPrivateSigner() .equals(other.getPrivateSigner()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + PUBLIC_SIGNER_FIELD_NUMBER; hash = (53 * hash) + getPublicSigner().hashCode(); if (hasPrivateSigner()) { hash = (37 * hash) + PRIVATE_SIGNER_FIELD_NUMBER; hash = (53 * hash) + getPrivateSigner().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo 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.msp.MspConfig.SigningIdentityInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo 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.msp.MspConfig.SigningIdentityInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo 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.msp.MspConfig.SigningIdentityInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * SigningIdentityInfo represents the configuration information
     * related to the signing identity the peer is to use for generating
     * endorsements
     * 
* * Protobuf type {@code msp.SigningIdentityInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:msp.SigningIdentityInfo) org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_SigningIdentityInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_SigningIdentityInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo.class, org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo.Builder.class); } // Construct using org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); publicSigner_ = com.google.protobuf.ByteString.EMPTY; if (privateSignerBuilder_ == null) { privateSigner_ = null; } else { privateSigner_ = null; privateSignerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_SigningIdentityInfo_descriptor; } public org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo getDefaultInstanceForType() { return org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo.getDefaultInstance(); } public org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo build() { org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo buildPartial() { org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo result = new org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo(this); result.publicSigner_ = publicSigner_; if (privateSignerBuilder_ == null) { result.privateSigner_ = privateSigner_; } else { result.privateSigner_ = privateSignerBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo) { return mergeFrom((org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo other) { if (other == org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo.getDefaultInstance()) return this; if (other.getPublicSigner() != com.google.protobuf.ByteString.EMPTY) { setPublicSigner(other.getPublicSigner()); } if (other.hasPrivateSigner()) { mergePrivateSigner(other.getPrivateSigner()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString publicSigner_ = com.google.protobuf.ByteString.EMPTY; /** *
       * PublicSigner carries the public information of the signing
       * identity. For an X.509 provider this would be represented by
       * an X.509 certificate
       * 
* * optional bytes public_signer = 1; */ public com.google.protobuf.ByteString getPublicSigner() { return publicSigner_; } /** *
       * PublicSigner carries the public information of the signing
       * identity. For an X.509 provider this would be represented by
       * an X.509 certificate
       * 
* * optional bytes public_signer = 1; */ public Builder setPublicSigner(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } publicSigner_ = value; onChanged(); return this; } /** *
       * PublicSigner carries the public information of the signing
       * identity. For an X.509 provider this would be represented by
       * an X.509 certificate
       * 
* * optional bytes public_signer = 1; */ public Builder clearPublicSigner() { publicSigner_ = getDefaultInstance().getPublicSigner(); onChanged(); return this; } private org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo privateSigner_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo, org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo.Builder, org.hyperledger.fabric.protos.msp.MspConfig.KeyInfoOrBuilder> privateSignerBuilder_; /** *
       * PrivateSigner denotes a reference to the private key of the
       * peer's signing identity
       * 
* * optional .msp.KeyInfo private_signer = 2; */ public boolean hasPrivateSigner() { return privateSignerBuilder_ != null || privateSigner_ != null; } /** *
       * PrivateSigner denotes a reference to the private key of the
       * peer's signing identity
       * 
* * optional .msp.KeyInfo private_signer = 2; */ public org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo getPrivateSigner() { if (privateSignerBuilder_ == null) { return privateSigner_ == null ? org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo.getDefaultInstance() : privateSigner_; } else { return privateSignerBuilder_.getMessage(); } } /** *
       * PrivateSigner denotes a reference to the private key of the
       * peer's signing identity
       * 
* * optional .msp.KeyInfo private_signer = 2; */ public Builder setPrivateSigner(org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo value) { if (privateSignerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } privateSigner_ = value; onChanged(); } else { privateSignerBuilder_.setMessage(value); } return this; } /** *
       * PrivateSigner denotes a reference to the private key of the
       * peer's signing identity
       * 
* * optional .msp.KeyInfo private_signer = 2; */ public Builder setPrivateSigner( org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo.Builder builderForValue) { if (privateSignerBuilder_ == null) { privateSigner_ = builderForValue.build(); onChanged(); } else { privateSignerBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * PrivateSigner denotes a reference to the private key of the
       * peer's signing identity
       * 
* * optional .msp.KeyInfo private_signer = 2; */ public Builder mergePrivateSigner(org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo value) { if (privateSignerBuilder_ == null) { if (privateSigner_ != null) { privateSigner_ = org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo.newBuilder(privateSigner_).mergeFrom(value).buildPartial(); } else { privateSigner_ = value; } onChanged(); } else { privateSignerBuilder_.mergeFrom(value); } return this; } /** *
       * PrivateSigner denotes a reference to the private key of the
       * peer's signing identity
       * 
* * optional .msp.KeyInfo private_signer = 2; */ public Builder clearPrivateSigner() { if (privateSignerBuilder_ == null) { privateSigner_ = null; onChanged(); } else { privateSigner_ = null; privateSignerBuilder_ = null; } return this; } /** *
       * PrivateSigner denotes a reference to the private key of the
       * peer's signing identity
       * 
* * optional .msp.KeyInfo private_signer = 2; */ public org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo.Builder getPrivateSignerBuilder() { onChanged(); return getPrivateSignerFieldBuilder().getBuilder(); } /** *
       * PrivateSigner denotes a reference to the private key of the
       * peer's signing identity
       * 
* * optional .msp.KeyInfo private_signer = 2; */ public org.hyperledger.fabric.protos.msp.MspConfig.KeyInfoOrBuilder getPrivateSignerOrBuilder() { if (privateSignerBuilder_ != null) { return privateSignerBuilder_.getMessageOrBuilder(); } else { return privateSigner_ == null ? org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo.getDefaultInstance() : privateSigner_; } } /** *
       * PrivateSigner denotes a reference to the private key of the
       * peer's signing identity
       * 
* * optional .msp.KeyInfo private_signer = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo, org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo.Builder, org.hyperledger.fabric.protos.msp.MspConfig.KeyInfoOrBuilder> getPrivateSignerFieldBuilder() { if (privateSignerBuilder_ == null) { privateSignerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo, org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo.Builder, org.hyperledger.fabric.protos.msp.MspConfig.KeyInfoOrBuilder>( getPrivateSigner(), getParentForChildren(), isClean()); privateSigner_ = null; } return privateSignerBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:msp.SigningIdentityInfo) } // @@protoc_insertion_point(class_scope:msp.SigningIdentityInfo) private static final org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo(); } public static org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SigningIdentityInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SigningIdentityInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.msp.MspConfig.SigningIdentityInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface KeyInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:msp.KeyInfo) com.google.protobuf.MessageOrBuilder { /** *
     * Identifier of the key inside the default keystore; this for
     * the case of Software BCCSP as well as the HSM BCCSP would be
     * the SKI of the key
     * 
* * optional string key_identifier = 1; */ java.lang.String getKeyIdentifier(); /** *
     * Identifier of the key inside the default keystore; this for
     * the case of Software BCCSP as well as the HSM BCCSP would be
     * the SKI of the key
     * 
* * optional string key_identifier = 1; */ com.google.protobuf.ByteString getKeyIdentifierBytes(); /** *
     * KeyMaterial (optional) for the key to be imported; this is
     * properly encoded key bytes, prefixed by the type of the key
     * 
* * optional bytes key_material = 2; */ com.google.protobuf.ByteString getKeyMaterial(); } /** *
   * KeyInfo represents a (secret) key that is either already stored
   * in the bccsp/keystore or key material to be imported to the
   * bccsp key-store. In later versions it may contain also a
   * keystore identifier
   * 
* * Protobuf type {@code msp.KeyInfo} */ public static final class KeyInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:msp.KeyInfo) KeyInfoOrBuilder { // Use KeyInfo.newBuilder() to construct. private KeyInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private KeyInfo() { keyIdentifier_ = ""; keyMaterial_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private KeyInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); keyIdentifier_ = s; break; } case 18: { keyMaterial_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_KeyInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_KeyInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo.class, org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo.Builder.class); } public static final int KEY_IDENTIFIER_FIELD_NUMBER = 1; private volatile java.lang.Object keyIdentifier_; /** *
     * Identifier of the key inside the default keystore; this for
     * the case of Software BCCSP as well as the HSM BCCSP would be
     * the SKI of the key
     * 
* * optional string key_identifier = 1; */ public java.lang.String getKeyIdentifier() { java.lang.Object ref = keyIdentifier_; 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(); keyIdentifier_ = s; return s; } } /** *
     * Identifier of the key inside the default keystore; this for
     * the case of Software BCCSP as well as the HSM BCCSP would be
     * the SKI of the key
     * 
* * optional string key_identifier = 1; */ public com.google.protobuf.ByteString getKeyIdentifierBytes() { java.lang.Object ref = keyIdentifier_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); keyIdentifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KEY_MATERIAL_FIELD_NUMBER = 2; private com.google.protobuf.ByteString keyMaterial_; /** *
     * KeyMaterial (optional) for the key to be imported; this is
     * properly encoded key bytes, prefixed by the type of the key
     * 
* * optional bytes key_material = 2; */ public com.google.protobuf.ByteString getKeyMaterial() { return keyMaterial_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getKeyIdentifierBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyIdentifier_); } if (!keyMaterial_.isEmpty()) { output.writeBytes(2, keyMaterial_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getKeyIdentifierBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyIdentifier_); } if (!keyMaterial_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, keyMaterial_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo)) { return super.equals(obj); } org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo other = (org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo) obj; boolean result = true; result = result && getKeyIdentifier() .equals(other.getKeyIdentifier()); result = result && getKeyMaterial() .equals(other.getKeyMaterial()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + KEY_IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getKeyIdentifier().hashCode(); hash = (37 * hash) + KEY_MATERIAL_FIELD_NUMBER; hash = (53 * hash) + getKeyMaterial().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo 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.msp.MspConfig.KeyInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo 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.msp.MspConfig.KeyInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo 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.msp.MspConfig.KeyInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * KeyInfo represents a (secret) key that is either already stored
     * in the bccsp/keystore or key material to be imported to the
     * bccsp key-store. In later versions it may contain also a
     * keystore identifier
     * 
* * Protobuf type {@code msp.KeyInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:msp.KeyInfo) org.hyperledger.fabric.protos.msp.MspConfig.KeyInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_KeyInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_KeyInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo.class, org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo.Builder.class); } // Construct using org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); keyIdentifier_ = ""; keyMaterial_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_KeyInfo_descriptor; } public org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo getDefaultInstanceForType() { return org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo.getDefaultInstance(); } public org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo build() { org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo buildPartial() { org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo result = new org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo(this); result.keyIdentifier_ = keyIdentifier_; result.keyMaterial_ = keyMaterial_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo) { return mergeFrom((org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo other) { if (other == org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo.getDefaultInstance()) return this; if (!other.getKeyIdentifier().isEmpty()) { keyIdentifier_ = other.keyIdentifier_; onChanged(); } if (other.getKeyMaterial() != com.google.protobuf.ByteString.EMPTY) { setKeyMaterial(other.getKeyMaterial()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object keyIdentifier_ = ""; /** *
       * Identifier of the key inside the default keystore; this for
       * the case of Software BCCSP as well as the HSM BCCSP would be
       * the SKI of the key
       * 
* * optional string key_identifier = 1; */ public java.lang.String getKeyIdentifier() { java.lang.Object ref = keyIdentifier_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyIdentifier_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Identifier of the key inside the default keystore; this for
       * the case of Software BCCSP as well as the HSM BCCSP would be
       * the SKI of the key
       * 
* * optional string key_identifier = 1; */ public com.google.protobuf.ByteString getKeyIdentifierBytes() { java.lang.Object ref = keyIdentifier_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); keyIdentifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Identifier of the key inside the default keystore; this for
       * the case of Software BCCSP as well as the HSM BCCSP would be
       * the SKI of the key
       * 
* * optional string key_identifier = 1; */ public Builder setKeyIdentifier( java.lang.String value) { if (value == null) { throw new NullPointerException(); } keyIdentifier_ = value; onChanged(); return this; } /** *
       * Identifier of the key inside the default keystore; this for
       * the case of Software BCCSP as well as the HSM BCCSP would be
       * the SKI of the key
       * 
* * optional string key_identifier = 1; */ public Builder clearKeyIdentifier() { keyIdentifier_ = getDefaultInstance().getKeyIdentifier(); onChanged(); return this; } /** *
       * Identifier of the key inside the default keystore; this for
       * the case of Software BCCSP as well as the HSM BCCSP would be
       * the SKI of the key
       * 
* * optional string key_identifier = 1; */ public Builder setKeyIdentifierBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); keyIdentifier_ = value; onChanged(); return this; } private com.google.protobuf.ByteString keyMaterial_ = com.google.protobuf.ByteString.EMPTY; /** *
       * KeyMaterial (optional) for the key to be imported; this is
       * properly encoded key bytes, prefixed by the type of the key
       * 
* * optional bytes key_material = 2; */ public com.google.protobuf.ByteString getKeyMaterial() { return keyMaterial_; } /** *
       * KeyMaterial (optional) for the key to be imported; this is
       * properly encoded key bytes, prefixed by the type of the key
       * 
* * optional bytes key_material = 2; */ public Builder setKeyMaterial(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } keyMaterial_ = value; onChanged(); return this; } /** *
       * KeyMaterial (optional) for the key to be imported; this is
       * properly encoded key bytes, prefixed by the type of the key
       * 
* * optional bytes key_material = 2; */ public Builder clearKeyMaterial() { keyMaterial_ = getDefaultInstance().getKeyMaterial(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:msp.KeyInfo) } // @@protoc_insertion_point(class_scope:msp.KeyInfo) private static final org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo(); } public static org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public KeyInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new KeyInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.msp.MspConfig.KeyInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FabricOUIdentifierOrBuilder extends // @@protoc_insertion_point(interface_extends:msp.FabricOUIdentifier) com.google.protobuf.MessageOrBuilder { /** *
     * Certificate represents the second certificate in a certification chain.
     * (Notice that the first certificate in a certification chain is supposed
     * to be the certificate of an identity).
     * It must correspond to the certificate of root or intermediate CA
     * recognized by the MSP this message belongs to.
     * Starting from this certificate, a certification chain is computed
     * and bound to the OrganizationUnitIdentifier specified
     * 
* * optional bytes certificate = 1; */ com.google.protobuf.ByteString getCertificate(); /** *
     * OrganizationUnitIdentifier defines the organizational unit under the
     * MSP identified with MSPIdentifier
     * 
* * optional string organizational_unit_identifier = 2; */ java.lang.String getOrganizationalUnitIdentifier(); /** *
     * OrganizationUnitIdentifier defines the organizational unit under the
     * MSP identified with MSPIdentifier
     * 
* * optional string organizational_unit_identifier = 2; */ com.google.protobuf.ByteString getOrganizationalUnitIdentifierBytes(); } /** *
   * FabricOUIdentifier represents an organizational unit and
   * its related chain of trust identifier.
   * 
* * Protobuf type {@code msp.FabricOUIdentifier} */ public static final class FabricOUIdentifier extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:msp.FabricOUIdentifier) FabricOUIdentifierOrBuilder { // Use FabricOUIdentifier.newBuilder() to construct. private FabricOUIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FabricOUIdentifier() { certificate_ = com.google.protobuf.ByteString.EMPTY; organizationalUnitIdentifier_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private FabricOUIdentifier( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { certificate_ = input.readBytes(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); organizationalUnitIdentifier_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_FabricOUIdentifier_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_FabricOUIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.class, org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.Builder.class); } public static final int CERTIFICATE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString certificate_; /** *
     * Certificate represents the second certificate in a certification chain.
     * (Notice that the first certificate in a certification chain is supposed
     * to be the certificate of an identity).
     * It must correspond to the certificate of root or intermediate CA
     * recognized by the MSP this message belongs to.
     * Starting from this certificate, a certification chain is computed
     * and bound to the OrganizationUnitIdentifier specified
     * 
* * optional bytes certificate = 1; */ public com.google.protobuf.ByteString getCertificate() { return certificate_; } public static final int ORGANIZATIONAL_UNIT_IDENTIFIER_FIELD_NUMBER = 2; private volatile java.lang.Object organizationalUnitIdentifier_; /** *
     * OrganizationUnitIdentifier defines the organizational unit under the
     * MSP identified with MSPIdentifier
     * 
* * optional string organizational_unit_identifier = 2; */ public java.lang.String getOrganizationalUnitIdentifier() { java.lang.Object ref = organizationalUnitIdentifier_; 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(); organizationalUnitIdentifier_ = s; return s; } } /** *
     * OrganizationUnitIdentifier defines the organizational unit under the
     * MSP identified with MSPIdentifier
     * 
* * optional string organizational_unit_identifier = 2; */ public com.google.protobuf.ByteString getOrganizationalUnitIdentifierBytes() { java.lang.Object ref = organizationalUnitIdentifier_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); organizationalUnitIdentifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!certificate_.isEmpty()) { output.writeBytes(1, certificate_); } if (!getOrganizationalUnitIdentifierBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, organizationalUnitIdentifier_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!certificate_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, certificate_); } if (!getOrganizationalUnitIdentifierBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, organizationalUnitIdentifier_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier)) { return super.equals(obj); } org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier other = (org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier) obj; boolean result = true; result = result && getCertificate() .equals(other.getCertificate()); result = result && getOrganizationalUnitIdentifier() .equals(other.getOrganizationalUnitIdentifier()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + CERTIFICATE_FIELD_NUMBER; hash = (53 * hash) + getCertificate().hashCode(); hash = (37 * hash) + ORGANIZATIONAL_UNIT_IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getOrganizationalUnitIdentifier().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier 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.msp.MspConfig.FabricOUIdentifier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier 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.msp.MspConfig.FabricOUIdentifier parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier 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.msp.MspConfig.FabricOUIdentifier parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * FabricOUIdentifier represents an organizational unit and
     * its related chain of trust identifier.
     * 
* * Protobuf type {@code msp.FabricOUIdentifier} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:msp.FabricOUIdentifier) org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifierOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_FabricOUIdentifier_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_FabricOUIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.class, org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.Builder.class); } // Construct using org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); certificate_ = com.google.protobuf.ByteString.EMPTY; organizationalUnitIdentifier_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_FabricOUIdentifier_descriptor; } public org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier getDefaultInstanceForType() { return org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.getDefaultInstance(); } public org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier build() { org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier buildPartial() { org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier result = new org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier(this); result.certificate_ = certificate_; result.organizationalUnitIdentifier_ = organizationalUnitIdentifier_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier) { return mergeFrom((org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier other) { if (other == org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.getDefaultInstance()) return this; if (other.getCertificate() != com.google.protobuf.ByteString.EMPTY) { setCertificate(other.getCertificate()); } if (!other.getOrganizationalUnitIdentifier().isEmpty()) { organizationalUnitIdentifier_ = other.organizationalUnitIdentifier_; onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString certificate_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Certificate represents the second certificate in a certification chain.
       * (Notice that the first certificate in a certification chain is supposed
       * to be the certificate of an identity).
       * It must correspond to the certificate of root or intermediate CA
       * recognized by the MSP this message belongs to.
       * Starting from this certificate, a certification chain is computed
       * and bound to the OrganizationUnitIdentifier specified
       * 
* * optional bytes certificate = 1; */ public com.google.protobuf.ByteString getCertificate() { return certificate_; } /** *
       * Certificate represents the second certificate in a certification chain.
       * (Notice that the first certificate in a certification chain is supposed
       * to be the certificate of an identity).
       * It must correspond to the certificate of root or intermediate CA
       * recognized by the MSP this message belongs to.
       * Starting from this certificate, a certification chain is computed
       * and bound to the OrganizationUnitIdentifier specified
       * 
* * optional bytes certificate = 1; */ public Builder setCertificate(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } certificate_ = value; onChanged(); return this; } /** *
       * Certificate represents the second certificate in a certification chain.
       * (Notice that the first certificate in a certification chain is supposed
       * to be the certificate of an identity).
       * It must correspond to the certificate of root or intermediate CA
       * recognized by the MSP this message belongs to.
       * Starting from this certificate, a certification chain is computed
       * and bound to the OrganizationUnitIdentifier specified
       * 
* * optional bytes certificate = 1; */ public Builder clearCertificate() { certificate_ = getDefaultInstance().getCertificate(); onChanged(); return this; } private java.lang.Object organizationalUnitIdentifier_ = ""; /** *
       * OrganizationUnitIdentifier defines the organizational unit under the
       * MSP identified with MSPIdentifier
       * 
* * optional string organizational_unit_identifier = 2; */ public java.lang.String getOrganizationalUnitIdentifier() { java.lang.Object ref = organizationalUnitIdentifier_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organizationalUnitIdentifier_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * OrganizationUnitIdentifier defines the organizational unit under the
       * MSP identified with MSPIdentifier
       * 
* * optional string organizational_unit_identifier = 2; */ public com.google.protobuf.ByteString getOrganizationalUnitIdentifierBytes() { java.lang.Object ref = organizationalUnitIdentifier_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); organizationalUnitIdentifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * OrganizationUnitIdentifier defines the organizational unit under the
       * MSP identified with MSPIdentifier
       * 
* * optional string organizational_unit_identifier = 2; */ public Builder setOrganizationalUnitIdentifier( java.lang.String value) { if (value == null) { throw new NullPointerException(); } organizationalUnitIdentifier_ = value; onChanged(); return this; } /** *
       * OrganizationUnitIdentifier defines the organizational unit under the
       * MSP identified with MSPIdentifier
       * 
* * optional string organizational_unit_identifier = 2; */ public Builder clearOrganizationalUnitIdentifier() { organizationalUnitIdentifier_ = getDefaultInstance().getOrganizationalUnitIdentifier(); onChanged(); return this; } /** *
       * OrganizationUnitIdentifier defines the organizational unit under the
       * MSP identified with MSPIdentifier
       * 
* * optional string organizational_unit_identifier = 2; */ public Builder setOrganizationalUnitIdentifierBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); organizationalUnitIdentifier_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:msp.FabricOUIdentifier) } // @@protoc_insertion_point(class_scope:msp.FabricOUIdentifier) private static final org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier(); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FabricOUIdentifier parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FabricOUIdentifier(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FabricNodeOUsOrBuilder extends // @@protoc_insertion_point(interface_extends:msp.FabricNodeOUs) com.google.protobuf.MessageOrBuilder { /** *
     * If true then an msp identity that does not contain any of the specified OU will be considered invalid.
     * 
* * optional bool enable = 1; */ boolean getEnable(); /** *
     * OU Identifier of the clients
     * 
* * optional .msp.FabricOUIdentifier client_ou_identifier = 2; */ boolean hasClientOuIdentifier(); /** *
     * OU Identifier of the clients
     * 
* * optional .msp.FabricOUIdentifier client_ou_identifier = 2; */ org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier getClientOuIdentifier(); /** *
     * OU Identifier of the clients
     * 
* * optional .msp.FabricOUIdentifier client_ou_identifier = 2; */ org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifierOrBuilder getClientOuIdentifierOrBuilder(); /** *
     * OU Identifier of the peers
     * 
* * optional .msp.FabricOUIdentifier peer_ou_identifier = 3; */ boolean hasPeerOuIdentifier(); /** *
     * OU Identifier of the peers
     * 
* * optional .msp.FabricOUIdentifier peer_ou_identifier = 3; */ org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier getPeerOuIdentifier(); /** *
     * OU Identifier of the peers
     * 
* * optional .msp.FabricOUIdentifier peer_ou_identifier = 3; */ org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifierOrBuilder getPeerOuIdentifierOrBuilder(); } /** *
   * FabricNodeOUs contains configuration to tell apart clients from peers from orderers
   * based on OUs. If NodeOUs recognition is enabled then an msp identity
   * that does not contain any of the specified OU will be considered invalid.
   * 
* * Protobuf type {@code msp.FabricNodeOUs} */ public static final class FabricNodeOUs extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:msp.FabricNodeOUs) FabricNodeOUsOrBuilder { // Use FabricNodeOUs.newBuilder() to construct. private FabricNodeOUs(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FabricNodeOUs() { enable_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private FabricNodeOUs( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { enable_ = input.readBool(); break; } case 18: { org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.Builder subBuilder = null; if (clientOuIdentifier_ != null) { subBuilder = clientOuIdentifier_.toBuilder(); } clientOuIdentifier_ = input.readMessage(org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(clientOuIdentifier_); clientOuIdentifier_ = subBuilder.buildPartial(); } break; } case 26: { org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.Builder subBuilder = null; if (peerOuIdentifier_ != null) { subBuilder = peerOuIdentifier_.toBuilder(); } peerOuIdentifier_ = input.readMessage(org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(peerOuIdentifier_); peerOuIdentifier_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_FabricNodeOUs_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_FabricNodeOUs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs.class, org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs.Builder.class); } public static final int ENABLE_FIELD_NUMBER = 1; private boolean enable_; /** *
     * If true then an msp identity that does not contain any of the specified OU will be considered invalid.
     * 
* * optional bool enable = 1; */ public boolean getEnable() { return enable_; } public static final int CLIENT_OU_IDENTIFIER_FIELD_NUMBER = 2; private org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier clientOuIdentifier_; /** *
     * OU Identifier of the clients
     * 
* * optional .msp.FabricOUIdentifier client_ou_identifier = 2; */ public boolean hasClientOuIdentifier() { return clientOuIdentifier_ != null; } /** *
     * OU Identifier of the clients
     * 
* * optional .msp.FabricOUIdentifier client_ou_identifier = 2; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier getClientOuIdentifier() { return clientOuIdentifier_ == null ? org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.getDefaultInstance() : clientOuIdentifier_; } /** *
     * OU Identifier of the clients
     * 
* * optional .msp.FabricOUIdentifier client_ou_identifier = 2; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifierOrBuilder getClientOuIdentifierOrBuilder() { return getClientOuIdentifier(); } public static final int PEER_OU_IDENTIFIER_FIELD_NUMBER = 3; private org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier peerOuIdentifier_; /** *
     * OU Identifier of the peers
     * 
* * optional .msp.FabricOUIdentifier peer_ou_identifier = 3; */ public boolean hasPeerOuIdentifier() { return peerOuIdentifier_ != null; } /** *
     * OU Identifier of the peers
     * 
* * optional .msp.FabricOUIdentifier peer_ou_identifier = 3; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier getPeerOuIdentifier() { return peerOuIdentifier_ == null ? org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.getDefaultInstance() : peerOuIdentifier_; } /** *
     * OU Identifier of the peers
     * 
* * optional .msp.FabricOUIdentifier peer_ou_identifier = 3; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifierOrBuilder getPeerOuIdentifierOrBuilder() { return getPeerOuIdentifier(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (enable_ != false) { output.writeBool(1, enable_); } if (clientOuIdentifier_ != null) { output.writeMessage(2, getClientOuIdentifier()); } if (peerOuIdentifier_ != null) { output.writeMessage(3, getPeerOuIdentifier()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (enable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, enable_); } if (clientOuIdentifier_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getClientOuIdentifier()); } if (peerOuIdentifier_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPeerOuIdentifier()); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs)) { return super.equals(obj); } org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs other = (org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs) obj; boolean result = true; result = result && (getEnable() == other.getEnable()); result = result && (hasClientOuIdentifier() == other.hasClientOuIdentifier()); if (hasClientOuIdentifier()) { result = result && getClientOuIdentifier() .equals(other.getClientOuIdentifier()); } result = result && (hasPeerOuIdentifier() == other.hasPeerOuIdentifier()); if (hasPeerOuIdentifier()) { result = result && getPeerOuIdentifier() .equals(other.getPeerOuIdentifier()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + ENABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnable()); if (hasClientOuIdentifier()) { hash = (37 * hash) + CLIENT_OU_IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getClientOuIdentifier().hashCode(); } if (hasPeerOuIdentifier()) { hash = (37 * hash) + PEER_OU_IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getPeerOuIdentifier().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs 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.msp.MspConfig.FabricNodeOUs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs 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.msp.MspConfig.FabricNodeOUs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs 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.msp.MspConfig.FabricNodeOUs parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * FabricNodeOUs contains configuration to tell apart clients from peers from orderers
     * based on OUs. If NodeOUs recognition is enabled then an msp identity
     * that does not contain any of the specified OU will be considered invalid.
     * 
* * Protobuf type {@code msp.FabricNodeOUs} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:msp.FabricNodeOUs) org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_FabricNodeOUs_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_FabricNodeOUs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs.class, org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs.Builder.class); } // Construct using org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); enable_ = false; if (clientOuIdentifierBuilder_ == null) { clientOuIdentifier_ = null; } else { clientOuIdentifier_ = null; clientOuIdentifierBuilder_ = null; } if (peerOuIdentifierBuilder_ == null) { peerOuIdentifier_ = null; } else { peerOuIdentifier_ = null; peerOuIdentifierBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.msp.MspConfig.internal_static_msp_FabricNodeOUs_descriptor; } public org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs getDefaultInstanceForType() { return org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs.getDefaultInstance(); } public org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs build() { org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs buildPartial() { org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs result = new org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs(this); result.enable_ = enable_; if (clientOuIdentifierBuilder_ == null) { result.clientOuIdentifier_ = clientOuIdentifier_; } else { result.clientOuIdentifier_ = clientOuIdentifierBuilder_.build(); } if (peerOuIdentifierBuilder_ == null) { result.peerOuIdentifier_ = peerOuIdentifier_; } else { result.peerOuIdentifier_ = peerOuIdentifierBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs) { return mergeFrom((org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs other) { if (other == org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs.getDefaultInstance()) return this; if (other.getEnable() != false) { setEnable(other.getEnable()); } if (other.hasClientOuIdentifier()) { mergeClientOuIdentifier(other.getClientOuIdentifier()); } if (other.hasPeerOuIdentifier()) { mergePeerOuIdentifier(other.getPeerOuIdentifier()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean enable_ ; /** *
       * If true then an msp identity that does not contain any of the specified OU will be considered invalid.
       * 
* * optional bool enable = 1; */ public boolean getEnable() { return enable_; } /** *
       * If true then an msp identity that does not contain any of the specified OU will be considered invalid.
       * 
* * optional bool enable = 1; */ public Builder setEnable(boolean value) { enable_ = value; onChanged(); return this; } /** *
       * If true then an msp identity that does not contain any of the specified OU will be considered invalid.
       * 
* * optional bool enable = 1; */ public Builder clearEnable() { enable_ = false; onChanged(); return this; } private org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier clientOuIdentifier_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier, org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.Builder, org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifierOrBuilder> clientOuIdentifierBuilder_; /** *
       * OU Identifier of the clients
       * 
* * optional .msp.FabricOUIdentifier client_ou_identifier = 2; */ public boolean hasClientOuIdentifier() { return clientOuIdentifierBuilder_ != null || clientOuIdentifier_ != null; } /** *
       * OU Identifier of the clients
       * 
* * optional .msp.FabricOUIdentifier client_ou_identifier = 2; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier getClientOuIdentifier() { if (clientOuIdentifierBuilder_ == null) { return clientOuIdentifier_ == null ? org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.getDefaultInstance() : clientOuIdentifier_; } else { return clientOuIdentifierBuilder_.getMessage(); } } /** *
       * OU Identifier of the clients
       * 
* * optional .msp.FabricOUIdentifier client_ou_identifier = 2; */ public Builder setClientOuIdentifier(org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier value) { if (clientOuIdentifierBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientOuIdentifier_ = value; onChanged(); } else { clientOuIdentifierBuilder_.setMessage(value); } return this; } /** *
       * OU Identifier of the clients
       * 
* * optional .msp.FabricOUIdentifier client_ou_identifier = 2; */ public Builder setClientOuIdentifier( org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.Builder builderForValue) { if (clientOuIdentifierBuilder_ == null) { clientOuIdentifier_ = builderForValue.build(); onChanged(); } else { clientOuIdentifierBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * OU Identifier of the clients
       * 
* * optional .msp.FabricOUIdentifier client_ou_identifier = 2; */ public Builder mergeClientOuIdentifier(org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier value) { if (clientOuIdentifierBuilder_ == null) { if (clientOuIdentifier_ != null) { clientOuIdentifier_ = org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.newBuilder(clientOuIdentifier_).mergeFrom(value).buildPartial(); } else { clientOuIdentifier_ = value; } onChanged(); } else { clientOuIdentifierBuilder_.mergeFrom(value); } return this; } /** *
       * OU Identifier of the clients
       * 
* * optional .msp.FabricOUIdentifier client_ou_identifier = 2; */ public Builder clearClientOuIdentifier() { if (clientOuIdentifierBuilder_ == null) { clientOuIdentifier_ = null; onChanged(); } else { clientOuIdentifier_ = null; clientOuIdentifierBuilder_ = null; } return this; } /** *
       * OU Identifier of the clients
       * 
* * optional .msp.FabricOUIdentifier client_ou_identifier = 2; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.Builder getClientOuIdentifierBuilder() { onChanged(); return getClientOuIdentifierFieldBuilder().getBuilder(); } /** *
       * OU Identifier of the clients
       * 
* * optional .msp.FabricOUIdentifier client_ou_identifier = 2; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifierOrBuilder getClientOuIdentifierOrBuilder() { if (clientOuIdentifierBuilder_ != null) { return clientOuIdentifierBuilder_.getMessageOrBuilder(); } else { return clientOuIdentifier_ == null ? org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.getDefaultInstance() : clientOuIdentifier_; } } /** *
       * OU Identifier of the clients
       * 
* * optional .msp.FabricOUIdentifier client_ou_identifier = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier, org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.Builder, org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifierOrBuilder> getClientOuIdentifierFieldBuilder() { if (clientOuIdentifierBuilder_ == null) { clientOuIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier, org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.Builder, org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifierOrBuilder>( getClientOuIdentifier(), getParentForChildren(), isClean()); clientOuIdentifier_ = null; } return clientOuIdentifierBuilder_; } private org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier peerOuIdentifier_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier, org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.Builder, org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifierOrBuilder> peerOuIdentifierBuilder_; /** *
       * OU Identifier of the peers
       * 
* * optional .msp.FabricOUIdentifier peer_ou_identifier = 3; */ public boolean hasPeerOuIdentifier() { return peerOuIdentifierBuilder_ != null || peerOuIdentifier_ != null; } /** *
       * OU Identifier of the peers
       * 
* * optional .msp.FabricOUIdentifier peer_ou_identifier = 3; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier getPeerOuIdentifier() { if (peerOuIdentifierBuilder_ == null) { return peerOuIdentifier_ == null ? org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.getDefaultInstance() : peerOuIdentifier_; } else { return peerOuIdentifierBuilder_.getMessage(); } } /** *
       * OU Identifier of the peers
       * 
* * optional .msp.FabricOUIdentifier peer_ou_identifier = 3; */ public Builder setPeerOuIdentifier(org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier value) { if (peerOuIdentifierBuilder_ == null) { if (value == null) { throw new NullPointerException(); } peerOuIdentifier_ = value; onChanged(); } else { peerOuIdentifierBuilder_.setMessage(value); } return this; } /** *
       * OU Identifier of the peers
       * 
* * optional .msp.FabricOUIdentifier peer_ou_identifier = 3; */ public Builder setPeerOuIdentifier( org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.Builder builderForValue) { if (peerOuIdentifierBuilder_ == null) { peerOuIdentifier_ = builderForValue.build(); onChanged(); } else { peerOuIdentifierBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * OU Identifier of the peers
       * 
* * optional .msp.FabricOUIdentifier peer_ou_identifier = 3; */ public Builder mergePeerOuIdentifier(org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier value) { if (peerOuIdentifierBuilder_ == null) { if (peerOuIdentifier_ != null) { peerOuIdentifier_ = org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.newBuilder(peerOuIdentifier_).mergeFrom(value).buildPartial(); } else { peerOuIdentifier_ = value; } onChanged(); } else { peerOuIdentifierBuilder_.mergeFrom(value); } return this; } /** *
       * OU Identifier of the peers
       * 
* * optional .msp.FabricOUIdentifier peer_ou_identifier = 3; */ public Builder clearPeerOuIdentifier() { if (peerOuIdentifierBuilder_ == null) { peerOuIdentifier_ = null; onChanged(); } else { peerOuIdentifier_ = null; peerOuIdentifierBuilder_ = null; } return this; } /** *
       * OU Identifier of the peers
       * 
* * optional .msp.FabricOUIdentifier peer_ou_identifier = 3; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.Builder getPeerOuIdentifierBuilder() { onChanged(); return getPeerOuIdentifierFieldBuilder().getBuilder(); } /** *
       * OU Identifier of the peers
       * 
* * optional .msp.FabricOUIdentifier peer_ou_identifier = 3; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifierOrBuilder getPeerOuIdentifierOrBuilder() { if (peerOuIdentifierBuilder_ != null) { return peerOuIdentifierBuilder_.getMessageOrBuilder(); } else { return peerOuIdentifier_ == null ? org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.getDefaultInstance() : peerOuIdentifier_; } } /** *
       * OU Identifier of the peers
       * 
* * optional .msp.FabricOUIdentifier peer_ou_identifier = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier, org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.Builder, org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifierOrBuilder> getPeerOuIdentifierFieldBuilder() { if (peerOuIdentifierBuilder_ == null) { peerOuIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier, org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifier.Builder, org.hyperledger.fabric.protos.msp.MspConfig.FabricOUIdentifierOrBuilder>( getPeerOuIdentifier(), getParentForChildren(), isClean()); peerOuIdentifier_ = null; } return peerOuIdentifierBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:msp.FabricNodeOUs) } // @@protoc_insertion_point(class_scope:msp.FabricNodeOUs) private static final org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs(); } public static org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FabricNodeOUs parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FabricNodeOUs(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.msp.MspConfig.FabricNodeOUs getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_msp_MSPConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_msp_MSPConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_msp_FabricMSPConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_msp_FabricMSPConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_msp_FabricCryptoConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_msp_FabricCryptoConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_msp_IdemixMSPConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_msp_IdemixMSPConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_msp_IdemixMSPSignerConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_msp_IdemixMSPSignerConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_msp_SigningIdentityInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_msp_SigningIdentityInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_msp_KeyInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_msp_KeyInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_msp_FabricOUIdentifier_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_msp_FabricOUIdentifier_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_msp_FabricNodeOUs_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_msp_FabricNodeOUs_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\024msp/msp_config.proto\022\003msp\")\n\tMSPConfig" + "\022\014\n\004type\030\001 \001(\005\022\016\n\006config\030\002 \001(\014\"\203\003\n\017Fabri" + "cMSPConfig\022\014\n\004name\030\001 \001(\t\022\022\n\nroot_certs\030\002" + " \003(\014\022\032\n\022intermediate_certs\030\003 \003(\014\022\016\n\006admi" + "ns\030\004 \003(\014\022\027\n\017revocation_list\030\005 \003(\014\0222\n\020sig" + "ning_identity\030\006 \001(\0132\030.msp.SigningIdentit" + "yInfo\022@\n\037organizational_unit_identifiers" + "\030\007 \003(\0132\027.msp.FabricOUIdentifier\022.\n\rcrypt" + "o_config\030\010 \001(\0132\027.msp.FabricCryptoConfig\022" + "\026\n\016tls_root_certs\030\t \003(\014\022\036\n\026tls_intermedi", "ate_certs\030\n \003(\014\022+\n\017fabric_node_ous\030\013 \001(\013" + "2\022.msp.FabricNodeOUs\"^\n\022FabricCryptoConf" + "ig\022\035\n\025signature_hash_family\030\001 \001(\t\022)\n!ide" + "ntity_identifier_hash_function\030\002 \001(\t\"~\n\017" + "IdemixMSPConfig\022\014\n\004name\030\001 \001(\t\022\013\n\003ipk\030\002 \001" + "(\014\022*\n\006signer\030\003 \001(\0132\032.msp.IdemixMSPSigner" + "Config\022\025\n\rrevocation_pk\030\004 \001(\014\022\r\n\005epoch\030\005" + " \001(\003\"\251\001\n\025IdemixMSPSignerConfig\022\014\n\004cred\030\001" + " \001(\014\022\n\n\002sk\030\002 \001(\014\022&\n\036organizational_unit_" + "identifier\030\003 \001(\t\022\014\n\004role\030\004 \001(\005\022\025\n\renroll", "ment_id\030\005 \001(\t\022)\n!credential_revocation_i" + "nformation\030\006 \001(\014\"R\n\023SigningIdentityInfo\022" + "\025\n\rpublic_signer\030\001 \001(\014\022$\n\016private_signer" + "\030\002 \001(\0132\014.msp.KeyInfo\"7\n\007KeyInfo\022\026\n\016key_i" + "dentifier\030\001 \001(\t\022\024\n\014key_material\030\002 \001(\014\"Q\n" + "\022FabricOUIdentifier\022\023\n\013certificate\030\001 \001(\014" + "\022&\n\036organizational_unit_identifier\030\002 \001(\t" + "\"\213\001\n\rFabricNodeOUs\022\016\n\006enable\030\001 \001(\010\0225\n\024cl" + "ient_ou_identifier\030\002 \001(\0132\027.msp.FabricOUI" + "dentifier\0223\n\022peer_ou_identifier\030\003 \001(\0132\027.", "msp.FabricOUIdentifierBX\n!org.hyperledge" + "r.fabric.protos.mspB\tMspConfigZ(github.c" + "om/hyperledger/fabric/protos/mspb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); internal_static_msp_MSPConfig_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_msp_MSPConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_msp_MSPConfig_descriptor, new java.lang.String[] { "Type", "Config", }); internal_static_msp_FabricMSPConfig_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_msp_FabricMSPConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_msp_FabricMSPConfig_descriptor, new java.lang.String[] { "Name", "RootCerts", "IntermediateCerts", "Admins", "RevocationList", "SigningIdentity", "OrganizationalUnitIdentifiers", "CryptoConfig", "TlsRootCerts", "TlsIntermediateCerts", "FabricNodeOus", }); internal_static_msp_FabricCryptoConfig_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_msp_FabricCryptoConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_msp_FabricCryptoConfig_descriptor, new java.lang.String[] { "SignatureHashFamily", "IdentityIdentifierHashFunction", }); internal_static_msp_IdemixMSPConfig_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_msp_IdemixMSPConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_msp_IdemixMSPConfig_descriptor, new java.lang.String[] { "Name", "Ipk", "Signer", "RevocationPk", "Epoch", }); internal_static_msp_IdemixMSPSignerConfig_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_msp_IdemixMSPSignerConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_msp_IdemixMSPSignerConfig_descriptor, new java.lang.String[] { "Cred", "Sk", "OrganizationalUnitIdentifier", "Role", "EnrollmentId", "CredentialRevocationInformation", }); internal_static_msp_SigningIdentityInfo_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_msp_SigningIdentityInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_msp_SigningIdentityInfo_descriptor, new java.lang.String[] { "PublicSigner", "PrivateSigner", }); internal_static_msp_KeyInfo_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_msp_KeyInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_msp_KeyInfo_descriptor, new java.lang.String[] { "KeyIdentifier", "KeyMaterial", }); internal_static_msp_FabricOUIdentifier_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_msp_FabricOUIdentifier_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_msp_FabricOUIdentifier_descriptor, new java.lang.String[] { "Certificate", "OrganizationalUnitIdentifier", }); internal_static_msp_FabricNodeOUs_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_msp_FabricNodeOUs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_msp_FabricNodeOUs_descriptor, new java.lang.String[] { "Enable", "ClientOuIdentifier", "PeerOuIdentifier", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy