org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig 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;
/**
*
* IdemixMSPSIgnerConfig contains the crypto material to set up an idemix signing identity
*
*
* Protobuf type {@code msp.IdemixMSPSignerConfig}
*/
public final class IdemixMSPSignerConfig extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:msp.IdemixMSPSignerConfig)
IdemixMSPSignerConfigOrBuilder {
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= */ "",
IdemixMSPSignerConfig.class.getName());
}
// Use IdemixMSPSignerConfig.newBuilder() to construct.
private IdemixMSPSignerConfig(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private IdemixMSPSignerConfig() {
cred_ = com.google.protobuf.ByteString.EMPTY;
sk_ = com.google.protobuf.ByteString.EMPTY;
organizationalUnitIdentifier_ = "";
enrollmentId_ = "";
credentialRevocationInformation_ = com.google.protobuf.ByteString.EMPTY;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.msp.MSPConfigProto.internal_static_msp_IdemixMSPSignerConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.msp.MSPConfigProto.internal_static_msp_IdemixMSPSignerConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig.class, org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig.Builder.class);
}
public static final int CRED_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString cred_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* cred represents the serialized idemix credential of the default signer
*
*
* bytes cred = 1 [json_name = "cred"];
* @return The cred.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCred() {
return cred_;
}
public static final int SK_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString sk_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* sk is the secret key of the default signer, corresponding to credential Cred
*
*
* bytes sk = 2 [json_name = "sk"];
* @return The sk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSk() {
return sk_;
}
public static final int ORGANIZATIONAL_UNIT_IDENTIFIER_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object organizationalUnitIdentifier_ = "";
/**
*
* organizational_unit_identifier defines the organizational unit the default signer is in
*
*
* string organizational_unit_identifier = 3 [json_name = "organizationalUnitIdentifier"];
* @return The organizationalUnitIdentifier.
*/
@java.lang.Override
public java.lang.String getOrganizationalUnitIdentifier() {
java.lang.Object ref = organizationalUnitIdentifier_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
organizationalUnitIdentifier_ = s;
return s;
}
}
/**
*
* organizational_unit_identifier defines the organizational unit the default signer is in
*
*
* string organizational_unit_identifier = 3 [json_name = "organizationalUnitIdentifier"];
* @return The bytes for organizationalUnitIdentifier.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOrganizationalUnitIdentifierBytes() {
java.lang.Object ref = organizationalUnitIdentifier_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
organizationalUnitIdentifier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ROLE_FIELD_NUMBER = 4;
private int role_ = 0;
/**
*
* role defines whether the default signer is admin, peer, member or client
*
*
* int32 role = 4 [json_name = "role"];
* @return The role.
*/
@java.lang.Override
public int getRole() {
return role_;
}
public static final int ENROLLMENT_ID_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object enrollmentId_ = "";
/**
*
* enrollment_id contains the enrollment id of this signer
*
*
* string enrollment_id = 5 [json_name = "enrollmentId"];
* @return The enrollmentId.
*/
@java.lang.Override
public java.lang.String getEnrollmentId() {
java.lang.Object ref = enrollmentId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
enrollmentId_ = s;
return s;
}
}
/**
*
* enrollment_id contains the enrollment id of this signer
*
*
* string enrollment_id = 5 [json_name = "enrollmentId"];
* @return The bytes for enrollmentId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEnrollmentIdBytes() {
java.lang.Object ref = enrollmentId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
enrollmentId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREDENTIAL_REVOCATION_INFORMATION_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString credentialRevocationInformation_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* credential_revocation_information contains a serialized CredentialRevocationInformation
*
*
* bytes credential_revocation_information = 6 [json_name = "credentialRevocationInformation"];
* @return The credentialRevocationInformation.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCredentialRevocationInformation() {
return credentialRevocationInformation_;
}
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 (!cred_.isEmpty()) {
output.writeBytes(1, cred_);
}
if (!sk_.isEmpty()) {
output.writeBytes(2, sk_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationalUnitIdentifier_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, organizationalUnitIdentifier_);
}
if (role_ != 0) {
output.writeInt32(4, role_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(enrollmentId_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 5, enrollmentId_);
}
if (!credentialRevocationInformation_.isEmpty()) {
output.writeBytes(6, credentialRevocationInformation_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!cred_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, cred_);
}
if (!sk_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, sk_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationalUnitIdentifier_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(3, organizationalUnitIdentifier_);
}
if (role_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, role_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(enrollmentId_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(5, enrollmentId_);
}
if (!credentialRevocationInformation_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, credentialRevocationInformation_);
}
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.IdemixMSPSignerConfig)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig other = (org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig) obj;
if (!getCred()
.equals(other.getCred())) return false;
if (!getSk()
.equals(other.getSk())) return false;
if (!getOrganizationalUnitIdentifier()
.equals(other.getOrganizationalUnitIdentifier())) return false;
if (getRole()
!= other.getRole()) return false;
if (!getEnrollmentId()
.equals(other.getEnrollmentId())) return false;
if (!getCredentialRevocationInformation()
.equals(other.getCredentialRevocationInformation())) 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) + CRED_FIELD_NUMBER;
hash = (53 * hash) + getCred().hashCode();
hash = (37 * hash) + SK_FIELD_NUMBER;
hash = (53 * hash) + getSk().hashCode();
hash = (37 * hash) + ORGANIZATIONAL_UNIT_IDENTIFIER_FIELD_NUMBER;
hash = (53 * hash) + getOrganizationalUnitIdentifier().hashCode();
hash = (37 * hash) + ROLE_FIELD_NUMBER;
hash = (53 * hash) + getRole();
hash = (37 * hash) + ENROLLMENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getEnrollmentId().hashCode();
hash = (37 * hash) + CREDENTIAL_REVOCATION_INFORMATION_FIELD_NUMBER;
hash = (53 * hash) + getCredentialRevocationInformation().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig 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.IdemixMSPSignerConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig 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.IdemixMSPSignerConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig 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.IdemixMSPSignerConfig 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.IdemixMSPSignerConfig 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.IdemixMSPSignerConfig 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;
}
/**
*
* IdemixMSPSIgnerConfig contains the crypto material to set up an idemix signing identity
*
*
* Protobuf type {@code msp.IdemixMSPSignerConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:msp.IdemixMSPSignerConfig)
org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.msp.MSPConfigProto.internal_static_msp_IdemixMSPSignerConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.msp.MSPConfigProto.internal_static_msp_IdemixMSPSignerConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig.class, org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
cred_ = com.google.protobuf.ByteString.EMPTY;
sk_ = com.google.protobuf.ByteString.EMPTY;
organizationalUnitIdentifier_ = "";
role_ = 0;
enrollmentId_ = "";
credentialRevocationInformation_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.msp.MSPConfigProto.internal_static_msp_IdemixMSPSignerConfig_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig build() {
org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig buildPartial() {
org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig result = new org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.cred_ = cred_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.sk_ = sk_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.organizationalUnitIdentifier_ = organizationalUnitIdentifier_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.role_ = role_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.enrollmentId_ = enrollmentId_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.credentialRevocationInformation_ = credentialRevocationInformation_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig) {
return mergeFrom((org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig other) {
if (other == org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig.getDefaultInstance()) return this;
if (other.getCred() != com.google.protobuf.ByteString.EMPTY) {
setCred(other.getCred());
}
if (other.getSk() != com.google.protobuf.ByteString.EMPTY) {
setSk(other.getSk());
}
if (!other.getOrganizationalUnitIdentifier().isEmpty()) {
organizationalUnitIdentifier_ = other.organizationalUnitIdentifier_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.getRole() != 0) {
setRole(other.getRole());
}
if (!other.getEnrollmentId().isEmpty()) {
enrollmentId_ = other.enrollmentId_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.getCredentialRevocationInformation() != com.google.protobuf.ByteString.EMPTY) {
setCredentialRevocationInformation(other.getCredentialRevocationInformation());
}
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: {
cred_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
sk_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
organizationalUnitIdentifier_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
role_ = input.readInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
enrollmentId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
credentialRevocationInformation_ = input.readBytes();
bitField0_ |= 0x00000020;
break;
} // case 50
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 com.google.protobuf.ByteString cred_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* cred represents the serialized idemix credential of the default signer
*
*
* bytes cred = 1 [json_name = "cred"];
* @return The cred.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCred() {
return cred_;
}
/**
*
* cred represents the serialized idemix credential of the default signer
*
*
* bytes cred = 1 [json_name = "cred"];
* @param value The cred to set.
* @return This builder for chaining.
*/
public Builder setCred(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
cred_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* cred represents the serialized idemix credential of the default signer
*
*
* bytes cred = 1 [json_name = "cred"];
* @return This builder for chaining.
*/
public Builder clearCred() {
bitField0_ = (bitField0_ & ~0x00000001);
cred_ = getDefaultInstance().getCred();
onChanged();
return this;
}
private com.google.protobuf.ByteString sk_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* sk is the secret key of the default signer, corresponding to credential Cred
*
*
* bytes sk = 2 [json_name = "sk"];
* @return The sk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSk() {
return sk_;
}
/**
*
* sk is the secret key of the default signer, corresponding to credential Cred
*
*
* bytes sk = 2 [json_name = "sk"];
* @param value The sk to set.
* @return This builder for chaining.
*/
public Builder setSk(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
sk_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* sk is the secret key of the default signer, corresponding to credential Cred
*
*
* bytes sk = 2 [json_name = "sk"];
* @return This builder for chaining.
*/
public Builder clearSk() {
bitField0_ = (bitField0_ & ~0x00000002);
sk_ = getDefaultInstance().getSk();
onChanged();
return this;
}
private java.lang.Object organizationalUnitIdentifier_ = "";
/**
*
* organizational_unit_identifier defines the organizational unit the default signer is in
*
*
* string organizational_unit_identifier = 3 [json_name = "organizationalUnitIdentifier"];
* @return The organizationalUnitIdentifier.
*/
public java.lang.String getOrganizationalUnitIdentifier() {
java.lang.Object ref = organizationalUnitIdentifier_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
organizationalUnitIdentifier_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* organizational_unit_identifier defines the organizational unit the default signer is in
*
*
* string organizational_unit_identifier = 3 [json_name = "organizationalUnitIdentifier"];
* @return The bytes for organizationalUnitIdentifier.
*/
public com.google.protobuf.ByteString
getOrganizationalUnitIdentifierBytes() {
java.lang.Object ref = organizationalUnitIdentifier_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
organizationalUnitIdentifier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* organizational_unit_identifier defines the organizational unit the default signer is in
*
*
* string organizational_unit_identifier = 3 [json_name = "organizationalUnitIdentifier"];
* @param value The organizationalUnitIdentifier to set.
* @return This builder for chaining.
*/
public Builder setOrganizationalUnitIdentifier(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
organizationalUnitIdentifier_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* organizational_unit_identifier defines the organizational unit the default signer is in
*
*
* string organizational_unit_identifier = 3 [json_name = "organizationalUnitIdentifier"];
* @return This builder for chaining.
*/
public Builder clearOrganizationalUnitIdentifier() {
organizationalUnitIdentifier_ = getDefaultInstance().getOrganizationalUnitIdentifier();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* organizational_unit_identifier defines the organizational unit the default signer is in
*
*
* string organizational_unit_identifier = 3 [json_name = "organizationalUnitIdentifier"];
* @param value The bytes for organizationalUnitIdentifier to set.
* @return This builder for chaining.
*/
public Builder setOrganizationalUnitIdentifierBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
organizationalUnitIdentifier_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private int role_ ;
/**
*
* role defines whether the default signer is admin, peer, member or client
*
*
* int32 role = 4 [json_name = "role"];
* @return The role.
*/
@java.lang.Override
public int getRole() {
return role_;
}
/**
*
* role defines whether the default signer is admin, peer, member or client
*
*
* int32 role = 4 [json_name = "role"];
* @param value The role to set.
* @return This builder for chaining.
*/
public Builder setRole(int value) {
role_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* role defines whether the default signer is admin, peer, member or client
*
*
* int32 role = 4 [json_name = "role"];
* @return This builder for chaining.
*/
public Builder clearRole() {
bitField0_ = (bitField0_ & ~0x00000008);
role_ = 0;
onChanged();
return this;
}
private java.lang.Object enrollmentId_ = "";
/**
*
* enrollment_id contains the enrollment id of this signer
*
*
* string enrollment_id = 5 [json_name = "enrollmentId"];
* @return The enrollmentId.
*/
public java.lang.String getEnrollmentId() {
java.lang.Object ref = enrollmentId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
enrollmentId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* enrollment_id contains the enrollment id of this signer
*
*
* string enrollment_id = 5 [json_name = "enrollmentId"];
* @return The bytes for enrollmentId.
*/
public com.google.protobuf.ByteString
getEnrollmentIdBytes() {
java.lang.Object ref = enrollmentId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
enrollmentId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* enrollment_id contains the enrollment id of this signer
*
*
* string enrollment_id = 5 [json_name = "enrollmentId"];
* @param value The enrollmentId to set.
* @return This builder for chaining.
*/
public Builder setEnrollmentId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
enrollmentId_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* enrollment_id contains the enrollment id of this signer
*
*
* string enrollment_id = 5 [json_name = "enrollmentId"];
* @return This builder for chaining.
*/
public Builder clearEnrollmentId() {
enrollmentId_ = getDefaultInstance().getEnrollmentId();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* enrollment_id contains the enrollment id of this signer
*
*
* string enrollment_id = 5 [json_name = "enrollmentId"];
* @param value The bytes for enrollmentId to set.
* @return This builder for chaining.
*/
public Builder setEnrollmentIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
enrollmentId_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private com.google.protobuf.ByteString credentialRevocationInformation_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* credential_revocation_information contains a serialized CredentialRevocationInformation
*
*
* bytes credential_revocation_information = 6 [json_name = "credentialRevocationInformation"];
* @return The credentialRevocationInformation.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCredentialRevocationInformation() {
return credentialRevocationInformation_;
}
/**
*
* credential_revocation_information contains a serialized CredentialRevocationInformation
*
*
* bytes credential_revocation_information = 6 [json_name = "credentialRevocationInformation"];
* @param value The credentialRevocationInformation to set.
* @return This builder for chaining.
*/
public Builder setCredentialRevocationInformation(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
credentialRevocationInformation_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* credential_revocation_information contains a serialized CredentialRevocationInformation
*
*
* bytes credential_revocation_information = 6 [json_name = "credentialRevocationInformation"];
* @return This builder for chaining.
*/
public Builder clearCredentialRevocationInformation() {
bitField0_ = (bitField0_ & ~0x00000020);
credentialRevocationInformation_ = getDefaultInstance().getCredentialRevocationInformation();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:msp.IdemixMSPSignerConfig)
}
// @@protoc_insertion_point(class_scope:msp.IdemixMSPSignerConfig)
private static final org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig();
}
public static org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IdemixMSPSignerConfig 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.IdemixMSPSignerConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy