org.hyperledger.fabric.protos.msp.FabricMSPConfig Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: msp/msp_config.proto
// Protobuf Java Version: 4.28.2
package org.hyperledger.fabric.protos.msp;
/**
*
* 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 final class FabricMSPConfig extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:msp.FabricMSPConfig)
FabricMSPConfigOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
FabricMSPConfig.class.getName());
}
// Use FabricMSPConfig.newBuilder() to construct.
private FabricMSPConfig(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private FabricMSPConfig() {
name_ = "";
rootCerts_ = emptyList(com.google.protobuf.ByteString.class);
intermediateCerts_ = emptyList(com.google.protobuf.ByteString.class);
admins_ = emptyList(com.google.protobuf.ByteString.class);
revocationList_ = emptyList(com.google.protobuf.ByteString.class);
organizationalUnitIdentifiers_ = java.util.Collections.emptyList();
tlsRootCerts_ = emptyList(com.google.protobuf.ByteString.class);
tlsIntermediateCerts_ = emptyList(com.google.protobuf.ByteString.class);
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.msp.MSPConfigProto.internal_static_msp_FabricMSPConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.msp.MSPConfigProto.internal_static_msp_FabricMSPConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.msp.FabricMSPConfig.class, org.hyperledger.fabric.protos.msp.FabricMSPConfig.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
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.
*
*
* string name = 1 [json_name = "name"];
* @return The name.
*/
@java.lang.Override
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.
*
*
* string name = 1 [json_name = "name"];
* @return The bytes for name.
*/
@java.lang.Override
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;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.ProtobufList rootCerts_ =
emptyList(com.google.protobuf.ByteString.class);
/**
*
* List of root certificates trusted by this MSP
* they are used upon certificate validation (see
* comment for IntermediateCerts below)
*
*
* repeated bytes root_certs = 2 [json_name = "rootCerts"];
* @return A list containing the rootCerts.
*/
@java.lang.Override
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 [json_name = "rootCerts"];
* @return The count of rootCerts.
*/
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 [json_name = "rootCerts"];
* @param index The index of the element to return.
* @return The rootCerts at the given index.
*/
public com.google.protobuf.ByteString getRootCerts(int index) {
return rootCerts_.get(index);
}
public static final int INTERMEDIATE_CERTS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.ProtobufList intermediateCerts_ =
emptyList(com.google.protobuf.ByteString.class);
/**
*
* 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 [json_name = "intermediateCerts"];
* @return A list containing the intermediateCerts.
*/
@java.lang.Override
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 [json_name = "intermediateCerts"];
* @return The count of intermediateCerts.
*/
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 [json_name = "intermediateCerts"];
* @param index The index of the element to return.
* @return The intermediateCerts at the given index.
*/
public com.google.protobuf.ByteString getIntermediateCerts(int index) {
return intermediateCerts_.get(index);
}
public static final int ADMINS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.ProtobufList admins_ =
emptyList(com.google.protobuf.ByteString.class);
/**
*
* Identity denoting the administrator of this MSP
*
*
* repeated bytes admins = 4 [json_name = "admins"];
* @return A list containing the admins.
*/
@java.lang.Override
public java.util.List
getAdminsList() {
return admins_;
}
/**
*
* Identity denoting the administrator of this MSP
*
*
* repeated bytes admins = 4 [json_name = "admins"];
* @return The count of admins.
*/
public int getAdminsCount() {
return admins_.size();
}
/**
*
* Identity denoting the administrator of this MSP
*
*
* repeated bytes admins = 4 [json_name = "admins"];
* @param index The index of the element to return.
* @return The admins at the given index.
*/
public com.google.protobuf.ByteString getAdmins(int index) {
return admins_.get(index);
}
public static final int REVOCATION_LIST_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.ProtobufList revocationList_ =
emptyList(com.google.protobuf.ByteString.class);
/**
*
* Identity revocation list
*
*
* repeated bytes revocation_list = 5 [json_name = "revocationList"];
* @return A list containing the revocationList.
*/
@java.lang.Override
public java.util.List
getRevocationListList() {
return revocationList_;
}
/**
*
* Identity revocation list
*
*
* repeated bytes revocation_list = 5 [json_name = "revocationList"];
* @return The count of revocationList.
*/
public int getRevocationListCount() {
return revocationList_.size();
}
/**
*
* Identity revocation list
*
*
* repeated bytes revocation_list = 5 [json_name = "revocationList"];
* @param index The index of the element to return.
* @return The revocationList at the given index.
*/
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.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
*
*
* .msp.SigningIdentityInfo signing_identity = 6 [json_name = "signingIdentity"];
* @return Whether the signingIdentity field is set.
*/
@java.lang.Override
public boolean hasSigningIdentity() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* SigningIdentity holds information on the signing identity
* this peer is to use, and which is to be imported by the
* MSP defined before
*
*
* .msp.SigningIdentityInfo signing_identity = 6 [json_name = "signingIdentity"];
* @return The signingIdentity.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.msp.SigningIdentityInfo getSigningIdentity() {
return signingIdentity_ == null ? org.hyperledger.fabric.protos.msp.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
*
*
* .msp.SigningIdentityInfo signing_identity = 6 [json_name = "signingIdentity"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.msp.SigningIdentityInfoOrBuilder getSigningIdentityOrBuilder() {
return signingIdentity_ == null ? org.hyperledger.fabric.protos.msp.SigningIdentityInfo.getDefaultInstance() : signingIdentity_;
}
public static final int ORGANIZATIONAL_UNIT_IDENTIFIERS_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
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 [json_name = "organizationalUnitIdentifiers"];
*/
@java.lang.Override
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 [json_name = "organizationalUnitIdentifiers"];
*/
@java.lang.Override
public java.util.List extends org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder>
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 [json_name = "organizationalUnitIdentifiers"];
*/
@java.lang.Override
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 [json_name = "organizationalUnitIdentifiers"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.msp.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 [json_name = "organizationalUnitIdentifiers"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder getOrganizationalUnitIdentifiersOrBuilder(
int index) {
return organizationalUnitIdentifiers_.get(index);
}
public static final int CRYPTO_CONFIG_FIELD_NUMBER = 8;
private org.hyperledger.fabric.protos.msp.FabricCryptoConfig cryptoConfig_;
/**
*
* FabricCryptoConfig contains the configuration parameters
* for the cryptographic algorithms used by this MSP
*
*
* .msp.FabricCryptoConfig crypto_config = 8 [json_name = "cryptoConfig"];
* @return Whether the cryptoConfig field is set.
*/
@java.lang.Override
public boolean hasCryptoConfig() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* FabricCryptoConfig contains the configuration parameters
* for the cryptographic algorithms used by this MSP
*
*
* .msp.FabricCryptoConfig crypto_config = 8 [json_name = "cryptoConfig"];
* @return The cryptoConfig.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.msp.FabricCryptoConfig getCryptoConfig() {
return cryptoConfig_ == null ? org.hyperledger.fabric.protos.msp.FabricCryptoConfig.getDefaultInstance() : cryptoConfig_;
}
/**
*
* FabricCryptoConfig contains the configuration parameters
* for the cryptographic algorithms used by this MSP
*
*
* .msp.FabricCryptoConfig crypto_config = 8 [json_name = "cryptoConfig"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.msp.FabricCryptoConfigOrBuilder getCryptoConfigOrBuilder() {
return cryptoConfig_ == null ? org.hyperledger.fabric.protos.msp.FabricCryptoConfig.getDefaultInstance() : cryptoConfig_;
}
public static final int TLS_ROOT_CERTS_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.ProtobufList tlsRootCerts_ =
emptyList(com.google.protobuf.ByteString.class);
/**
*
* List of TLS root certificates trusted by this MSP.
* They are returned by GetTLSRootCerts.
*
*
* repeated bytes tls_root_certs = 9 [json_name = "tlsRootCerts"];
* @return A list containing the tlsRootCerts.
*/
@java.lang.Override
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 [json_name = "tlsRootCerts"];
* @return The count of tlsRootCerts.
*/
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 [json_name = "tlsRootCerts"];
* @param index The index of the element to return.
* @return The tlsRootCerts at the given index.
*/
public com.google.protobuf.ByteString getTlsRootCerts(int index) {
return tlsRootCerts_.get(index);
}
public static final int TLS_INTERMEDIATE_CERTS_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.ProtobufList tlsIntermediateCerts_ =
emptyList(com.google.protobuf.ByteString.class);
/**
*
* List of TLS intermediate certificates trusted by this MSP;
* They are returned by GetTLSIntermediateCerts.
*
*
* repeated bytes tls_intermediate_certs = 10 [json_name = "tlsIntermediateCerts"];
* @return A list containing the tlsIntermediateCerts.
*/
@java.lang.Override
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 [json_name = "tlsIntermediateCerts"];
* @return The count of tlsIntermediateCerts.
*/
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 [json_name = "tlsIntermediateCerts"];
* @param index The index of the element to return.
* @return The tlsIntermediateCerts at the given index.
*/
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.FabricNodeOUs fabricNodeOus_;
/**
*
* fabric_node_ous contains the configuration to distinguish clients from peers from orderers
* based on the OUs.
*
*
* .msp.FabricNodeOUs fabric_node_ous = 11 [json_name = "fabricNodeOus"];
* @return Whether the fabricNodeOus field is set.
*/
@java.lang.Override
public boolean hasFabricNodeOus() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* fabric_node_ous contains the configuration to distinguish clients from peers from orderers
* based on the OUs.
*
*
* .msp.FabricNodeOUs fabric_node_ous = 11 [json_name = "fabricNodeOus"];
* @return The fabricNodeOus.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.msp.FabricNodeOUs getFabricNodeOus() {
return fabricNodeOus_ == null ? org.hyperledger.fabric.protos.msp.FabricNodeOUs.getDefaultInstance() : fabricNodeOus_;
}
/**
*
* fabric_node_ous contains the configuration to distinguish clients from peers from orderers
* based on the OUs.
*
*
* .msp.FabricNodeOUs fabric_node_ous = 11 [json_name = "fabricNodeOus"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.msp.FabricNodeOUsOrBuilder getFabricNodeOusOrBuilder() {
return fabricNodeOus_ == null ? org.hyperledger.fabric.protos.msp.FabricNodeOUs.getDefaultInstance() : fabricNodeOus_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessage.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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(6, getSigningIdentity());
}
for (int i = 0; i < organizationalUnitIdentifiers_.size(); i++) {
output.writeMessage(7, organizationalUnitIdentifiers_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
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 (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(11, getFabricNodeOus());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessage.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 (((bitField0_ & 0x00000001) != 0)) {
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 (((bitField0_ & 0x00000002) != 0)) {
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 (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getFabricNodeOus());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.msp.FabricMSPConfig)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.msp.FabricMSPConfig other = (org.hyperledger.fabric.protos.msp.FabricMSPConfig) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getRootCertsList()
.equals(other.getRootCertsList())) return false;
if (!getIntermediateCertsList()
.equals(other.getIntermediateCertsList())) return false;
if (!getAdminsList()
.equals(other.getAdminsList())) return false;
if (!getRevocationListList()
.equals(other.getRevocationListList())) return false;
if (hasSigningIdentity() != other.hasSigningIdentity()) return false;
if (hasSigningIdentity()) {
if (!getSigningIdentity()
.equals(other.getSigningIdentity())) return false;
}
if (!getOrganizationalUnitIdentifiersList()
.equals(other.getOrganizationalUnitIdentifiersList())) return false;
if (hasCryptoConfig() != other.hasCryptoConfig()) return false;
if (hasCryptoConfig()) {
if (!getCryptoConfig()
.equals(other.getCryptoConfig())) return false;
}
if (!getTlsRootCertsList()
.equals(other.getTlsRootCertsList())) return false;
if (!getTlsIntermediateCertsList()
.equals(other.getTlsIntermediateCertsList())) return false;
if (hasFabricNodeOus() != other.hasFabricNodeOus()) return false;
if (hasFabricNodeOus()) {
if (!getFabricNodeOus()
.equals(other.getFabricNodeOus())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + 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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.msp.FabricMSPConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.msp.FabricMSPConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.msp.FabricMSPConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.msp.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.FabricMSPConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.msp.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.FabricMSPConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.msp.FabricMSPConfig parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.msp.FabricMSPConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.msp.FabricMSPConfig parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.msp.FabricMSPConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.msp.FabricMSPConfig parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.msp.FabricMSPConfig prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:msp.FabricMSPConfig)
org.hyperledger.fabric.protos.msp.FabricMSPConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.msp.MSPConfigProto.internal_static_msp_FabricMSPConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.msp.MSPConfigProto.internal_static_msp_FabricMSPConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.msp.FabricMSPConfig.class, org.hyperledger.fabric.protos.msp.FabricMSPConfig.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.msp.FabricMSPConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getSigningIdentityFieldBuilder();
getOrganizationalUnitIdentifiersFieldBuilder();
getCryptoConfigFieldBuilder();
getFabricNodeOusFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
rootCerts_ = emptyList(com.google.protobuf.ByteString.class);
intermediateCerts_ = emptyList(com.google.protobuf.ByteString.class);
admins_ = emptyList(com.google.protobuf.ByteString.class);
revocationList_ = emptyList(com.google.protobuf.ByteString.class);
signingIdentity_ = null;
if (signingIdentityBuilder_ != null) {
signingIdentityBuilder_.dispose();
signingIdentityBuilder_ = null;
}
if (organizationalUnitIdentifiersBuilder_ == null) {
organizationalUnitIdentifiers_ = java.util.Collections.emptyList();
} else {
organizationalUnitIdentifiers_ = null;
organizationalUnitIdentifiersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
cryptoConfig_ = null;
if (cryptoConfigBuilder_ != null) {
cryptoConfigBuilder_.dispose();
cryptoConfigBuilder_ = null;
}
tlsRootCerts_ = emptyList(com.google.protobuf.ByteString.class);
tlsIntermediateCerts_ = emptyList(com.google.protobuf.ByteString.class);
fabricNodeOus_ = null;
if (fabricNodeOusBuilder_ != null) {
fabricNodeOusBuilder_.dispose();
fabricNodeOusBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.msp.MSPConfigProto.internal_static_msp_FabricMSPConfig_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.msp.FabricMSPConfig getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.msp.FabricMSPConfig.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.msp.FabricMSPConfig build() {
org.hyperledger.fabric.protos.msp.FabricMSPConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.msp.FabricMSPConfig buildPartial() {
org.hyperledger.fabric.protos.msp.FabricMSPConfig result = new org.hyperledger.fabric.protos.msp.FabricMSPConfig(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.hyperledger.fabric.protos.msp.FabricMSPConfig result) {
if (organizationalUnitIdentifiersBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
organizationalUnitIdentifiers_ = java.util.Collections.unmodifiableList(organizationalUnitIdentifiers_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.organizationalUnitIdentifiers_ = organizationalUnitIdentifiers_;
} else {
result.organizationalUnitIdentifiers_ = organizationalUnitIdentifiersBuilder_.build();
}
}
private void buildPartial0(org.hyperledger.fabric.protos.msp.FabricMSPConfig result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
rootCerts_.makeImmutable();
result.rootCerts_ = rootCerts_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
intermediateCerts_.makeImmutable();
result.intermediateCerts_ = intermediateCerts_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
admins_.makeImmutable();
result.admins_ = admins_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
revocationList_.makeImmutable();
result.revocationList_ = revocationList_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000020) != 0)) {
result.signingIdentity_ = signingIdentityBuilder_ == null
? signingIdentity_
: signingIdentityBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.cryptoConfig_ = cryptoConfigBuilder_ == null
? cryptoConfig_
: cryptoConfigBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
tlsRootCerts_.makeImmutable();
result.tlsRootCerts_ = tlsRootCerts_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
tlsIntermediateCerts_.makeImmutable();
result.tlsIntermediateCerts_ = tlsIntermediateCerts_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.fabricNodeOus_ = fabricNodeOusBuilder_ == null
? fabricNodeOus_
: fabricNodeOusBuilder_.build();
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.msp.FabricMSPConfig) {
return mergeFrom((org.hyperledger.fabric.protos.msp.FabricMSPConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.msp.FabricMSPConfig other) {
if (other == org.hyperledger.fabric.protos.msp.FabricMSPConfig.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.rootCerts_.isEmpty()) {
if (rootCerts_.isEmpty()) {
rootCerts_ = other.rootCerts_;
rootCerts_.makeImmutable();
bitField0_ |= 0x00000002;
} else {
ensureRootCertsIsMutable();
rootCerts_.addAll(other.rootCerts_);
}
onChanged();
}
if (!other.intermediateCerts_.isEmpty()) {
if (intermediateCerts_.isEmpty()) {
intermediateCerts_ = other.intermediateCerts_;
intermediateCerts_.makeImmutable();
bitField0_ |= 0x00000004;
} else {
ensureIntermediateCertsIsMutable();
intermediateCerts_.addAll(other.intermediateCerts_);
}
onChanged();
}
if (!other.admins_.isEmpty()) {
if (admins_.isEmpty()) {
admins_ = other.admins_;
admins_.makeImmutable();
bitField0_ |= 0x00000008;
} else {
ensureAdminsIsMutable();
admins_.addAll(other.admins_);
}
onChanged();
}
if (!other.revocationList_.isEmpty()) {
if (revocationList_.isEmpty()) {
revocationList_ = other.revocationList_;
revocationList_.makeImmutable();
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.GeneratedMessage.alwaysUseFieldBuilders ?
getOrganizationalUnitIdentifiersFieldBuilder() : null;
} else {
organizationalUnitIdentifiersBuilder_.addAllMessages(other.organizationalUnitIdentifiers_);
}
}
}
if (other.hasCryptoConfig()) {
mergeCryptoConfig(other.getCryptoConfig());
}
if (!other.tlsRootCerts_.isEmpty()) {
if (tlsRootCerts_.isEmpty()) {
tlsRootCerts_ = other.tlsRootCerts_;
tlsRootCerts_.makeImmutable();
bitField0_ |= 0x00000100;
} else {
ensureTlsRootCertsIsMutable();
tlsRootCerts_.addAll(other.tlsRootCerts_);
}
onChanged();
}
if (!other.tlsIntermediateCerts_.isEmpty()) {
if (tlsIntermediateCerts_.isEmpty()) {
tlsIntermediateCerts_ = other.tlsIntermediateCerts_;
tlsIntermediateCerts_.makeImmutable();
bitField0_ |= 0x00000200;
} else {
ensureTlsIntermediateCertsIsMutable();
tlsIntermediateCerts_.addAll(other.tlsIntermediateCerts_);
}
onChanged();
}
if (other.hasFabricNodeOus()) {
mergeFabricNodeOus(other.getFabricNodeOus());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
com.google.protobuf.ByteString v = input.readBytes();
ensureRootCertsIsMutable();
rootCerts_.add(v);
break;
} // case 18
case 26: {
com.google.protobuf.ByteString v = input.readBytes();
ensureIntermediateCertsIsMutable();
intermediateCerts_.add(v);
break;
} // case 26
case 34: {
com.google.protobuf.ByteString v = input.readBytes();
ensureAdminsIsMutable();
admins_.add(v);
break;
} // case 34
case 42: {
com.google.protobuf.ByteString v = input.readBytes();
ensureRevocationListIsMutable();
revocationList_.add(v);
break;
} // case 42
case 50: {
input.readMessage(
getSigningIdentityFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
org.hyperledger.fabric.protos.msp.FabricOUIdentifier m =
input.readMessage(
org.hyperledger.fabric.protos.msp.FabricOUIdentifier.parser(),
extensionRegistry);
if (organizationalUnitIdentifiersBuilder_ == null) {
ensureOrganizationalUnitIdentifiersIsMutable();
organizationalUnitIdentifiers_.add(m);
} else {
organizationalUnitIdentifiersBuilder_.addMessage(m);
}
break;
} // case 58
case 66: {
input.readMessage(
getCryptoConfigFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
case 74: {
com.google.protobuf.ByteString v = input.readBytes();
ensureTlsRootCertsIsMutable();
tlsRootCerts_.add(v);
break;
} // case 74
case 82: {
com.google.protobuf.ByteString v = input.readBytes();
ensureTlsIntermediateCertsIsMutable();
tlsIntermediateCerts_.add(v);
break;
} // case 82
case 90: {
input.readMessage(
getFabricNodeOusFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000400;
break;
} // case 90
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object 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.
*
*
* string name = 1 [json_name = "name"];
* @return The name.
*/
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.
*
*
* string name = 1 [json_name = "name"];
* @return The bytes for name.
*/
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.
*
*
* string name = 1 [json_name = "name"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000001;
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.
*
*
* string name = 1 [json_name = "name"];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
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.
*
*
* string name = 1 [json_name = "name"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.Internal.ProtobufList rootCerts_ = emptyList(com.google.protobuf.ByteString.class);
private void ensureRootCertsIsMutable() {
if (!rootCerts_.isModifiable()) {
rootCerts_ = makeMutableCopy(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 [json_name = "rootCerts"];
* @return A list containing the rootCerts.
*/
public java.util.List
getRootCertsList() {
rootCerts_.makeImmutable();
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 [json_name = "rootCerts"];
* @return The count of rootCerts.
*/
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 [json_name = "rootCerts"];
* @param index The index of the element to return.
* @return The rootCerts at the given index.
*/
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 [json_name = "rootCerts"];
* @param index The index to set the value at.
* @param value The rootCerts to set.
* @return This builder for chaining.
*/
public Builder setRootCerts(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureRootCertsIsMutable();
rootCerts_.set(index, value);
bitField0_ |= 0x00000002;
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 [json_name = "rootCerts"];
* @param value The rootCerts to add.
* @return This builder for chaining.
*/
public Builder addRootCerts(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureRootCertsIsMutable();
rootCerts_.add(value);
bitField0_ |= 0x00000002;
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 [json_name = "rootCerts"];
* @param values The rootCerts to add.
* @return This builder for chaining.
*/
public Builder addAllRootCerts(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureRootCertsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, rootCerts_);
bitField0_ |= 0x00000002;
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 [json_name = "rootCerts"];
* @return This builder for chaining.
*/
public Builder clearRootCerts() {
rootCerts_ = emptyList(com.google.protobuf.ByteString.class);
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private com.google.protobuf.Internal.ProtobufList intermediateCerts_ = emptyList(com.google.protobuf.ByteString.class);
private void ensureIntermediateCertsIsMutable() {
if (!intermediateCerts_.isModifiable()) {
intermediateCerts_ = makeMutableCopy(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 [json_name = "intermediateCerts"];
* @return A list containing the intermediateCerts.
*/
public java.util.List
getIntermediateCertsList() {
intermediateCerts_.makeImmutable();
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 [json_name = "intermediateCerts"];
* @return The count of intermediateCerts.
*/
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 [json_name = "intermediateCerts"];
* @param index The index of the element to return.
* @return The intermediateCerts at the given index.
*/
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 [json_name = "intermediateCerts"];
* @param index The index to set the value at.
* @param value The intermediateCerts to set.
* @return This builder for chaining.
*/
public Builder setIntermediateCerts(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureIntermediateCertsIsMutable();
intermediateCerts_.set(index, value);
bitField0_ |= 0x00000004;
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 [json_name = "intermediateCerts"];
* @param value The intermediateCerts to add.
* @return This builder for chaining.
*/
public Builder addIntermediateCerts(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureIntermediateCertsIsMutable();
intermediateCerts_.add(value);
bitField0_ |= 0x00000004;
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 [json_name = "intermediateCerts"];
* @param values The intermediateCerts to add.
* @return This builder for chaining.
*/
public Builder addAllIntermediateCerts(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureIntermediateCertsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, intermediateCerts_);
bitField0_ |= 0x00000004;
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 [json_name = "intermediateCerts"];
* @return This builder for chaining.
*/
public Builder clearIntermediateCerts() {
intermediateCerts_ = emptyList(com.google.protobuf.ByteString.class);
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
private com.google.protobuf.Internal.ProtobufList admins_ = emptyList(com.google.protobuf.ByteString.class);
private void ensureAdminsIsMutable() {
if (!admins_.isModifiable()) {
admins_ = makeMutableCopy(admins_);
}
bitField0_ |= 0x00000008;
}
/**
*
* Identity denoting the administrator of this MSP
*
*
* repeated bytes admins = 4 [json_name = "admins"];
* @return A list containing the admins.
*/
public java.util.List
getAdminsList() {
admins_.makeImmutable();
return admins_;
}
/**
*
* Identity denoting the administrator of this MSP
*
*
* repeated bytes admins = 4 [json_name = "admins"];
* @return The count of admins.
*/
public int getAdminsCount() {
return admins_.size();
}
/**
*
* Identity denoting the administrator of this MSP
*
*
* repeated bytes admins = 4 [json_name = "admins"];
* @param index The index of the element to return.
* @return The admins at the given index.
*/
public com.google.protobuf.ByteString getAdmins(int index) {
return admins_.get(index);
}
/**
*
* Identity denoting the administrator of this MSP
*
*
* repeated bytes admins = 4 [json_name = "admins"];
* @param index The index to set the value at.
* @param value The admins to set.
* @return This builder for chaining.
*/
public Builder setAdmins(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureAdminsIsMutable();
admins_.set(index, value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Identity denoting the administrator of this MSP
*
*
* repeated bytes admins = 4 [json_name = "admins"];
* @param value The admins to add.
* @return This builder for chaining.
*/
public Builder addAdmins(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureAdminsIsMutable();
admins_.add(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Identity denoting the administrator of this MSP
*
*
* repeated bytes admins = 4 [json_name = "admins"];
* @param values The admins to add.
* @return This builder for chaining.
*/
public Builder addAllAdmins(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureAdminsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, admins_);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Identity denoting the administrator of this MSP
*
*
* repeated bytes admins = 4 [json_name = "admins"];
* @return This builder for chaining.
*/
public Builder clearAdmins() {
admins_ = emptyList(com.google.protobuf.ByteString.class);
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
private com.google.protobuf.Internal.ProtobufList revocationList_ = emptyList(com.google.protobuf.ByteString.class);
private void ensureRevocationListIsMutable() {
if (!revocationList_.isModifiable()) {
revocationList_ = makeMutableCopy(revocationList_);
}
bitField0_ |= 0x00000010;
}
/**
*
* Identity revocation list
*
*
* repeated bytes revocation_list = 5 [json_name = "revocationList"];
* @return A list containing the revocationList.
*/
public java.util.List
getRevocationListList() {
revocationList_.makeImmutable();
return revocationList_;
}
/**
*
* Identity revocation list
*
*
* repeated bytes revocation_list = 5 [json_name = "revocationList"];
* @return The count of revocationList.
*/
public int getRevocationListCount() {
return revocationList_.size();
}
/**
*
* Identity revocation list
*
*
* repeated bytes revocation_list = 5 [json_name = "revocationList"];
* @param index The index of the element to return.
* @return The revocationList at the given index.
*/
public com.google.protobuf.ByteString getRevocationList(int index) {
return revocationList_.get(index);
}
/**
*
* Identity revocation list
*
*
* repeated bytes revocation_list = 5 [json_name = "revocationList"];
* @param index The index to set the value at.
* @param value The revocationList to set.
* @return This builder for chaining.
*/
public Builder setRevocationList(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureRevocationListIsMutable();
revocationList_.set(index, value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Identity revocation list
*
*
* repeated bytes revocation_list = 5 [json_name = "revocationList"];
* @param value The revocationList to add.
* @return This builder for chaining.
*/
public Builder addRevocationList(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureRevocationListIsMutable();
revocationList_.add(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Identity revocation list
*
*
* repeated bytes revocation_list = 5 [json_name = "revocationList"];
* @param values The revocationList to add.
* @return This builder for chaining.
*/
public Builder addAllRevocationList(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureRevocationListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, revocationList_);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Identity revocation list
*
*
* repeated bytes revocation_list = 5 [json_name = "revocationList"];
* @return This builder for chaining.
*/
public Builder clearRevocationList() {
revocationList_ = emptyList(com.google.protobuf.ByteString.class);
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
private org.hyperledger.fabric.protos.msp.SigningIdentityInfo signingIdentity_;
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.msp.SigningIdentityInfo, org.hyperledger.fabric.protos.msp.SigningIdentityInfo.Builder, org.hyperledger.fabric.protos.msp.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
*
*
* .msp.SigningIdentityInfo signing_identity = 6 [json_name = "signingIdentity"];
* @return Whether the signingIdentity field is set.
*/
public boolean hasSigningIdentity() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* SigningIdentity holds information on the signing identity
* this peer is to use, and which is to be imported by the
* MSP defined before
*
*
* .msp.SigningIdentityInfo signing_identity = 6 [json_name = "signingIdentity"];
* @return The signingIdentity.
*/
public org.hyperledger.fabric.protos.msp.SigningIdentityInfo getSigningIdentity() {
if (signingIdentityBuilder_ == null) {
return signingIdentity_ == null ? org.hyperledger.fabric.protos.msp.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
*
*
* .msp.SigningIdentityInfo signing_identity = 6 [json_name = "signingIdentity"];
*/
public Builder setSigningIdentity(org.hyperledger.fabric.protos.msp.SigningIdentityInfo value) {
if (signingIdentityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
signingIdentity_ = value;
} else {
signingIdentityBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
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
*
*
* .msp.SigningIdentityInfo signing_identity = 6 [json_name = "signingIdentity"];
*/
public Builder setSigningIdentity(
org.hyperledger.fabric.protos.msp.SigningIdentityInfo.Builder builderForValue) {
if (signingIdentityBuilder_ == null) {
signingIdentity_ = builderForValue.build();
} else {
signingIdentityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
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
*
*
* .msp.SigningIdentityInfo signing_identity = 6 [json_name = "signingIdentity"];
*/
public Builder mergeSigningIdentity(org.hyperledger.fabric.protos.msp.SigningIdentityInfo value) {
if (signingIdentityBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
signingIdentity_ != null &&
signingIdentity_ != org.hyperledger.fabric.protos.msp.SigningIdentityInfo.getDefaultInstance()) {
getSigningIdentityBuilder().mergeFrom(value);
} else {
signingIdentity_ = value;
}
} else {
signingIdentityBuilder_.mergeFrom(value);
}
if (signingIdentity_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
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
*
*
* .msp.SigningIdentityInfo signing_identity = 6 [json_name = "signingIdentity"];
*/
public Builder clearSigningIdentity() {
bitField0_ = (bitField0_ & ~0x00000020);
signingIdentity_ = null;
if (signingIdentityBuilder_ != null) {
signingIdentityBuilder_.dispose();
signingIdentityBuilder_ = null;
}
onChanged();
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
*
*
* .msp.SigningIdentityInfo signing_identity = 6 [json_name = "signingIdentity"];
*/
public org.hyperledger.fabric.protos.msp.SigningIdentityInfo.Builder getSigningIdentityBuilder() {
bitField0_ |= 0x00000020;
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
*
*
* .msp.SigningIdentityInfo signing_identity = 6 [json_name = "signingIdentity"];
*/
public org.hyperledger.fabric.protos.msp.SigningIdentityInfoOrBuilder getSigningIdentityOrBuilder() {
if (signingIdentityBuilder_ != null) {
return signingIdentityBuilder_.getMessageOrBuilder();
} else {
return signingIdentity_ == null ?
org.hyperledger.fabric.protos.msp.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
*
*
* .msp.SigningIdentityInfo signing_identity = 6 [json_name = "signingIdentity"];
*/
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.msp.SigningIdentityInfo, org.hyperledger.fabric.protos.msp.SigningIdentityInfo.Builder, org.hyperledger.fabric.protos.msp.SigningIdentityInfoOrBuilder>
getSigningIdentityFieldBuilder() {
if (signingIdentityBuilder_ == null) {
signingIdentityBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.msp.SigningIdentityInfo, org.hyperledger.fabric.protos.msp.SigningIdentityInfo.Builder, org.hyperledger.fabric.protos.msp.SigningIdentityInfoOrBuilder>(
getSigningIdentity(),
getParentForChildren(),
isClean());
signingIdentity_ = null;
}
return signingIdentityBuilder_;
}
private java.util.List organizationalUnitIdentifiers_ =
java.util.Collections.emptyList();
private void ensureOrganizationalUnitIdentifiersIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
organizationalUnitIdentifiers_ = new java.util.ArrayList(organizationalUnitIdentifiers_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.hyperledger.fabric.protos.msp.FabricOUIdentifier, org.hyperledger.fabric.protos.msp.FabricOUIdentifier.Builder, org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder> organizationalUnitIdentifiersBuilder_;
/**
*
* OrganizationalUnitIdentifiers holds one or more
* fabric organizational unit identifiers that belong to
* this MSP configuration
*
*
* repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7 [json_name = "organizationalUnitIdentifiers"];
*/
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 [json_name = "organizationalUnitIdentifiers"];
*/
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 [json_name = "organizationalUnitIdentifiers"];
*/
public org.hyperledger.fabric.protos.msp.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 [json_name = "organizationalUnitIdentifiers"];
*/
public Builder setOrganizationalUnitIdentifiers(
int index, org.hyperledger.fabric.protos.msp.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 [json_name = "organizationalUnitIdentifiers"];
*/
public Builder setOrganizationalUnitIdentifiers(
int index, org.hyperledger.fabric.protos.msp.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 [json_name = "organizationalUnitIdentifiers"];
*/
public Builder addOrganizationalUnitIdentifiers(org.hyperledger.fabric.protos.msp.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 [json_name = "organizationalUnitIdentifiers"];
*/
public Builder addOrganizationalUnitIdentifiers(
int index, org.hyperledger.fabric.protos.msp.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 [json_name = "organizationalUnitIdentifiers"];
*/
public Builder addOrganizationalUnitIdentifiers(
org.hyperledger.fabric.protos.msp.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 [json_name = "organizationalUnitIdentifiers"];
*/
public Builder addOrganizationalUnitIdentifiers(
int index, org.hyperledger.fabric.protos.msp.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 [json_name = "organizationalUnitIdentifiers"];
*/
public Builder addAllOrganizationalUnitIdentifiers(
java.lang.Iterable extends org.hyperledger.fabric.protos.msp.FabricOUIdentifier> 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 [json_name = "organizationalUnitIdentifiers"];
*/
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 [json_name = "organizationalUnitIdentifiers"];
*/
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 [json_name = "organizationalUnitIdentifiers"];
*/
public org.hyperledger.fabric.protos.msp.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 [json_name = "organizationalUnitIdentifiers"];
*/
public org.hyperledger.fabric.protos.msp.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 [json_name = "organizationalUnitIdentifiers"];
*/
public java.util.List extends org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder>
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 [json_name = "organizationalUnitIdentifiers"];
*/
public org.hyperledger.fabric.protos.msp.FabricOUIdentifier.Builder addOrganizationalUnitIdentifiersBuilder() {
return getOrganizationalUnitIdentifiersFieldBuilder().addBuilder(
org.hyperledger.fabric.protos.msp.FabricOUIdentifier.getDefaultInstance());
}
/**
*
* OrganizationalUnitIdentifiers holds one or more
* fabric organizational unit identifiers that belong to
* this MSP configuration
*
*
* repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7 [json_name = "organizationalUnitIdentifiers"];
*/
public org.hyperledger.fabric.protos.msp.FabricOUIdentifier.Builder addOrganizationalUnitIdentifiersBuilder(
int index) {
return getOrganizationalUnitIdentifiersFieldBuilder().addBuilder(
index, org.hyperledger.fabric.protos.msp.FabricOUIdentifier.getDefaultInstance());
}
/**
*
* OrganizationalUnitIdentifiers holds one or more
* fabric organizational unit identifiers that belong to
* this MSP configuration
*
*
* repeated .msp.FabricOUIdentifier organizational_unit_identifiers = 7 [json_name = "organizationalUnitIdentifiers"];
*/
public java.util.List
getOrganizationalUnitIdentifiersBuilderList() {
return getOrganizationalUnitIdentifiersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.hyperledger.fabric.protos.msp.FabricOUIdentifier, org.hyperledger.fabric.protos.msp.FabricOUIdentifier.Builder, org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder>
getOrganizationalUnitIdentifiersFieldBuilder() {
if (organizationalUnitIdentifiersBuilder_ == null) {
organizationalUnitIdentifiersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.hyperledger.fabric.protos.msp.FabricOUIdentifier, org.hyperledger.fabric.protos.msp.FabricOUIdentifier.Builder, org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder>(
organizationalUnitIdentifiers_,
((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
organizationalUnitIdentifiers_ = null;
}
return organizationalUnitIdentifiersBuilder_;
}
private org.hyperledger.fabric.protos.msp.FabricCryptoConfig cryptoConfig_;
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.msp.FabricCryptoConfig, org.hyperledger.fabric.protos.msp.FabricCryptoConfig.Builder, org.hyperledger.fabric.protos.msp.FabricCryptoConfigOrBuilder> cryptoConfigBuilder_;
/**
*
* FabricCryptoConfig contains the configuration parameters
* for the cryptographic algorithms used by this MSP
*
*
* .msp.FabricCryptoConfig crypto_config = 8 [json_name = "cryptoConfig"];
* @return Whether the cryptoConfig field is set.
*/
public boolean hasCryptoConfig() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* FabricCryptoConfig contains the configuration parameters
* for the cryptographic algorithms used by this MSP
*
*
* .msp.FabricCryptoConfig crypto_config = 8 [json_name = "cryptoConfig"];
* @return The cryptoConfig.
*/
public org.hyperledger.fabric.protos.msp.FabricCryptoConfig getCryptoConfig() {
if (cryptoConfigBuilder_ == null) {
return cryptoConfig_ == null ? org.hyperledger.fabric.protos.msp.FabricCryptoConfig.getDefaultInstance() : cryptoConfig_;
} else {
return cryptoConfigBuilder_.getMessage();
}
}
/**
*
* FabricCryptoConfig contains the configuration parameters
* for the cryptographic algorithms used by this MSP
*
*
* .msp.FabricCryptoConfig crypto_config = 8 [json_name = "cryptoConfig"];
*/
public Builder setCryptoConfig(org.hyperledger.fabric.protos.msp.FabricCryptoConfig value) {
if (cryptoConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cryptoConfig_ = value;
} else {
cryptoConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* FabricCryptoConfig contains the configuration parameters
* for the cryptographic algorithms used by this MSP
*
*
* .msp.FabricCryptoConfig crypto_config = 8 [json_name = "cryptoConfig"];
*/
public Builder setCryptoConfig(
org.hyperledger.fabric.protos.msp.FabricCryptoConfig.Builder builderForValue) {
if (cryptoConfigBuilder_ == null) {
cryptoConfig_ = builderForValue.build();
} else {
cryptoConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* FabricCryptoConfig contains the configuration parameters
* for the cryptographic algorithms used by this MSP
*
*
* .msp.FabricCryptoConfig crypto_config = 8 [json_name = "cryptoConfig"];
*/
public Builder mergeCryptoConfig(org.hyperledger.fabric.protos.msp.FabricCryptoConfig value) {
if (cryptoConfigBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
cryptoConfig_ != null &&
cryptoConfig_ != org.hyperledger.fabric.protos.msp.FabricCryptoConfig.getDefaultInstance()) {
getCryptoConfigBuilder().mergeFrom(value);
} else {
cryptoConfig_ = value;
}
} else {
cryptoConfigBuilder_.mergeFrom(value);
}
if (cryptoConfig_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
*
* FabricCryptoConfig contains the configuration parameters
* for the cryptographic algorithms used by this MSP
*
*
* .msp.FabricCryptoConfig crypto_config = 8 [json_name = "cryptoConfig"];
*/
public Builder clearCryptoConfig() {
bitField0_ = (bitField0_ & ~0x00000080);
cryptoConfig_ = null;
if (cryptoConfigBuilder_ != null) {
cryptoConfigBuilder_.dispose();
cryptoConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* FabricCryptoConfig contains the configuration parameters
* for the cryptographic algorithms used by this MSP
*
*
* .msp.FabricCryptoConfig crypto_config = 8 [json_name = "cryptoConfig"];
*/
public org.hyperledger.fabric.protos.msp.FabricCryptoConfig.Builder getCryptoConfigBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getCryptoConfigFieldBuilder().getBuilder();
}
/**
*
* FabricCryptoConfig contains the configuration parameters
* for the cryptographic algorithms used by this MSP
*
*
* .msp.FabricCryptoConfig crypto_config = 8 [json_name = "cryptoConfig"];
*/
public org.hyperledger.fabric.protos.msp.FabricCryptoConfigOrBuilder getCryptoConfigOrBuilder() {
if (cryptoConfigBuilder_ != null) {
return cryptoConfigBuilder_.getMessageOrBuilder();
} else {
return cryptoConfig_ == null ?
org.hyperledger.fabric.protos.msp.FabricCryptoConfig.getDefaultInstance() : cryptoConfig_;
}
}
/**
*
* FabricCryptoConfig contains the configuration parameters
* for the cryptographic algorithms used by this MSP
*
*
* .msp.FabricCryptoConfig crypto_config = 8 [json_name = "cryptoConfig"];
*/
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.msp.FabricCryptoConfig, org.hyperledger.fabric.protos.msp.FabricCryptoConfig.Builder, org.hyperledger.fabric.protos.msp.FabricCryptoConfigOrBuilder>
getCryptoConfigFieldBuilder() {
if (cryptoConfigBuilder_ == null) {
cryptoConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.msp.FabricCryptoConfig, org.hyperledger.fabric.protos.msp.FabricCryptoConfig.Builder, org.hyperledger.fabric.protos.msp.FabricCryptoConfigOrBuilder>(
getCryptoConfig(),
getParentForChildren(),
isClean());
cryptoConfig_ = null;
}
return cryptoConfigBuilder_;
}
private com.google.protobuf.Internal.ProtobufList tlsRootCerts_ = emptyList(com.google.protobuf.ByteString.class);
private void ensureTlsRootCertsIsMutable() {
if (!tlsRootCerts_.isModifiable()) {
tlsRootCerts_ = makeMutableCopy(tlsRootCerts_);
}
bitField0_ |= 0x00000100;
}
/**
*
* List of TLS root certificates trusted by this MSP.
* They are returned by GetTLSRootCerts.
*
*
* repeated bytes tls_root_certs = 9 [json_name = "tlsRootCerts"];
* @return A list containing the tlsRootCerts.
*/
public java.util.List
getTlsRootCertsList() {
tlsRootCerts_.makeImmutable();
return tlsRootCerts_;
}
/**
*
* List of TLS root certificates trusted by this MSP.
* They are returned by GetTLSRootCerts.
*
*
* repeated bytes tls_root_certs = 9 [json_name = "tlsRootCerts"];
* @return The count of tlsRootCerts.
*/
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 [json_name = "tlsRootCerts"];
* @param index The index of the element to return.
* @return The tlsRootCerts at the given index.
*/
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 [json_name = "tlsRootCerts"];
* @param index The index to set the value at.
* @param value The tlsRootCerts to set.
* @return This builder for chaining.
*/
public Builder setTlsRootCerts(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureTlsRootCertsIsMutable();
tlsRootCerts_.set(index, value);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* List of TLS root certificates trusted by this MSP.
* They are returned by GetTLSRootCerts.
*
*
* repeated bytes tls_root_certs = 9 [json_name = "tlsRootCerts"];
* @param value The tlsRootCerts to add.
* @return This builder for chaining.
*/
public Builder addTlsRootCerts(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureTlsRootCertsIsMutable();
tlsRootCerts_.add(value);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* List of TLS root certificates trusted by this MSP.
* They are returned by GetTLSRootCerts.
*
*
* repeated bytes tls_root_certs = 9 [json_name = "tlsRootCerts"];
* @param values The tlsRootCerts to add.
* @return This builder for chaining.
*/
public Builder addAllTlsRootCerts(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureTlsRootCertsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tlsRootCerts_);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* List of TLS root certificates trusted by this MSP.
* They are returned by GetTLSRootCerts.
*
*
* repeated bytes tls_root_certs = 9 [json_name = "tlsRootCerts"];
* @return This builder for chaining.
*/
public Builder clearTlsRootCerts() {
tlsRootCerts_ = emptyList(com.google.protobuf.ByteString.class);
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
private com.google.protobuf.Internal.ProtobufList tlsIntermediateCerts_ = emptyList(com.google.protobuf.ByteString.class);
private void ensureTlsIntermediateCertsIsMutable() {
if (!tlsIntermediateCerts_.isModifiable()) {
tlsIntermediateCerts_ = makeMutableCopy(tlsIntermediateCerts_);
}
bitField0_ |= 0x00000200;
}
/**
*
* List of TLS intermediate certificates trusted by this MSP;
* They are returned by GetTLSIntermediateCerts.
*
*
* repeated bytes tls_intermediate_certs = 10 [json_name = "tlsIntermediateCerts"];
* @return A list containing the tlsIntermediateCerts.
*/
public java.util.List
getTlsIntermediateCertsList() {
tlsIntermediateCerts_.makeImmutable();
return tlsIntermediateCerts_;
}
/**
*
* List of TLS intermediate certificates trusted by this MSP;
* They are returned by GetTLSIntermediateCerts.
*
*
* repeated bytes tls_intermediate_certs = 10 [json_name = "tlsIntermediateCerts"];
* @return The count of tlsIntermediateCerts.
*/
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 [json_name = "tlsIntermediateCerts"];
* @param index The index of the element to return.
* @return The tlsIntermediateCerts at the given index.
*/
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 [json_name = "tlsIntermediateCerts"];
* @param index The index to set the value at.
* @param value The tlsIntermediateCerts to set.
* @return This builder for chaining.
*/
public Builder setTlsIntermediateCerts(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureTlsIntermediateCertsIsMutable();
tlsIntermediateCerts_.set(index, value);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* List of TLS intermediate certificates trusted by this MSP;
* They are returned by GetTLSIntermediateCerts.
*
*
* repeated bytes tls_intermediate_certs = 10 [json_name = "tlsIntermediateCerts"];
* @param value The tlsIntermediateCerts to add.
* @return This builder for chaining.
*/
public Builder addTlsIntermediateCerts(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureTlsIntermediateCertsIsMutable();
tlsIntermediateCerts_.add(value);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* List of TLS intermediate certificates trusted by this MSP;
* They are returned by GetTLSIntermediateCerts.
*
*
* repeated bytes tls_intermediate_certs = 10 [json_name = "tlsIntermediateCerts"];
* @param values The tlsIntermediateCerts to add.
* @return This builder for chaining.
*/
public Builder addAllTlsIntermediateCerts(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureTlsIntermediateCertsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tlsIntermediateCerts_);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* List of TLS intermediate certificates trusted by this MSP;
* They are returned by GetTLSIntermediateCerts.
*
*
* repeated bytes tls_intermediate_certs = 10 [json_name = "tlsIntermediateCerts"];
* @return This builder for chaining.
*/
public Builder clearTlsIntermediateCerts() {
tlsIntermediateCerts_ = emptyList(com.google.protobuf.ByteString.class);
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
private org.hyperledger.fabric.protos.msp.FabricNodeOUs fabricNodeOus_;
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.msp.FabricNodeOUs, org.hyperledger.fabric.protos.msp.FabricNodeOUs.Builder, org.hyperledger.fabric.protos.msp.FabricNodeOUsOrBuilder> fabricNodeOusBuilder_;
/**
*
* fabric_node_ous contains the configuration to distinguish clients from peers from orderers
* based on the OUs.
*
*
* .msp.FabricNodeOUs fabric_node_ous = 11 [json_name = "fabricNodeOus"];
* @return Whether the fabricNodeOus field is set.
*/
public boolean hasFabricNodeOus() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* fabric_node_ous contains the configuration to distinguish clients from peers from orderers
* based on the OUs.
*
*
* .msp.FabricNodeOUs fabric_node_ous = 11 [json_name = "fabricNodeOus"];
* @return The fabricNodeOus.
*/
public org.hyperledger.fabric.protos.msp.FabricNodeOUs getFabricNodeOus() {
if (fabricNodeOusBuilder_ == null) {
return fabricNodeOus_ == null ? org.hyperledger.fabric.protos.msp.FabricNodeOUs.getDefaultInstance() : fabricNodeOus_;
} else {
return fabricNodeOusBuilder_.getMessage();
}
}
/**
*
* fabric_node_ous contains the configuration to distinguish clients from peers from orderers
* based on the OUs.
*
*
* .msp.FabricNodeOUs fabric_node_ous = 11 [json_name = "fabricNodeOus"];
*/
public Builder setFabricNodeOus(org.hyperledger.fabric.protos.msp.FabricNodeOUs value) {
if (fabricNodeOusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fabricNodeOus_ = value;
} else {
fabricNodeOusBuilder_.setMessage(value);
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
* fabric_node_ous contains the configuration to distinguish clients from peers from orderers
* based on the OUs.
*
*
* .msp.FabricNodeOUs fabric_node_ous = 11 [json_name = "fabricNodeOus"];
*/
public Builder setFabricNodeOus(
org.hyperledger.fabric.protos.msp.FabricNodeOUs.Builder builderForValue) {
if (fabricNodeOusBuilder_ == null) {
fabricNodeOus_ = builderForValue.build();
} else {
fabricNodeOusBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
* fabric_node_ous contains the configuration to distinguish clients from peers from orderers
* based on the OUs.
*
*
* .msp.FabricNodeOUs fabric_node_ous = 11 [json_name = "fabricNodeOus"];
*/
public Builder mergeFabricNodeOus(org.hyperledger.fabric.protos.msp.FabricNodeOUs value) {
if (fabricNodeOusBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 0) &&
fabricNodeOus_ != null &&
fabricNodeOus_ != org.hyperledger.fabric.protos.msp.FabricNodeOUs.getDefaultInstance()) {
getFabricNodeOusBuilder().mergeFrom(value);
} else {
fabricNodeOus_ = value;
}
} else {
fabricNodeOusBuilder_.mergeFrom(value);
}
if (fabricNodeOus_ != null) {
bitField0_ |= 0x00000400;
onChanged();
}
return this;
}
/**
*
* fabric_node_ous contains the configuration to distinguish clients from peers from orderers
* based on the OUs.
*
*
* .msp.FabricNodeOUs fabric_node_ous = 11 [json_name = "fabricNodeOus"];
*/
public Builder clearFabricNodeOus() {
bitField0_ = (bitField0_ & ~0x00000400);
fabricNodeOus_ = null;
if (fabricNodeOusBuilder_ != null) {
fabricNodeOusBuilder_.dispose();
fabricNodeOusBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* fabric_node_ous contains the configuration to distinguish clients from peers from orderers
* based on the OUs.
*
*
* .msp.FabricNodeOUs fabric_node_ous = 11 [json_name = "fabricNodeOus"];
*/
public org.hyperledger.fabric.protos.msp.FabricNodeOUs.Builder getFabricNodeOusBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getFabricNodeOusFieldBuilder().getBuilder();
}
/**
*
* fabric_node_ous contains the configuration to distinguish clients from peers from orderers
* based on the OUs.
*
*
* .msp.FabricNodeOUs fabric_node_ous = 11 [json_name = "fabricNodeOus"];
*/
public org.hyperledger.fabric.protos.msp.FabricNodeOUsOrBuilder getFabricNodeOusOrBuilder() {
if (fabricNodeOusBuilder_ != null) {
return fabricNodeOusBuilder_.getMessageOrBuilder();
} else {
return fabricNodeOus_ == null ?
org.hyperledger.fabric.protos.msp.FabricNodeOUs.getDefaultInstance() : fabricNodeOus_;
}
}
/**
*
* fabric_node_ous contains the configuration to distinguish clients from peers from orderers
* based on the OUs.
*
*
* .msp.FabricNodeOUs fabric_node_ous = 11 [json_name = "fabricNodeOus"];
*/
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.msp.FabricNodeOUs, org.hyperledger.fabric.protos.msp.FabricNodeOUs.Builder, org.hyperledger.fabric.protos.msp.FabricNodeOUsOrBuilder>
getFabricNodeOusFieldBuilder() {
if (fabricNodeOusBuilder_ == null) {
fabricNodeOusBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.msp.FabricNodeOUs, org.hyperledger.fabric.protos.msp.FabricNodeOUs.Builder, org.hyperledger.fabric.protos.msp.FabricNodeOUsOrBuilder>(
getFabricNodeOus(),
getParentForChildren(),
isClean());
fabricNodeOus_ = null;
}
return fabricNodeOusBuilder_;
}
// @@protoc_insertion_point(builder_scope:msp.FabricMSPConfig)
}
// @@protoc_insertion_point(class_scope:msp.FabricMSPConfig)
private static final org.hyperledger.fabric.protos.msp.FabricMSPConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.msp.FabricMSPConfig();
}
public static org.hyperledger.fabric.protos.msp.FabricMSPConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FabricMSPConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.msp.FabricMSPConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy