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

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

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: msp/msp_config.proto

package org.hyperledger.fabric.protos.msp;

/**
 * 
 * IdemixMSPConfig collects all the configuration information for
 * an Idemix MSP.
 * 
* * Protobuf type {@code msp.IdemixMSPConfig} */ public final class IdemixMSPConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:msp.IdemixMSPConfig) IdemixMSPConfigOrBuilder { private static final long serialVersionUID = 0L; // Use IdemixMSPConfig.newBuilder() to construct. private IdemixMSPConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IdemixMSPConfig() { name_ = ""; ipk_ = com.google.protobuf.ByteString.EMPTY; revocationPk_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new IdemixMSPConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IdemixMSPConfig( 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: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { ipk_ = input.readBytes(); break; } case 26: { org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig.Builder subBuilder = null; if (signer_ != null) { subBuilder = signer_.toBuilder(); } signer_ = input.readMessage(org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(signer_); signer_ = subBuilder.buildPartial(); } break; } case 34: { revocationPk_ = input.readBytes(); break; } case 40: { epoch_ = input.readInt64(); break; } 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_IdemixMSPConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.msp.MSPConfigProto.internal_static_msp_IdemixMSPConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.msp.IdemixMSPConfig.class, org.hyperledger.fabric.protos.msp.IdemixMSPConfig.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
   * Name holds the identifier of the MSP
   * 
* * string name = 1 [json_name = "name"]; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
   * Name holds the identifier of the MSP
   * 
* * string name = 1 [json_name = "name"]; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IPK_FIELD_NUMBER = 2; private com.google.protobuf.ByteString ipk_; /** *
   * ipk represents the (serialized) issuer public key
   * 
* * bytes ipk = 2 [json_name = "ipk"]; * @return The ipk. */ @java.lang.Override public com.google.protobuf.ByteString getIpk() { return ipk_; } public static final int SIGNER_FIELD_NUMBER = 3; private org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig signer_; /** *
   * signer may contain crypto material to configure a default signer
   * 
* * .msp.IdemixMSPSignerConfig signer = 3 [json_name = "signer"]; * @return Whether the signer field is set. */ @java.lang.Override public boolean hasSigner() { return signer_ != null; } /** *
   * signer may contain crypto material to configure a default signer
   * 
* * .msp.IdemixMSPSignerConfig signer = 3 [json_name = "signer"]; * @return The signer. */ @java.lang.Override public org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig getSigner() { return signer_ == null ? org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig.getDefaultInstance() : signer_; } /** *
   * signer may contain crypto material to configure a default signer
   * 
* * .msp.IdemixMSPSignerConfig signer = 3 [json_name = "signer"]; */ @java.lang.Override public org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfigOrBuilder getSignerOrBuilder() { return getSigner(); } public static final int REVOCATION_PK_FIELD_NUMBER = 4; private com.google.protobuf.ByteString revocationPk_; /** *
   * revocation_pk is the public key used for revocation of credentials
   * 
* * bytes revocation_pk = 4 [json_name = "revocationPk"]; * @return The revocationPk. */ @java.lang.Override public com.google.protobuf.ByteString getRevocationPk() { return revocationPk_; } public static final int EPOCH_FIELD_NUMBER = 5; private long epoch_; /** *
   * epoch represents the current epoch (time interval) used for revocation
   * 
* * int64 epoch = 5 [json_name = "epoch"]; * @return The epoch. */ @java.lang.Override public long getEpoch() { return epoch_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!ipk_.isEmpty()) { output.writeBytes(2, ipk_); } if (signer_ != null) { output.writeMessage(3, getSigner()); } if (!revocationPk_.isEmpty()) { output.writeBytes(4, revocationPk_); } if (epoch_ != 0L) { output.writeInt64(5, epoch_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!ipk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, ipk_); } if (signer_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSigner()); } if (!revocationPk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, revocationPk_); } if (epoch_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, epoch_); } 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.IdemixMSPConfig)) { return super.equals(obj); } org.hyperledger.fabric.protos.msp.IdemixMSPConfig other = (org.hyperledger.fabric.protos.msp.IdemixMSPConfig) obj; if (!getName() .equals(other.getName())) return false; if (!getIpk() .equals(other.getIpk())) return false; if (hasSigner() != other.hasSigner()) return false; if (hasSigner()) { if (!getSigner() .equals(other.getSigner())) return false; } if (!getRevocationPk() .equals(other.getRevocationPk())) return false; if (getEpoch() != other.getEpoch()) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + IPK_FIELD_NUMBER; hash = (53 * hash) + getIpk().hashCode(); if (hasSigner()) { hash = (37 * hash) + SIGNER_FIELD_NUMBER; hash = (53 * hash) + getSigner().hashCode(); } hash = (37 * hash) + REVOCATION_PK_FIELD_NUMBER; hash = (53 * hash) + getRevocationPk().hashCode(); hash = (37 * hash) + EPOCH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEpoch()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.msp.IdemixMSPConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.msp.IdemixMSPConfig 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.IdemixMSPConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.msp.IdemixMSPConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.msp.IdemixMSPConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.msp.IdemixMSPConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.msp.IdemixMSPConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.IdemixMSPConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.msp.IdemixMSPConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.IdemixMSPConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.msp.IdemixMSPConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.msp.IdemixMSPConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @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.IdemixMSPConfig 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; } /** *
   * IdemixMSPConfig collects all the configuration information for
   * an Idemix MSP.
   * 
* * Protobuf type {@code msp.IdemixMSPConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:msp.IdemixMSPConfig) org.hyperledger.fabric.protos.msp.IdemixMSPConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.msp.MSPConfigProto.internal_static_msp_IdemixMSPConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.msp.MSPConfigProto.internal_static_msp_IdemixMSPConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.msp.IdemixMSPConfig.class, org.hyperledger.fabric.protos.msp.IdemixMSPConfig.Builder.class); } // Construct using org.hyperledger.fabric.protos.msp.IdemixMSPConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; ipk_ = com.google.protobuf.ByteString.EMPTY; if (signerBuilder_ == null) { signer_ = null; } else { signer_ = null; signerBuilder_ = null; } revocationPk_ = com.google.protobuf.ByteString.EMPTY; epoch_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.msp.MSPConfigProto.internal_static_msp_IdemixMSPConfig_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.msp.IdemixMSPConfig getDefaultInstanceForType() { return org.hyperledger.fabric.protos.msp.IdemixMSPConfig.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.msp.IdemixMSPConfig build() { org.hyperledger.fabric.protos.msp.IdemixMSPConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.msp.IdemixMSPConfig buildPartial() { org.hyperledger.fabric.protos.msp.IdemixMSPConfig result = new org.hyperledger.fabric.protos.msp.IdemixMSPConfig(this); result.name_ = name_; result.ipk_ = ipk_; if (signerBuilder_ == null) { result.signer_ = signer_; } else { result.signer_ = signerBuilder_.build(); } result.revocationPk_ = revocationPk_; result.epoch_ = epoch_; onBuilt(); return result; } @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.IdemixMSPConfig) { return mergeFrom((org.hyperledger.fabric.protos.msp.IdemixMSPConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.msp.IdemixMSPConfig other) { if (other == org.hyperledger.fabric.protos.msp.IdemixMSPConfig.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getIpk() != com.google.protobuf.ByteString.EMPTY) { setIpk(other.getIpk()); } if (other.hasSigner()) { mergeSigner(other.getSigner()); } if (other.getRevocationPk() != com.google.protobuf.ByteString.EMPTY) { setRevocationPk(other.getRevocationPk()); } if (other.getEpoch() != 0L) { setEpoch(other.getEpoch()); } 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.IdemixMSPConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.msp.IdemixMSPConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** *
     * Name holds the identifier of the MSP
     * 
* * string name = 1 [json_name = "name"]; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Name holds the identifier of the MSP
     * 
* * string name = 1 [json_name = "name"]; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Name holds the identifier of the MSP
     * 
* * string name = 1 [json_name = "name"]; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
     * Name holds the identifier of the MSP
     * 
* * string name = 1 [json_name = "name"]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * Name holds the identifier of the MSP
     * 
* * string name = 1 [json_name = "name"]; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private com.google.protobuf.ByteString ipk_ = com.google.protobuf.ByteString.EMPTY; /** *
     * ipk represents the (serialized) issuer public key
     * 
* * bytes ipk = 2 [json_name = "ipk"]; * @return The ipk. */ @java.lang.Override public com.google.protobuf.ByteString getIpk() { return ipk_; } /** *
     * ipk represents the (serialized) issuer public key
     * 
* * bytes ipk = 2 [json_name = "ipk"]; * @param value The ipk to set. * @return This builder for chaining. */ public Builder setIpk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ipk_ = value; onChanged(); return this; } /** *
     * ipk represents the (serialized) issuer public key
     * 
* * bytes ipk = 2 [json_name = "ipk"]; * @return This builder for chaining. */ public Builder clearIpk() { ipk_ = getDefaultInstance().getIpk(); onChanged(); return this; } private org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig signer_; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig, org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig.Builder, org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfigOrBuilder> signerBuilder_; /** *
     * signer may contain crypto material to configure a default signer
     * 
* * .msp.IdemixMSPSignerConfig signer = 3 [json_name = "signer"]; * @return Whether the signer field is set. */ public boolean hasSigner() { return signerBuilder_ != null || signer_ != null; } /** *
     * signer may contain crypto material to configure a default signer
     * 
* * .msp.IdemixMSPSignerConfig signer = 3 [json_name = "signer"]; * @return The signer. */ public org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig getSigner() { if (signerBuilder_ == null) { return signer_ == null ? org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig.getDefaultInstance() : signer_; } else { return signerBuilder_.getMessage(); } } /** *
     * signer may contain crypto material to configure a default signer
     * 
* * .msp.IdemixMSPSignerConfig signer = 3 [json_name = "signer"]; */ public Builder setSigner(org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig value) { if (signerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } signer_ = value; onChanged(); } else { signerBuilder_.setMessage(value); } return this; } /** *
     * signer may contain crypto material to configure a default signer
     * 
* * .msp.IdemixMSPSignerConfig signer = 3 [json_name = "signer"]; */ public Builder setSigner( org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig.Builder builderForValue) { if (signerBuilder_ == null) { signer_ = builderForValue.build(); onChanged(); } else { signerBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * signer may contain crypto material to configure a default signer
     * 
* * .msp.IdemixMSPSignerConfig signer = 3 [json_name = "signer"]; */ public Builder mergeSigner(org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig value) { if (signerBuilder_ == null) { if (signer_ != null) { signer_ = org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig.newBuilder(signer_).mergeFrom(value).buildPartial(); } else { signer_ = value; } onChanged(); } else { signerBuilder_.mergeFrom(value); } return this; } /** *
     * signer may contain crypto material to configure a default signer
     * 
* * .msp.IdemixMSPSignerConfig signer = 3 [json_name = "signer"]; */ public Builder clearSigner() { if (signerBuilder_ == null) { signer_ = null; onChanged(); } else { signer_ = null; signerBuilder_ = null; } return this; } /** *
     * signer may contain crypto material to configure a default signer
     * 
* * .msp.IdemixMSPSignerConfig signer = 3 [json_name = "signer"]; */ public org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig.Builder getSignerBuilder() { onChanged(); return getSignerFieldBuilder().getBuilder(); } /** *
     * signer may contain crypto material to configure a default signer
     * 
* * .msp.IdemixMSPSignerConfig signer = 3 [json_name = "signer"]; */ public org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfigOrBuilder getSignerOrBuilder() { if (signerBuilder_ != null) { return signerBuilder_.getMessageOrBuilder(); } else { return signer_ == null ? org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig.getDefaultInstance() : signer_; } } /** *
     * signer may contain crypto material to configure a default signer
     * 
* * .msp.IdemixMSPSignerConfig signer = 3 [json_name = "signer"]; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig, org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig.Builder, org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfigOrBuilder> getSignerFieldBuilder() { if (signerBuilder_ == null) { signerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig, org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig.Builder, org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfigOrBuilder>( getSigner(), getParentForChildren(), isClean()); signer_ = null; } return signerBuilder_; } private com.google.protobuf.ByteString revocationPk_ = com.google.protobuf.ByteString.EMPTY; /** *
     * revocation_pk is the public key used for revocation of credentials
     * 
* * bytes revocation_pk = 4 [json_name = "revocationPk"]; * @return The revocationPk. */ @java.lang.Override public com.google.protobuf.ByteString getRevocationPk() { return revocationPk_; } /** *
     * revocation_pk is the public key used for revocation of credentials
     * 
* * bytes revocation_pk = 4 [json_name = "revocationPk"]; * @param value The revocationPk to set. * @return This builder for chaining. */ public Builder setRevocationPk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } revocationPk_ = value; onChanged(); return this; } /** *
     * revocation_pk is the public key used for revocation of credentials
     * 
* * bytes revocation_pk = 4 [json_name = "revocationPk"]; * @return This builder for chaining. */ public Builder clearRevocationPk() { revocationPk_ = getDefaultInstance().getRevocationPk(); onChanged(); return this; } private long epoch_ ; /** *
     * epoch represents the current epoch (time interval) used for revocation
     * 
* * int64 epoch = 5 [json_name = "epoch"]; * @return The epoch. */ @java.lang.Override public long getEpoch() { return epoch_; } /** *
     * epoch represents the current epoch (time interval) used for revocation
     * 
* * int64 epoch = 5 [json_name = "epoch"]; * @param value The epoch to set. * @return This builder for chaining. */ public Builder setEpoch(long value) { epoch_ = value; onChanged(); return this; } /** *
     * epoch represents the current epoch (time interval) used for revocation
     * 
* * int64 epoch = 5 [json_name = "epoch"]; * @return This builder for chaining. */ public Builder clearEpoch() { epoch_ = 0L; 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.IdemixMSPConfig) } // @@protoc_insertion_point(class_scope:msp.IdemixMSPConfig) private static final org.hyperledger.fabric.protos.msp.IdemixMSPConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.msp.IdemixMSPConfig(); } public static org.hyperledger.fabric.protos.msp.IdemixMSPConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IdemixMSPConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IdemixMSPConfig(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.msp.IdemixMSPConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy