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

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

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

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.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:msp.IdemixMSPSignerConfig) IdemixMSPSignerConfigOrBuilder { private static final long serialVersionUID = 0L; // Use IdemixMSPSignerConfig.newBuilder() to construct. private IdemixMSPSignerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IdemixMSPSignerConfig() { cred_ = com.google.protobuf.ByteString.EMPTY; sk_ = com.google.protobuf.ByteString.EMPTY; organizationalUnitIdentifier_ = ""; enrollmentId_ = ""; credentialRevocationInformation_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new IdemixMSPSignerConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IdemixMSPSignerConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { cred_ = input.readBytes(); break; } case 18: { sk_ = input.readBytes(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); organizationalUnitIdentifier_ = s; break; } case 32: { role_ = input.readInt32(); break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); enrollmentId_ = s; break; } case 50: { credentialRevocationInformation_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.msp.MSPConfigProto.internal_static_msp_IdemixMSPSignerConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.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_; /** *
   * 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_; /** *
   * 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; 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_; /** *
   * 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; 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_; /** *
   * 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.GeneratedMessageV3.isStringEmpty(organizationalUnitIdentifier_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, organizationalUnitIdentifier_); } if (role_ != 0) { output.writeInt32(4, role_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(enrollmentId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, enrollmentId_); } if (!credentialRevocationInformation_.isEmpty()) { output.writeBytes(6, credentialRevocationInformation_); } unknownFields.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.GeneratedMessageV3.isStringEmpty(organizationalUnitIdentifier_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, organizationalUnitIdentifier_); } if (role_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, role_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(enrollmentId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, enrollmentId_); } if (!credentialRevocationInformation_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, credentialRevocationInformation_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CRED_FIELD_NUMBER; hash = (53 * hash) + getCred().hashCode(); hash = (37 * hash) + SK_FIELD_NUMBER; hash = (53 * hash) + getSk().hashCode(); hash = (37 * hash) + ORGANIZATIONAL_UNIT_IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getOrganizationalUnitIdentifier().hashCode(); hash = (37 * hash) + ROLE_FIELD_NUMBER; hash = (53 * hash) + getRole(); hash = (37 * hash) + ENROLLMENT_ID_FIELD_NUMBER; hash = (53 * hash) + getEnrollmentId().hashCode(); hash = (37 * hash) + CREDENTIAL_REVOCATION_INFORMATION_FIELD_NUMBER; hash = (53 * hash) + getCredentialRevocationInformation().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.msp.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.GeneratedMessageV3 .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.GeneratedMessageV3 .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.GeneratedMessageV3 .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.GeneratedMessageV3 .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.GeneratedMessageV3 .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.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.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.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * IdemixMSPSIgnerConfig contains the crypto material to set up an idemix signing identity
   * 
* * Protobuf type {@code msp.IdemixMSPSignerConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:msp.IdemixMSPSignerConfig) org.hyperledger.fabric.protos.msp.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.GeneratedMessageV3.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() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); 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); result.cred_ = cred_; result.sk_ = sk_; result.organizationalUnitIdentifier_ = organizationalUnitIdentifier_; result.role_ = role_; result.enrollmentId_ = enrollmentId_; result.credentialRevocationInformation_ = credentialRevocationInformation_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.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_; onChanged(); } if (other.getRole() != 0) { setRole(other.getRole()); } if (!other.getEnrollmentId().isEmpty()) { enrollmentId_ = other.enrollmentId_; onChanged(); } if (other.getCredentialRevocationInformation() != com.google.protobuf.ByteString.EMPTY) { setCredentialRevocationInformation(other.getCredentialRevocationInformation()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString cred_ = com.google.protobuf.ByteString.EMPTY; /** *
     * cred represents the serialized idemix credential of the default signer
     * 
* * 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; 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() { 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; 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() { 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; 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(); 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; 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; 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() { 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; 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(); 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; 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; 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() { credentialRevocationInformation_ = getDefaultInstance().getCredentialRevocationInformation(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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 { return new IdemixMSPSignerConfig(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy