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!
// NO CHECKED-IN PROTOBUF GENCODE
// source: msp/msp_config.proto
// Protobuf Java Version: 4.28.2

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.GeneratedMessage implements // @@protoc_insertion_point(message_implements:msp.IdemixMSPConfig) IdemixMSPConfigOrBuilder { 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= */ "", IdemixMSPConfig.class.getName()); } // Use IdemixMSPConfig.newBuilder() to construct. private IdemixMSPConfig(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private IdemixMSPConfig() { name_ = ""; ipk_ = com.google.protobuf.ByteString.EMPTY; revocationPk_ = com.google.protobuf.ByteString.EMPTY; } 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.GeneratedMessage.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); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
   * Name holds the identifier of the MSP
   * 
* * 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_ = 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_; } 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 ((bitField0_ & 0x00000001) != 0); } /** *
   * 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 signer_ == null ? org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig.getDefaultInstance() : signer_; } public static final int REVOCATION_PK_FIELD_NUMBER = 4; 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_; } public static final int EPOCH_FIELD_NUMBER = 5; private long epoch_ = 0L; /** *
   * 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.GeneratedMessage.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } if (!ipk_.isEmpty()) { output.writeBytes(2, ipk_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getSigner()); } if (!revocationPk_.isEmpty()) { output.writeBytes(4, revocationPk_); } if (epoch_ != 0L) { output.writeInt64(5, epoch_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } if (!ipk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, ipk_); } if (((bitField0_ & 0x00000001) != 0)) { 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 += 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.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); 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) + getUnknownFields().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.GeneratedMessage .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.GeneratedMessage .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.GeneratedMessage .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.GeneratedMessage .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.GeneratedMessage .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.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.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getSignerFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; ipk_ = com.google.protobuf.ByteString.EMPTY; signer_ = null; if (signerBuilder_ != null) { signerBuilder_.dispose(); 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.hyperledger.fabric.protos.msp.IdemixMSPConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.ipk_ = ipk_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.signer_ = signerBuilder_ == null ? signer_ : signerBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.revocationPk_ = revocationPk_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.epoch_ = epoch_; } result.bitField0_ |= to_bitField0_; } @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_; bitField0_ |= 0x00000001; 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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { ipk_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getSignerFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { revocationPk_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 case 40: { epoch_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
     * Name holds the identifier of the MSP
     * 
* * 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; bitField0_ |= 0x00000001; 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(); bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000001; 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * ipk represents the (serialized) issuer public key
     * 
* * bytes ipk = 2 [json_name = "ipk"]; * @return This builder for chaining. */ public Builder clearIpk() { bitField0_ = (bitField0_ & ~0x00000002); ipk_ = getDefaultInstance().getIpk(); onChanged(); return this; } private org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig signer_; private com.google.protobuf.SingleFieldBuilder< 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 ((bitField0_ & 0x00000004) != 0); } /** *
     * 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; } else { signerBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { signerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); 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 (((bitField0_ & 0x00000004) != 0) && signer_ != null && signer_ != org.hyperledger.fabric.protos.msp.IdemixMSPSignerConfig.getDefaultInstance()) { getSignerBuilder().mergeFrom(value); } else { signer_ = value; } } else { signerBuilder_.mergeFrom(value); } if (signer_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     * signer may contain crypto material to configure a default signer
     * 
* * .msp.IdemixMSPSignerConfig signer = 3 [json_name = "signer"]; */ public Builder clearSigner() { bitField0_ = (bitField0_ & ~0x00000004); signer_ = null; if (signerBuilder_ != null) { signerBuilder_.dispose(); signerBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000004; 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.SingleFieldBuilder< 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.SingleFieldBuilder< 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; bitField0_ |= 0x00000008; 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() { bitField0_ = (bitField0_ & ~0x00000008); 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; bitField0_ |= 0x00000010; 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() { bitField0_ = (bitField0_ & ~0x00000010); epoch_ = 0L; onChanged(); return this; } // @@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 { 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.IdemixMSPConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy