org.hyperledger.fabric.protos.msp.FabricNodeOUs 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;
/**
*
* FabricNodeOUs contains configuration to tell apart clients from peers from orderers
* based on OUs. If NodeOUs recognition is enabled then an msp identity
* that does not contain any of the specified OU will be considered invalid.
*
*
* Protobuf type {@code msp.FabricNodeOUs}
*/
public final class FabricNodeOUs extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:msp.FabricNodeOUs)
FabricNodeOUsOrBuilder {
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= */ "",
FabricNodeOUs.class.getName());
}
// Use FabricNodeOUs.newBuilder() to construct.
private FabricNodeOUs(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private FabricNodeOUs() {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.msp.MSPConfigProto.internal_static_msp_FabricNodeOUs_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.msp.MSPConfigProto.internal_static_msp_FabricNodeOUs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.msp.FabricNodeOUs.class, org.hyperledger.fabric.protos.msp.FabricNodeOUs.Builder.class);
}
private int bitField0_;
public static final int ENABLE_FIELD_NUMBER = 1;
private boolean enable_ = false;
/**
*
* If true then an msp identity that does not contain any of the specified OU will be considered invalid.
*
*
* bool enable = 1 [json_name = "enable"];
* @return The enable.
*/
@java.lang.Override
public boolean getEnable() {
return enable_;
}
public static final int CLIENT_OU_IDENTIFIER_FIELD_NUMBER = 2;
private org.hyperledger.fabric.protos.msp.FabricOUIdentifier clientOuIdentifier_;
/**
*
* OU Identifier of the clients
*
*
* .msp.FabricOUIdentifier client_ou_identifier = 2 [json_name = "clientOuIdentifier"];
* @return Whether the clientOuIdentifier field is set.
*/
@java.lang.Override
public boolean hasClientOuIdentifier() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* OU Identifier of the clients
*
*
* .msp.FabricOUIdentifier client_ou_identifier = 2 [json_name = "clientOuIdentifier"];
* @return The clientOuIdentifier.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.msp.FabricOUIdentifier getClientOuIdentifier() {
return clientOuIdentifier_ == null ? org.hyperledger.fabric.protos.msp.FabricOUIdentifier.getDefaultInstance() : clientOuIdentifier_;
}
/**
*
* OU Identifier of the clients
*
*
* .msp.FabricOUIdentifier client_ou_identifier = 2 [json_name = "clientOuIdentifier"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder getClientOuIdentifierOrBuilder() {
return clientOuIdentifier_ == null ? org.hyperledger.fabric.protos.msp.FabricOUIdentifier.getDefaultInstance() : clientOuIdentifier_;
}
public static final int PEER_OU_IDENTIFIER_FIELD_NUMBER = 3;
private org.hyperledger.fabric.protos.msp.FabricOUIdentifier peerOuIdentifier_;
/**
*
* OU Identifier of the peers
*
*
* .msp.FabricOUIdentifier peer_ou_identifier = 3 [json_name = "peerOuIdentifier"];
* @return Whether the peerOuIdentifier field is set.
*/
@java.lang.Override
public boolean hasPeerOuIdentifier() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* OU Identifier of the peers
*
*
* .msp.FabricOUIdentifier peer_ou_identifier = 3 [json_name = "peerOuIdentifier"];
* @return The peerOuIdentifier.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.msp.FabricOUIdentifier getPeerOuIdentifier() {
return peerOuIdentifier_ == null ? org.hyperledger.fabric.protos.msp.FabricOUIdentifier.getDefaultInstance() : peerOuIdentifier_;
}
/**
*
* OU Identifier of the peers
*
*
* .msp.FabricOUIdentifier peer_ou_identifier = 3 [json_name = "peerOuIdentifier"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder getPeerOuIdentifierOrBuilder() {
return peerOuIdentifier_ == null ? org.hyperledger.fabric.protos.msp.FabricOUIdentifier.getDefaultInstance() : peerOuIdentifier_;
}
public static final int ADMIN_OU_IDENTIFIER_FIELD_NUMBER = 4;
private org.hyperledger.fabric.protos.msp.FabricOUIdentifier adminOuIdentifier_;
/**
*
* OU Identifier of the admins
*
*
* .msp.FabricOUIdentifier admin_ou_identifier = 4 [json_name = "adminOuIdentifier"];
* @return Whether the adminOuIdentifier field is set.
*/
@java.lang.Override
public boolean hasAdminOuIdentifier() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* OU Identifier of the admins
*
*
* .msp.FabricOUIdentifier admin_ou_identifier = 4 [json_name = "adminOuIdentifier"];
* @return The adminOuIdentifier.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.msp.FabricOUIdentifier getAdminOuIdentifier() {
return adminOuIdentifier_ == null ? org.hyperledger.fabric.protos.msp.FabricOUIdentifier.getDefaultInstance() : adminOuIdentifier_;
}
/**
*
* OU Identifier of the admins
*
*
* .msp.FabricOUIdentifier admin_ou_identifier = 4 [json_name = "adminOuIdentifier"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder getAdminOuIdentifierOrBuilder() {
return adminOuIdentifier_ == null ? org.hyperledger.fabric.protos.msp.FabricOUIdentifier.getDefaultInstance() : adminOuIdentifier_;
}
public static final int ORDERER_OU_IDENTIFIER_FIELD_NUMBER = 5;
private org.hyperledger.fabric.protos.msp.FabricOUIdentifier ordererOuIdentifier_;
/**
*
* OU Identifier of the orderers
*
*
* .msp.FabricOUIdentifier orderer_ou_identifier = 5 [json_name = "ordererOuIdentifier"];
* @return Whether the ordererOuIdentifier field is set.
*/
@java.lang.Override
public boolean hasOrdererOuIdentifier() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* OU Identifier of the orderers
*
*
* .msp.FabricOUIdentifier orderer_ou_identifier = 5 [json_name = "ordererOuIdentifier"];
* @return The ordererOuIdentifier.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.msp.FabricOUIdentifier getOrdererOuIdentifier() {
return ordererOuIdentifier_ == null ? org.hyperledger.fabric.protos.msp.FabricOUIdentifier.getDefaultInstance() : ordererOuIdentifier_;
}
/**
*
* OU Identifier of the orderers
*
*
* .msp.FabricOUIdentifier orderer_ou_identifier = 5 [json_name = "ordererOuIdentifier"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder getOrdererOuIdentifierOrBuilder() {
return ordererOuIdentifier_ == null ? org.hyperledger.fabric.protos.msp.FabricOUIdentifier.getDefaultInstance() : ordererOuIdentifier_;
}
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 (enable_ != false) {
output.writeBool(1, enable_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getClientOuIdentifier());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getPeerOuIdentifier());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getAdminOuIdentifier());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(5, getOrdererOuIdentifier());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (enable_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, enable_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getClientOuIdentifier());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getPeerOuIdentifier());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getAdminOuIdentifier());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getOrdererOuIdentifier());
}
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.FabricNodeOUs)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.msp.FabricNodeOUs other = (org.hyperledger.fabric.protos.msp.FabricNodeOUs) obj;
if (getEnable()
!= other.getEnable()) return false;
if (hasClientOuIdentifier() != other.hasClientOuIdentifier()) return false;
if (hasClientOuIdentifier()) {
if (!getClientOuIdentifier()
.equals(other.getClientOuIdentifier())) return false;
}
if (hasPeerOuIdentifier() != other.hasPeerOuIdentifier()) return false;
if (hasPeerOuIdentifier()) {
if (!getPeerOuIdentifier()
.equals(other.getPeerOuIdentifier())) return false;
}
if (hasAdminOuIdentifier() != other.hasAdminOuIdentifier()) return false;
if (hasAdminOuIdentifier()) {
if (!getAdminOuIdentifier()
.equals(other.getAdminOuIdentifier())) return false;
}
if (hasOrdererOuIdentifier() != other.hasOrdererOuIdentifier()) return false;
if (hasOrdererOuIdentifier()) {
if (!getOrdererOuIdentifier()
.equals(other.getOrdererOuIdentifier())) 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) + ENABLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEnable());
if (hasClientOuIdentifier()) {
hash = (37 * hash) + CLIENT_OU_IDENTIFIER_FIELD_NUMBER;
hash = (53 * hash) + getClientOuIdentifier().hashCode();
}
if (hasPeerOuIdentifier()) {
hash = (37 * hash) + PEER_OU_IDENTIFIER_FIELD_NUMBER;
hash = (53 * hash) + getPeerOuIdentifier().hashCode();
}
if (hasAdminOuIdentifier()) {
hash = (37 * hash) + ADMIN_OU_IDENTIFIER_FIELD_NUMBER;
hash = (53 * hash) + getAdminOuIdentifier().hashCode();
}
if (hasOrdererOuIdentifier()) {
hash = (37 * hash) + ORDERER_OU_IDENTIFIER_FIELD_NUMBER;
hash = (53 * hash) + getOrdererOuIdentifier().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.msp.FabricNodeOUs parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.msp.FabricNodeOUs 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.FabricNodeOUs parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.msp.FabricNodeOUs parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.msp.FabricNodeOUs parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.msp.FabricNodeOUs parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.msp.FabricNodeOUs parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.msp.FabricNodeOUs 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.FabricNodeOUs parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.msp.FabricNodeOUs 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.FabricNodeOUs 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.FabricNodeOUs 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.FabricNodeOUs 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;
}
/**
*
* FabricNodeOUs contains configuration to tell apart clients from peers from orderers
* based on OUs. If NodeOUs recognition is enabled then an msp identity
* that does not contain any of the specified OU will be considered invalid.
*
*
* Protobuf type {@code msp.FabricNodeOUs}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:msp.FabricNodeOUs)
org.hyperledger.fabric.protos.msp.FabricNodeOUsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.msp.MSPConfigProto.internal_static_msp_FabricNodeOUs_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.msp.MSPConfigProto.internal_static_msp_FabricNodeOUs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.msp.FabricNodeOUs.class, org.hyperledger.fabric.protos.msp.FabricNodeOUs.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.msp.FabricNodeOUs.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getClientOuIdentifierFieldBuilder();
getPeerOuIdentifierFieldBuilder();
getAdminOuIdentifierFieldBuilder();
getOrdererOuIdentifierFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
enable_ = false;
clientOuIdentifier_ = null;
if (clientOuIdentifierBuilder_ != null) {
clientOuIdentifierBuilder_.dispose();
clientOuIdentifierBuilder_ = null;
}
peerOuIdentifier_ = null;
if (peerOuIdentifierBuilder_ != null) {
peerOuIdentifierBuilder_.dispose();
peerOuIdentifierBuilder_ = null;
}
adminOuIdentifier_ = null;
if (adminOuIdentifierBuilder_ != null) {
adminOuIdentifierBuilder_.dispose();
adminOuIdentifierBuilder_ = null;
}
ordererOuIdentifier_ = null;
if (ordererOuIdentifierBuilder_ != null) {
ordererOuIdentifierBuilder_.dispose();
ordererOuIdentifierBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.msp.MSPConfigProto.internal_static_msp_FabricNodeOUs_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.msp.FabricNodeOUs getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.msp.FabricNodeOUs.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.msp.FabricNodeOUs build() {
org.hyperledger.fabric.protos.msp.FabricNodeOUs result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.msp.FabricNodeOUs buildPartial() {
org.hyperledger.fabric.protos.msp.FabricNodeOUs result = new org.hyperledger.fabric.protos.msp.FabricNodeOUs(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.hyperledger.fabric.protos.msp.FabricNodeOUs result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.enable_ = enable_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.clientOuIdentifier_ = clientOuIdentifierBuilder_ == null
? clientOuIdentifier_
: clientOuIdentifierBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.peerOuIdentifier_ = peerOuIdentifierBuilder_ == null
? peerOuIdentifier_
: peerOuIdentifierBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.adminOuIdentifier_ = adminOuIdentifierBuilder_ == null
? adminOuIdentifier_
: adminOuIdentifierBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.ordererOuIdentifier_ = ordererOuIdentifierBuilder_ == null
? ordererOuIdentifier_
: ordererOuIdentifierBuilder_.build();
to_bitField0_ |= 0x00000008;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.msp.FabricNodeOUs) {
return mergeFrom((org.hyperledger.fabric.protos.msp.FabricNodeOUs)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.msp.FabricNodeOUs other) {
if (other == org.hyperledger.fabric.protos.msp.FabricNodeOUs.getDefaultInstance()) return this;
if (other.getEnable() != false) {
setEnable(other.getEnable());
}
if (other.hasClientOuIdentifier()) {
mergeClientOuIdentifier(other.getClientOuIdentifier());
}
if (other.hasPeerOuIdentifier()) {
mergePeerOuIdentifier(other.getPeerOuIdentifier());
}
if (other.hasAdminOuIdentifier()) {
mergeAdminOuIdentifier(other.getAdminOuIdentifier());
}
if (other.hasOrdererOuIdentifier()) {
mergeOrdererOuIdentifier(other.getOrdererOuIdentifier());
}
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 8: {
enable_ = input.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
input.readMessage(
getClientOuIdentifierFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getPeerOuIdentifierFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getAdminOuIdentifierFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getOrdererOuIdentifierFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
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 boolean enable_ ;
/**
*
* If true then an msp identity that does not contain any of the specified OU will be considered invalid.
*
*
* bool enable = 1 [json_name = "enable"];
* @return The enable.
*/
@java.lang.Override
public boolean getEnable() {
return enable_;
}
/**
*
* If true then an msp identity that does not contain any of the specified OU will be considered invalid.
*
*
* bool enable = 1 [json_name = "enable"];
* @param value The enable to set.
* @return This builder for chaining.
*/
public Builder setEnable(boolean value) {
enable_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* If true then an msp identity that does not contain any of the specified OU will be considered invalid.
*
*
* bool enable = 1 [json_name = "enable"];
* @return This builder for chaining.
*/
public Builder clearEnable() {
bitField0_ = (bitField0_ & ~0x00000001);
enable_ = false;
onChanged();
return this;
}
private org.hyperledger.fabric.protos.msp.FabricOUIdentifier clientOuIdentifier_;
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.msp.FabricOUIdentifier, org.hyperledger.fabric.protos.msp.FabricOUIdentifier.Builder, org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder> clientOuIdentifierBuilder_;
/**
*
* OU Identifier of the clients
*
*
* .msp.FabricOUIdentifier client_ou_identifier = 2 [json_name = "clientOuIdentifier"];
* @return Whether the clientOuIdentifier field is set.
*/
public boolean hasClientOuIdentifier() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* OU Identifier of the clients
*
*
* .msp.FabricOUIdentifier client_ou_identifier = 2 [json_name = "clientOuIdentifier"];
* @return The clientOuIdentifier.
*/
public org.hyperledger.fabric.protos.msp.FabricOUIdentifier getClientOuIdentifier() {
if (clientOuIdentifierBuilder_ == null) {
return clientOuIdentifier_ == null ? org.hyperledger.fabric.protos.msp.FabricOUIdentifier.getDefaultInstance() : clientOuIdentifier_;
} else {
return clientOuIdentifierBuilder_.getMessage();
}
}
/**
*
* OU Identifier of the clients
*
*
* .msp.FabricOUIdentifier client_ou_identifier = 2 [json_name = "clientOuIdentifier"];
*/
public Builder setClientOuIdentifier(org.hyperledger.fabric.protos.msp.FabricOUIdentifier value) {
if (clientOuIdentifierBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
clientOuIdentifier_ = value;
} else {
clientOuIdentifierBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* OU Identifier of the clients
*
*
* .msp.FabricOUIdentifier client_ou_identifier = 2 [json_name = "clientOuIdentifier"];
*/
public Builder setClientOuIdentifier(
org.hyperledger.fabric.protos.msp.FabricOUIdentifier.Builder builderForValue) {
if (clientOuIdentifierBuilder_ == null) {
clientOuIdentifier_ = builderForValue.build();
} else {
clientOuIdentifierBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* OU Identifier of the clients
*
*
* .msp.FabricOUIdentifier client_ou_identifier = 2 [json_name = "clientOuIdentifier"];
*/
public Builder mergeClientOuIdentifier(org.hyperledger.fabric.protos.msp.FabricOUIdentifier value) {
if (clientOuIdentifierBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
clientOuIdentifier_ != null &&
clientOuIdentifier_ != org.hyperledger.fabric.protos.msp.FabricOUIdentifier.getDefaultInstance()) {
getClientOuIdentifierBuilder().mergeFrom(value);
} else {
clientOuIdentifier_ = value;
}
} else {
clientOuIdentifierBuilder_.mergeFrom(value);
}
if (clientOuIdentifier_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* OU Identifier of the clients
*
*
* .msp.FabricOUIdentifier client_ou_identifier = 2 [json_name = "clientOuIdentifier"];
*/
public Builder clearClientOuIdentifier() {
bitField0_ = (bitField0_ & ~0x00000002);
clientOuIdentifier_ = null;
if (clientOuIdentifierBuilder_ != null) {
clientOuIdentifierBuilder_.dispose();
clientOuIdentifierBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* OU Identifier of the clients
*
*
* .msp.FabricOUIdentifier client_ou_identifier = 2 [json_name = "clientOuIdentifier"];
*/
public org.hyperledger.fabric.protos.msp.FabricOUIdentifier.Builder getClientOuIdentifierBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getClientOuIdentifierFieldBuilder().getBuilder();
}
/**
*
* OU Identifier of the clients
*
*
* .msp.FabricOUIdentifier client_ou_identifier = 2 [json_name = "clientOuIdentifier"];
*/
public org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder getClientOuIdentifierOrBuilder() {
if (clientOuIdentifierBuilder_ != null) {
return clientOuIdentifierBuilder_.getMessageOrBuilder();
} else {
return clientOuIdentifier_ == null ?
org.hyperledger.fabric.protos.msp.FabricOUIdentifier.getDefaultInstance() : clientOuIdentifier_;
}
}
/**
*
* OU Identifier of the clients
*
*
* .msp.FabricOUIdentifier client_ou_identifier = 2 [json_name = "clientOuIdentifier"];
*/
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.msp.FabricOUIdentifier, org.hyperledger.fabric.protos.msp.FabricOUIdentifier.Builder, org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder>
getClientOuIdentifierFieldBuilder() {
if (clientOuIdentifierBuilder_ == null) {
clientOuIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.msp.FabricOUIdentifier, org.hyperledger.fabric.protos.msp.FabricOUIdentifier.Builder, org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder>(
getClientOuIdentifier(),
getParentForChildren(),
isClean());
clientOuIdentifier_ = null;
}
return clientOuIdentifierBuilder_;
}
private org.hyperledger.fabric.protos.msp.FabricOUIdentifier peerOuIdentifier_;
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.msp.FabricOUIdentifier, org.hyperledger.fabric.protos.msp.FabricOUIdentifier.Builder, org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder> peerOuIdentifierBuilder_;
/**
*
* OU Identifier of the peers
*
*
* .msp.FabricOUIdentifier peer_ou_identifier = 3 [json_name = "peerOuIdentifier"];
* @return Whether the peerOuIdentifier field is set.
*/
public boolean hasPeerOuIdentifier() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* OU Identifier of the peers
*
*
* .msp.FabricOUIdentifier peer_ou_identifier = 3 [json_name = "peerOuIdentifier"];
* @return The peerOuIdentifier.
*/
public org.hyperledger.fabric.protos.msp.FabricOUIdentifier getPeerOuIdentifier() {
if (peerOuIdentifierBuilder_ == null) {
return peerOuIdentifier_ == null ? org.hyperledger.fabric.protos.msp.FabricOUIdentifier.getDefaultInstance() : peerOuIdentifier_;
} else {
return peerOuIdentifierBuilder_.getMessage();
}
}
/**
*
* OU Identifier of the peers
*
*
* .msp.FabricOUIdentifier peer_ou_identifier = 3 [json_name = "peerOuIdentifier"];
*/
public Builder setPeerOuIdentifier(org.hyperledger.fabric.protos.msp.FabricOUIdentifier value) {
if (peerOuIdentifierBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
peerOuIdentifier_ = value;
} else {
peerOuIdentifierBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* OU Identifier of the peers
*
*
* .msp.FabricOUIdentifier peer_ou_identifier = 3 [json_name = "peerOuIdentifier"];
*/
public Builder setPeerOuIdentifier(
org.hyperledger.fabric.protos.msp.FabricOUIdentifier.Builder builderForValue) {
if (peerOuIdentifierBuilder_ == null) {
peerOuIdentifier_ = builderForValue.build();
} else {
peerOuIdentifierBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* OU Identifier of the peers
*
*
* .msp.FabricOUIdentifier peer_ou_identifier = 3 [json_name = "peerOuIdentifier"];
*/
public Builder mergePeerOuIdentifier(org.hyperledger.fabric.protos.msp.FabricOUIdentifier value) {
if (peerOuIdentifierBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
peerOuIdentifier_ != null &&
peerOuIdentifier_ != org.hyperledger.fabric.protos.msp.FabricOUIdentifier.getDefaultInstance()) {
getPeerOuIdentifierBuilder().mergeFrom(value);
} else {
peerOuIdentifier_ = value;
}
} else {
peerOuIdentifierBuilder_.mergeFrom(value);
}
if (peerOuIdentifier_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* OU Identifier of the peers
*
*
* .msp.FabricOUIdentifier peer_ou_identifier = 3 [json_name = "peerOuIdentifier"];
*/
public Builder clearPeerOuIdentifier() {
bitField0_ = (bitField0_ & ~0x00000004);
peerOuIdentifier_ = null;
if (peerOuIdentifierBuilder_ != null) {
peerOuIdentifierBuilder_.dispose();
peerOuIdentifierBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* OU Identifier of the peers
*
*
* .msp.FabricOUIdentifier peer_ou_identifier = 3 [json_name = "peerOuIdentifier"];
*/
public org.hyperledger.fabric.protos.msp.FabricOUIdentifier.Builder getPeerOuIdentifierBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getPeerOuIdentifierFieldBuilder().getBuilder();
}
/**
*
* OU Identifier of the peers
*
*
* .msp.FabricOUIdentifier peer_ou_identifier = 3 [json_name = "peerOuIdentifier"];
*/
public org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder getPeerOuIdentifierOrBuilder() {
if (peerOuIdentifierBuilder_ != null) {
return peerOuIdentifierBuilder_.getMessageOrBuilder();
} else {
return peerOuIdentifier_ == null ?
org.hyperledger.fabric.protos.msp.FabricOUIdentifier.getDefaultInstance() : peerOuIdentifier_;
}
}
/**
*
* OU Identifier of the peers
*
*
* .msp.FabricOUIdentifier peer_ou_identifier = 3 [json_name = "peerOuIdentifier"];
*/
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.msp.FabricOUIdentifier, org.hyperledger.fabric.protos.msp.FabricOUIdentifier.Builder, org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder>
getPeerOuIdentifierFieldBuilder() {
if (peerOuIdentifierBuilder_ == null) {
peerOuIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.msp.FabricOUIdentifier, org.hyperledger.fabric.protos.msp.FabricOUIdentifier.Builder, org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder>(
getPeerOuIdentifier(),
getParentForChildren(),
isClean());
peerOuIdentifier_ = null;
}
return peerOuIdentifierBuilder_;
}
private org.hyperledger.fabric.protos.msp.FabricOUIdentifier adminOuIdentifier_;
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.msp.FabricOUIdentifier, org.hyperledger.fabric.protos.msp.FabricOUIdentifier.Builder, org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder> adminOuIdentifierBuilder_;
/**
*
* OU Identifier of the admins
*
*
* .msp.FabricOUIdentifier admin_ou_identifier = 4 [json_name = "adminOuIdentifier"];
* @return Whether the adminOuIdentifier field is set.
*/
public boolean hasAdminOuIdentifier() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* OU Identifier of the admins
*
*
* .msp.FabricOUIdentifier admin_ou_identifier = 4 [json_name = "adminOuIdentifier"];
* @return The adminOuIdentifier.
*/
public org.hyperledger.fabric.protos.msp.FabricOUIdentifier getAdminOuIdentifier() {
if (adminOuIdentifierBuilder_ == null) {
return adminOuIdentifier_ == null ? org.hyperledger.fabric.protos.msp.FabricOUIdentifier.getDefaultInstance() : adminOuIdentifier_;
} else {
return adminOuIdentifierBuilder_.getMessage();
}
}
/**
*
* OU Identifier of the admins
*
*
* .msp.FabricOUIdentifier admin_ou_identifier = 4 [json_name = "adminOuIdentifier"];
*/
public Builder setAdminOuIdentifier(org.hyperledger.fabric.protos.msp.FabricOUIdentifier value) {
if (adminOuIdentifierBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
adminOuIdentifier_ = value;
} else {
adminOuIdentifierBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* OU Identifier of the admins
*
*
* .msp.FabricOUIdentifier admin_ou_identifier = 4 [json_name = "adminOuIdentifier"];
*/
public Builder setAdminOuIdentifier(
org.hyperledger.fabric.protos.msp.FabricOUIdentifier.Builder builderForValue) {
if (adminOuIdentifierBuilder_ == null) {
adminOuIdentifier_ = builderForValue.build();
} else {
adminOuIdentifierBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* OU Identifier of the admins
*
*
* .msp.FabricOUIdentifier admin_ou_identifier = 4 [json_name = "adminOuIdentifier"];
*/
public Builder mergeAdminOuIdentifier(org.hyperledger.fabric.protos.msp.FabricOUIdentifier value) {
if (adminOuIdentifierBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
adminOuIdentifier_ != null &&
adminOuIdentifier_ != org.hyperledger.fabric.protos.msp.FabricOUIdentifier.getDefaultInstance()) {
getAdminOuIdentifierBuilder().mergeFrom(value);
} else {
adminOuIdentifier_ = value;
}
} else {
adminOuIdentifierBuilder_.mergeFrom(value);
}
if (adminOuIdentifier_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* OU Identifier of the admins
*
*
* .msp.FabricOUIdentifier admin_ou_identifier = 4 [json_name = "adminOuIdentifier"];
*/
public Builder clearAdminOuIdentifier() {
bitField0_ = (bitField0_ & ~0x00000008);
adminOuIdentifier_ = null;
if (adminOuIdentifierBuilder_ != null) {
adminOuIdentifierBuilder_.dispose();
adminOuIdentifierBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* OU Identifier of the admins
*
*
* .msp.FabricOUIdentifier admin_ou_identifier = 4 [json_name = "adminOuIdentifier"];
*/
public org.hyperledger.fabric.protos.msp.FabricOUIdentifier.Builder getAdminOuIdentifierBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getAdminOuIdentifierFieldBuilder().getBuilder();
}
/**
*
* OU Identifier of the admins
*
*
* .msp.FabricOUIdentifier admin_ou_identifier = 4 [json_name = "adminOuIdentifier"];
*/
public org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder getAdminOuIdentifierOrBuilder() {
if (adminOuIdentifierBuilder_ != null) {
return adminOuIdentifierBuilder_.getMessageOrBuilder();
} else {
return adminOuIdentifier_ == null ?
org.hyperledger.fabric.protos.msp.FabricOUIdentifier.getDefaultInstance() : adminOuIdentifier_;
}
}
/**
*
* OU Identifier of the admins
*
*
* .msp.FabricOUIdentifier admin_ou_identifier = 4 [json_name = "adminOuIdentifier"];
*/
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.msp.FabricOUIdentifier, org.hyperledger.fabric.protos.msp.FabricOUIdentifier.Builder, org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder>
getAdminOuIdentifierFieldBuilder() {
if (adminOuIdentifierBuilder_ == null) {
adminOuIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.msp.FabricOUIdentifier, org.hyperledger.fabric.protos.msp.FabricOUIdentifier.Builder, org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder>(
getAdminOuIdentifier(),
getParentForChildren(),
isClean());
adminOuIdentifier_ = null;
}
return adminOuIdentifierBuilder_;
}
private org.hyperledger.fabric.protos.msp.FabricOUIdentifier ordererOuIdentifier_;
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.msp.FabricOUIdentifier, org.hyperledger.fabric.protos.msp.FabricOUIdentifier.Builder, org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder> ordererOuIdentifierBuilder_;
/**
*
* OU Identifier of the orderers
*
*
* .msp.FabricOUIdentifier orderer_ou_identifier = 5 [json_name = "ordererOuIdentifier"];
* @return Whether the ordererOuIdentifier field is set.
*/
public boolean hasOrdererOuIdentifier() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* OU Identifier of the orderers
*
*
* .msp.FabricOUIdentifier orderer_ou_identifier = 5 [json_name = "ordererOuIdentifier"];
* @return The ordererOuIdentifier.
*/
public org.hyperledger.fabric.protos.msp.FabricOUIdentifier getOrdererOuIdentifier() {
if (ordererOuIdentifierBuilder_ == null) {
return ordererOuIdentifier_ == null ? org.hyperledger.fabric.protos.msp.FabricOUIdentifier.getDefaultInstance() : ordererOuIdentifier_;
} else {
return ordererOuIdentifierBuilder_.getMessage();
}
}
/**
*
* OU Identifier of the orderers
*
*
* .msp.FabricOUIdentifier orderer_ou_identifier = 5 [json_name = "ordererOuIdentifier"];
*/
public Builder setOrdererOuIdentifier(org.hyperledger.fabric.protos.msp.FabricOUIdentifier value) {
if (ordererOuIdentifierBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ordererOuIdentifier_ = value;
} else {
ordererOuIdentifierBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* OU Identifier of the orderers
*
*
* .msp.FabricOUIdentifier orderer_ou_identifier = 5 [json_name = "ordererOuIdentifier"];
*/
public Builder setOrdererOuIdentifier(
org.hyperledger.fabric.protos.msp.FabricOUIdentifier.Builder builderForValue) {
if (ordererOuIdentifierBuilder_ == null) {
ordererOuIdentifier_ = builderForValue.build();
} else {
ordererOuIdentifierBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* OU Identifier of the orderers
*
*
* .msp.FabricOUIdentifier orderer_ou_identifier = 5 [json_name = "ordererOuIdentifier"];
*/
public Builder mergeOrdererOuIdentifier(org.hyperledger.fabric.protos.msp.FabricOUIdentifier value) {
if (ordererOuIdentifierBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
ordererOuIdentifier_ != null &&
ordererOuIdentifier_ != org.hyperledger.fabric.protos.msp.FabricOUIdentifier.getDefaultInstance()) {
getOrdererOuIdentifierBuilder().mergeFrom(value);
} else {
ordererOuIdentifier_ = value;
}
} else {
ordererOuIdentifierBuilder_.mergeFrom(value);
}
if (ordererOuIdentifier_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
* OU Identifier of the orderers
*
*
* .msp.FabricOUIdentifier orderer_ou_identifier = 5 [json_name = "ordererOuIdentifier"];
*/
public Builder clearOrdererOuIdentifier() {
bitField0_ = (bitField0_ & ~0x00000010);
ordererOuIdentifier_ = null;
if (ordererOuIdentifierBuilder_ != null) {
ordererOuIdentifierBuilder_.dispose();
ordererOuIdentifierBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* OU Identifier of the orderers
*
*
* .msp.FabricOUIdentifier orderer_ou_identifier = 5 [json_name = "ordererOuIdentifier"];
*/
public org.hyperledger.fabric.protos.msp.FabricOUIdentifier.Builder getOrdererOuIdentifierBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getOrdererOuIdentifierFieldBuilder().getBuilder();
}
/**
*
* OU Identifier of the orderers
*
*
* .msp.FabricOUIdentifier orderer_ou_identifier = 5 [json_name = "ordererOuIdentifier"];
*/
public org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder getOrdererOuIdentifierOrBuilder() {
if (ordererOuIdentifierBuilder_ != null) {
return ordererOuIdentifierBuilder_.getMessageOrBuilder();
} else {
return ordererOuIdentifier_ == null ?
org.hyperledger.fabric.protos.msp.FabricOUIdentifier.getDefaultInstance() : ordererOuIdentifier_;
}
}
/**
*
* OU Identifier of the orderers
*
*
* .msp.FabricOUIdentifier orderer_ou_identifier = 5 [json_name = "ordererOuIdentifier"];
*/
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.msp.FabricOUIdentifier, org.hyperledger.fabric.protos.msp.FabricOUIdentifier.Builder, org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder>
getOrdererOuIdentifierFieldBuilder() {
if (ordererOuIdentifierBuilder_ == null) {
ordererOuIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.msp.FabricOUIdentifier, org.hyperledger.fabric.protos.msp.FabricOUIdentifier.Builder, org.hyperledger.fabric.protos.msp.FabricOUIdentifierOrBuilder>(
getOrdererOuIdentifier(),
getParentForChildren(),
isClean());
ordererOuIdentifier_ = null;
}
return ordererOuIdentifierBuilder_;
}
// @@protoc_insertion_point(builder_scope:msp.FabricNodeOUs)
}
// @@protoc_insertion_point(class_scope:msp.FabricNodeOUs)
private static final org.hyperledger.fabric.protos.msp.FabricNodeOUs DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.msp.FabricNodeOUs();
}
public static org.hyperledger.fabric.protos.msp.FabricNodeOUs getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FabricNodeOUs 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.FabricNodeOUs getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy