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

org.hyperledger.fabric.protos.idemix.Idemix Maven / Gradle / Ivy

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

package org.hyperledger.fabric.protos.idemix;

public final class Idemix {
  private Idemix() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface ECPOrBuilder extends
      // @@protoc_insertion_point(interface_extends:ECP)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional bytes x = 1;
     */
    com.google.protobuf.ByteString getX();

    /**
     * optional bytes y = 2;
     */
    com.google.protobuf.ByteString getY();
  }
  /**
   * 
   * ECP is an elliptic curve point specified by its coordinates
   * ECP corresponds to an element of the first group (G1)
   * 
* * Protobuf type {@code ECP} */ public static final class ECP extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ECP) ECPOrBuilder { // Use ECP.newBuilder() to construct. private ECP(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ECP() { x_ = com.google.protobuf.ByteString.EMPTY; y_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ECP( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { x_ = input.readBytes(); break; } case 18: { y_ = input.readBytes(); 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_ECP_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_ECP_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.ECP.class, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder.class); } public static final int X_FIELD_NUMBER = 1; private com.google.protobuf.ByteString x_; /** * optional bytes x = 1; */ public com.google.protobuf.ByteString getX() { return x_; } public static final int Y_FIELD_NUMBER = 2; private com.google.protobuf.ByteString y_; /** * optional bytes y = 2; */ public com.google.protobuf.ByteString getY() { return y_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!x_.isEmpty()) { output.writeBytes(1, x_); } if (!y_.isEmpty()) { output.writeBytes(2, y_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!x_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, x_); } if (!y_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, y_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.ECP)) { return super.equals(obj); } org.hyperledger.fabric.protos.idemix.Idemix.ECP other = (org.hyperledger.fabric.protos.idemix.Idemix.ECP) obj; boolean result = true; result = result && getX() .equals(other.getX()); result = result && getY() .equals(other.getY()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + X_FIELD_NUMBER; hash = (53 * hash) + getX().hashCode(); hash = (37 * hash) + Y_FIELD_NUMBER; hash = (53 * hash) + getY().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.idemix.Idemix.ECP parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.ECP 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.idemix.Idemix.ECP parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.ECP parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.idemix.Idemix.ECP parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.ECP 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.idemix.Idemix.ECP parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.ECP 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.idemix.Idemix.ECP parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.ECP parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.idemix.Idemix.ECP prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     * ECP is an elliptic curve point specified by its coordinates
     * ECP corresponds to an element of the first group (G1)
     * 
* * Protobuf type {@code ECP} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ECP) org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_ECP_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_ECP_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.ECP.class, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder.class); } // Construct using org.hyperledger.fabric.protos.idemix.Idemix.ECP.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); x_ = com.google.protobuf.ByteString.EMPTY; y_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_ECP_descriptor; } public org.hyperledger.fabric.protos.idemix.Idemix.ECP getDefaultInstanceForType() { return org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance(); } public org.hyperledger.fabric.protos.idemix.Idemix.ECP build() { org.hyperledger.fabric.protos.idemix.Idemix.ECP result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.idemix.Idemix.ECP buildPartial() { org.hyperledger.fabric.protos.idemix.Idemix.ECP result = new org.hyperledger.fabric.protos.idemix.Idemix.ECP(this); result.x_ = x_; result.y_ = y_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.idemix.Idemix.ECP) { return mergeFrom((org.hyperledger.fabric.protos.idemix.Idemix.ECP)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.idemix.Idemix.ECP other) { if (other == org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance()) return this; if (other.getX() != com.google.protobuf.ByteString.EMPTY) { setX(other.getX()); } if (other.getY() != com.google.protobuf.ByteString.EMPTY) { setY(other.getY()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.idemix.Idemix.ECP parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.idemix.Idemix.ECP) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString x_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes x = 1; */ public com.google.protobuf.ByteString getX() { return x_; } /** * optional bytes x = 1; */ public Builder setX(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } x_ = value; onChanged(); return this; } /** * optional bytes x = 1; */ public Builder clearX() { x_ = getDefaultInstance().getX(); onChanged(); return this; } private com.google.protobuf.ByteString y_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes y = 2; */ public com.google.protobuf.ByteString getY() { return y_; } /** * optional bytes y = 2; */ public Builder setY(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } y_ = value; onChanged(); return this; } /** * optional bytes y = 2; */ public Builder clearY() { y_ = getDefaultInstance().getY(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:ECP) } // @@protoc_insertion_point(class_scope:ECP) private static final org.hyperledger.fabric.protos.idemix.Idemix.ECP DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.idemix.Idemix.ECP(); } public static org.hyperledger.fabric.protos.idemix.Idemix.ECP getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ECP parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ECP(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.idemix.Idemix.ECP getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ECP2OrBuilder extends // @@protoc_insertion_point(interface_extends:ECP2) com.google.protobuf.MessageOrBuilder { /** * optional bytes xa = 1; */ com.google.protobuf.ByteString getXa(); /** * optional bytes xb = 2; */ com.google.protobuf.ByteString getXb(); /** * optional bytes ya = 3; */ com.google.protobuf.ByteString getYa(); /** * optional bytes yb = 4; */ com.google.protobuf.ByteString getYb(); } /** *
   * ECP2 is an elliptic curve point specified by its coordinates
   * ECP2 corresponds to an element of the second group (G2)
   * 
* * Protobuf type {@code ECP2} */ public static final class ECP2 extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ECP2) ECP2OrBuilder { // Use ECP2.newBuilder() to construct. private ECP2(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ECP2() { xa_ = com.google.protobuf.ByteString.EMPTY; xb_ = com.google.protobuf.ByteString.EMPTY; ya_ = com.google.protobuf.ByteString.EMPTY; yb_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ECP2( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { xa_ = input.readBytes(); break; } case 18: { xb_ = input.readBytes(); break; } case 26: { ya_ = input.readBytes(); break; } case 34: { yb_ = input.readBytes(); 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_ECP2_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_ECP2_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.ECP2.class, org.hyperledger.fabric.protos.idemix.Idemix.ECP2.Builder.class); } public static final int XA_FIELD_NUMBER = 1; private com.google.protobuf.ByteString xa_; /** * optional bytes xa = 1; */ public com.google.protobuf.ByteString getXa() { return xa_; } public static final int XB_FIELD_NUMBER = 2; private com.google.protobuf.ByteString xb_; /** * optional bytes xb = 2; */ public com.google.protobuf.ByteString getXb() { return xb_; } public static final int YA_FIELD_NUMBER = 3; private com.google.protobuf.ByteString ya_; /** * optional bytes ya = 3; */ public com.google.protobuf.ByteString getYa() { return ya_; } public static final int YB_FIELD_NUMBER = 4; private com.google.protobuf.ByteString yb_; /** * optional bytes yb = 4; */ public com.google.protobuf.ByteString getYb() { return yb_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!xa_.isEmpty()) { output.writeBytes(1, xa_); } if (!xb_.isEmpty()) { output.writeBytes(2, xb_); } if (!ya_.isEmpty()) { output.writeBytes(3, ya_); } if (!yb_.isEmpty()) { output.writeBytes(4, yb_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!xa_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, xa_); } if (!xb_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, xb_); } if (!ya_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, ya_); } if (!yb_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, yb_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.ECP2)) { return super.equals(obj); } org.hyperledger.fabric.protos.idemix.Idemix.ECP2 other = (org.hyperledger.fabric.protos.idemix.Idemix.ECP2) obj; boolean result = true; result = result && getXa() .equals(other.getXa()); result = result && getXb() .equals(other.getXb()); result = result && getYa() .equals(other.getYa()); result = result && getYb() .equals(other.getYb()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + XA_FIELD_NUMBER; hash = (53 * hash) + getXa().hashCode(); hash = (37 * hash) + XB_FIELD_NUMBER; hash = (53 * hash) + getXb().hashCode(); hash = (37 * hash) + YA_FIELD_NUMBER; hash = (53 * hash) + getYa().hashCode(); hash = (37 * hash) + YB_FIELD_NUMBER; hash = (53 * hash) + getYb().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.idemix.Idemix.ECP2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.ECP2 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.idemix.Idemix.ECP2 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.ECP2 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.idemix.Idemix.ECP2 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.ECP2 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.idemix.Idemix.ECP2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.ECP2 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.idemix.Idemix.ECP2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.ECP2 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.idemix.Idemix.ECP2 prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     * ECP2 is an elliptic curve point specified by its coordinates
     * ECP2 corresponds to an element of the second group (G2)
     * 
* * Protobuf type {@code ECP2} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ECP2) org.hyperledger.fabric.protos.idemix.Idemix.ECP2OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_ECP2_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_ECP2_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.ECP2.class, org.hyperledger.fabric.protos.idemix.Idemix.ECP2.Builder.class); } // Construct using org.hyperledger.fabric.protos.idemix.Idemix.ECP2.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); xa_ = com.google.protobuf.ByteString.EMPTY; xb_ = com.google.protobuf.ByteString.EMPTY; ya_ = com.google.protobuf.ByteString.EMPTY; yb_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_ECP2_descriptor; } public org.hyperledger.fabric.protos.idemix.Idemix.ECP2 getDefaultInstanceForType() { return org.hyperledger.fabric.protos.idemix.Idemix.ECP2.getDefaultInstance(); } public org.hyperledger.fabric.protos.idemix.Idemix.ECP2 build() { org.hyperledger.fabric.protos.idemix.Idemix.ECP2 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.idemix.Idemix.ECP2 buildPartial() { org.hyperledger.fabric.protos.idemix.Idemix.ECP2 result = new org.hyperledger.fabric.protos.idemix.Idemix.ECP2(this); result.xa_ = xa_; result.xb_ = xb_; result.ya_ = ya_; result.yb_ = yb_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.idemix.Idemix.ECP2) { return mergeFrom((org.hyperledger.fabric.protos.idemix.Idemix.ECP2)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.idemix.Idemix.ECP2 other) { if (other == org.hyperledger.fabric.protos.idemix.Idemix.ECP2.getDefaultInstance()) return this; if (other.getXa() != com.google.protobuf.ByteString.EMPTY) { setXa(other.getXa()); } if (other.getXb() != com.google.protobuf.ByteString.EMPTY) { setXb(other.getXb()); } if (other.getYa() != com.google.protobuf.ByteString.EMPTY) { setYa(other.getYa()); } if (other.getYb() != com.google.protobuf.ByteString.EMPTY) { setYb(other.getYb()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.idemix.Idemix.ECP2 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.idemix.Idemix.ECP2) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString xa_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes xa = 1; */ public com.google.protobuf.ByteString getXa() { return xa_; } /** * optional bytes xa = 1; */ public Builder setXa(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } xa_ = value; onChanged(); return this; } /** * optional bytes xa = 1; */ public Builder clearXa() { xa_ = getDefaultInstance().getXa(); onChanged(); return this; } private com.google.protobuf.ByteString xb_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes xb = 2; */ public com.google.protobuf.ByteString getXb() { return xb_; } /** * optional bytes xb = 2; */ public Builder setXb(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } xb_ = value; onChanged(); return this; } /** * optional bytes xb = 2; */ public Builder clearXb() { xb_ = getDefaultInstance().getXb(); onChanged(); return this; } private com.google.protobuf.ByteString ya_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes ya = 3; */ public com.google.protobuf.ByteString getYa() { return ya_; } /** * optional bytes ya = 3; */ public Builder setYa(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ya_ = value; onChanged(); return this; } /** * optional bytes ya = 3; */ public Builder clearYa() { ya_ = getDefaultInstance().getYa(); onChanged(); return this; } private com.google.protobuf.ByteString yb_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes yb = 4; */ public com.google.protobuf.ByteString getYb() { return yb_; } /** * optional bytes yb = 4; */ public Builder setYb(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } yb_ = value; onChanged(); return this; } /** * optional bytes yb = 4; */ public Builder clearYb() { yb_ = getDefaultInstance().getYb(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:ECP2) } // @@protoc_insertion_point(class_scope:ECP2) private static final org.hyperledger.fabric.protos.idemix.Idemix.ECP2 DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.idemix.Idemix.ECP2(); } public static org.hyperledger.fabric.protos.idemix.Idemix.ECP2 getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ECP2 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ECP2(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.idemix.Idemix.ECP2 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IssuerPublicKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:IssuerPublicKey) com.google.protobuf.MessageOrBuilder { /** * repeated string attribute_names = 1; */ java.util.List getAttributeNamesList(); /** * repeated string attribute_names = 1; */ int getAttributeNamesCount(); /** * repeated string attribute_names = 1; */ java.lang.String getAttributeNames(int index); /** * repeated string attribute_names = 1; */ com.google.protobuf.ByteString getAttributeNamesBytes(int index); /** * optional .ECP h_sk = 2; */ boolean hasHSk(); /** * optional .ECP h_sk = 2; */ org.hyperledger.fabric.protos.idemix.Idemix.ECP getHSk(); /** * optional .ECP h_sk = 2; */ org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getHSkOrBuilder(); /** * optional .ECP h_rand = 3; */ boolean hasHRand(); /** * optional .ECP h_rand = 3; */ org.hyperledger.fabric.protos.idemix.Idemix.ECP getHRand(); /** * optional .ECP h_rand = 3; */ org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getHRandOrBuilder(); /** * repeated .ECP h_attrs = 4; */ java.util.List getHAttrsList(); /** * repeated .ECP h_attrs = 4; */ org.hyperledger.fabric.protos.idemix.Idemix.ECP getHAttrs(int index); /** * repeated .ECP h_attrs = 4; */ int getHAttrsCount(); /** * repeated .ECP h_attrs = 4; */ java.util.List getHAttrsOrBuilderList(); /** * repeated .ECP h_attrs = 4; */ org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getHAttrsOrBuilder( int index); /** * optional .ECP2 w = 5; */ boolean hasW(); /** * optional .ECP2 w = 5; */ org.hyperledger.fabric.protos.idemix.Idemix.ECP2 getW(); /** * optional .ECP2 w = 5; */ org.hyperledger.fabric.protos.idemix.Idemix.ECP2OrBuilder getWOrBuilder(); /** * optional .ECP bar_g1 = 6; */ boolean hasBarG1(); /** * optional .ECP bar_g1 = 6; */ org.hyperledger.fabric.protos.idemix.Idemix.ECP getBarG1(); /** * optional .ECP bar_g1 = 6; */ org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getBarG1OrBuilder(); /** * optional .ECP bar_g2 = 7; */ boolean hasBarG2(); /** * optional .ECP bar_g2 = 7; */ org.hyperledger.fabric.protos.idemix.Idemix.ECP getBarG2(); /** * optional .ECP bar_g2 = 7; */ org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getBarG2OrBuilder(); /** * optional bytes proof_c = 8; */ com.google.protobuf.ByteString getProofC(); /** * optional bytes proof_s = 9; */ com.google.protobuf.ByteString getProofS(); /** * optional bytes hash = 10; */ com.google.protobuf.ByteString getHash(); } /** *
   * IssuerPublicKey specifies an issuer public key that consists of
   * attribute_names - a list of the attribute names of a credential issued by the issuer
   * h_sk, h_rand, h_attrs, w, bar_g1, bar_g2 - group elements corresponding to the signing key, randomness, and attributes
   * proof_c, proof_s compose a zero-knowledge proof of knowledge of the secret key
   * hash is a hash of the public key appended to it
   * 
* * Protobuf type {@code IssuerPublicKey} */ public static final class IssuerPublicKey extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:IssuerPublicKey) IssuerPublicKeyOrBuilder { // Use IssuerPublicKey.newBuilder() to construct. private IssuerPublicKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IssuerPublicKey() { attributeNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; hAttrs_ = java.util.Collections.emptyList(); proofC_ = com.google.protobuf.ByteString.EMPTY; proofS_ = com.google.protobuf.ByteString.EMPTY; hash_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private IssuerPublicKey( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { attributeNames_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } attributeNames_.add(s); break; } case 18: { org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder subBuilder = null; if (hSk_ != null) { subBuilder = hSk_.toBuilder(); } hSk_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(hSk_); hSk_ = subBuilder.buildPartial(); } break; } case 26: { org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder subBuilder = null; if (hRand_ != null) { subBuilder = hRand_.toBuilder(); } hRand_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(hRand_); hRand_ = subBuilder.buildPartial(); } break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { hAttrs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } hAttrs_.add( input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry)); break; } case 42: { org.hyperledger.fabric.protos.idemix.Idemix.ECP2.Builder subBuilder = null; if (w_ != null) { subBuilder = w_.toBuilder(); } w_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP2.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(w_); w_ = subBuilder.buildPartial(); } break; } case 50: { org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder subBuilder = null; if (barG1_ != null) { subBuilder = barG1_.toBuilder(); } barG1_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(barG1_); barG1_ = subBuilder.buildPartial(); } break; } case 58: { org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder subBuilder = null; if (barG2_ != null) { subBuilder = barG2_.toBuilder(); } barG2_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(barG2_); barG2_ = subBuilder.buildPartial(); } break; } case 66: { proofC_ = input.readBytes(); break; } case 74: { proofS_ = input.readBytes(); break; } case 82: { hash_ = input.readBytes(); 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 { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { attributeNames_ = attributeNames_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { hAttrs_ = java.util.Collections.unmodifiableList(hAttrs_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_IssuerPublicKey_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_IssuerPublicKey_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey.class, org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey.Builder.class); } private int bitField0_; public static final int ATTRIBUTE_NAMES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList attributeNames_; /** * repeated string attribute_names = 1; */ public com.google.protobuf.ProtocolStringList getAttributeNamesList() { return attributeNames_; } /** * repeated string attribute_names = 1; */ public int getAttributeNamesCount() { return attributeNames_.size(); } /** * repeated string attribute_names = 1; */ public java.lang.String getAttributeNames(int index) { return attributeNames_.get(index); } /** * repeated string attribute_names = 1; */ public com.google.protobuf.ByteString getAttributeNamesBytes(int index) { return attributeNames_.getByteString(index); } public static final int H_SK_FIELD_NUMBER = 2; private org.hyperledger.fabric.protos.idemix.Idemix.ECP hSk_; /** * optional .ECP h_sk = 2; */ public boolean hasHSk() { return hSk_ != null; } /** * optional .ECP h_sk = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getHSk() { return hSk_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : hSk_; } /** * optional .ECP h_sk = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getHSkOrBuilder() { return getHSk(); } public static final int H_RAND_FIELD_NUMBER = 3; private org.hyperledger.fabric.protos.idemix.Idemix.ECP hRand_; /** * optional .ECP h_rand = 3; */ public boolean hasHRand() { return hRand_ != null; } /** * optional .ECP h_rand = 3; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getHRand() { return hRand_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : hRand_; } /** * optional .ECP h_rand = 3; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getHRandOrBuilder() { return getHRand(); } public static final int H_ATTRS_FIELD_NUMBER = 4; private java.util.List hAttrs_; /** * repeated .ECP h_attrs = 4; */ public java.util.List getHAttrsList() { return hAttrs_; } /** * repeated .ECP h_attrs = 4; */ public java.util.List getHAttrsOrBuilderList() { return hAttrs_; } /** * repeated .ECP h_attrs = 4; */ public int getHAttrsCount() { return hAttrs_.size(); } /** * repeated .ECP h_attrs = 4; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getHAttrs(int index) { return hAttrs_.get(index); } /** * repeated .ECP h_attrs = 4; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getHAttrsOrBuilder( int index) { return hAttrs_.get(index); } public static final int W_FIELD_NUMBER = 5; private org.hyperledger.fabric.protos.idemix.Idemix.ECP2 w_; /** * optional .ECP2 w = 5; */ public boolean hasW() { return w_ != null; } /** * optional .ECP2 w = 5; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP2 getW() { return w_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP2.getDefaultInstance() : w_; } /** * optional .ECP2 w = 5; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP2OrBuilder getWOrBuilder() { return getW(); } public static final int BAR_G1_FIELD_NUMBER = 6; private org.hyperledger.fabric.protos.idemix.Idemix.ECP barG1_; /** * optional .ECP bar_g1 = 6; */ public boolean hasBarG1() { return barG1_ != null; } /** * optional .ECP bar_g1 = 6; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getBarG1() { return barG1_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : barG1_; } /** * optional .ECP bar_g1 = 6; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getBarG1OrBuilder() { return getBarG1(); } public static final int BAR_G2_FIELD_NUMBER = 7; private org.hyperledger.fabric.protos.idemix.Idemix.ECP barG2_; /** * optional .ECP bar_g2 = 7; */ public boolean hasBarG2() { return barG2_ != null; } /** * optional .ECP bar_g2 = 7; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getBarG2() { return barG2_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : barG2_; } /** * optional .ECP bar_g2 = 7; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getBarG2OrBuilder() { return getBarG2(); } public static final int PROOF_C_FIELD_NUMBER = 8; private com.google.protobuf.ByteString proofC_; /** * optional bytes proof_c = 8; */ public com.google.protobuf.ByteString getProofC() { return proofC_; } public static final int PROOF_S_FIELD_NUMBER = 9; private com.google.protobuf.ByteString proofS_; /** * optional bytes proof_s = 9; */ public com.google.protobuf.ByteString getProofS() { return proofS_; } public static final int HASH_FIELD_NUMBER = 10; private com.google.protobuf.ByteString hash_; /** * optional bytes hash = 10; */ public com.google.protobuf.ByteString getHash() { return hash_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < attributeNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attributeNames_.getRaw(i)); } if (hSk_ != null) { output.writeMessage(2, getHSk()); } if (hRand_ != null) { output.writeMessage(3, getHRand()); } for (int i = 0; i < hAttrs_.size(); i++) { output.writeMessage(4, hAttrs_.get(i)); } if (w_ != null) { output.writeMessage(5, getW()); } if (barG1_ != null) { output.writeMessage(6, getBarG1()); } if (barG2_ != null) { output.writeMessage(7, getBarG2()); } if (!proofC_.isEmpty()) { output.writeBytes(8, proofC_); } if (!proofS_.isEmpty()) { output.writeBytes(9, proofS_); } if (!hash_.isEmpty()) { output.writeBytes(10, hash_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < attributeNames_.size(); i++) { dataSize += computeStringSizeNoTag(attributeNames_.getRaw(i)); } size += dataSize; size += 1 * getAttributeNamesList().size(); } if (hSk_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getHSk()); } if (hRand_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getHRand()); } for (int i = 0; i < hAttrs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, hAttrs_.get(i)); } if (w_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getW()); } if (barG1_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getBarG1()); } if (barG2_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getBarG2()); } if (!proofC_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, proofC_); } if (!proofS_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, proofS_); } if (!hash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, hash_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey)) { return super.equals(obj); } org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey other = (org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey) obj; boolean result = true; result = result && getAttributeNamesList() .equals(other.getAttributeNamesList()); result = result && (hasHSk() == other.hasHSk()); if (hasHSk()) { result = result && getHSk() .equals(other.getHSk()); } result = result && (hasHRand() == other.hasHRand()); if (hasHRand()) { result = result && getHRand() .equals(other.getHRand()); } result = result && getHAttrsList() .equals(other.getHAttrsList()); result = result && (hasW() == other.hasW()); if (hasW()) { result = result && getW() .equals(other.getW()); } result = result && (hasBarG1() == other.hasBarG1()); if (hasBarG1()) { result = result && getBarG1() .equals(other.getBarG1()); } result = result && (hasBarG2() == other.hasBarG2()); if (hasBarG2()) { result = result && getBarG2() .equals(other.getBarG2()); } result = result && getProofC() .equals(other.getProofC()); result = result && getProofS() .equals(other.getProofS()); result = result && getHash() .equals(other.getHash()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getAttributeNamesCount() > 0) { hash = (37 * hash) + ATTRIBUTE_NAMES_FIELD_NUMBER; hash = (53 * hash) + getAttributeNamesList().hashCode(); } if (hasHSk()) { hash = (37 * hash) + H_SK_FIELD_NUMBER; hash = (53 * hash) + getHSk().hashCode(); } if (hasHRand()) { hash = (37 * hash) + H_RAND_FIELD_NUMBER; hash = (53 * hash) + getHRand().hashCode(); } if (getHAttrsCount() > 0) { hash = (37 * hash) + H_ATTRS_FIELD_NUMBER; hash = (53 * hash) + getHAttrsList().hashCode(); } if (hasW()) { hash = (37 * hash) + W_FIELD_NUMBER; hash = (53 * hash) + getW().hashCode(); } if (hasBarG1()) { hash = (37 * hash) + BAR_G1_FIELD_NUMBER; hash = (53 * hash) + getBarG1().hashCode(); } if (hasBarG2()) { hash = (37 * hash) + BAR_G2_FIELD_NUMBER; hash = (53 * hash) + getBarG2().hashCode(); } hash = (37 * hash) + PROOF_C_FIELD_NUMBER; hash = (53 * hash) + getProofC().hashCode(); hash = (37 * hash) + PROOF_S_FIELD_NUMBER; hash = (53 * hash) + getProofS().hashCode(); hash = (37 * hash) + HASH_FIELD_NUMBER; hash = (53 * hash) + getHash().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey 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.idemix.Idemix.IssuerPublicKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey 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.idemix.Idemix.IssuerPublicKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey 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.idemix.Idemix.IssuerPublicKey parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     * IssuerPublicKey specifies an issuer public key that consists of
     * attribute_names - a list of the attribute names of a credential issued by the issuer
     * h_sk, h_rand, h_attrs, w, bar_g1, bar_g2 - group elements corresponding to the signing key, randomness, and attributes
     * proof_c, proof_s compose a zero-knowledge proof of knowledge of the secret key
     * hash is a hash of the public key appended to it
     * 
* * Protobuf type {@code IssuerPublicKey} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:IssuerPublicKey) org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_IssuerPublicKey_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_IssuerPublicKey_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey.class, org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey.Builder.class); } // Construct using org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getHAttrsFieldBuilder(); } } public Builder clear() { super.clear(); attributeNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); if (hSkBuilder_ == null) { hSk_ = null; } else { hSk_ = null; hSkBuilder_ = null; } if (hRandBuilder_ == null) { hRand_ = null; } else { hRand_ = null; hRandBuilder_ = null; } if (hAttrsBuilder_ == null) { hAttrs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { hAttrsBuilder_.clear(); } if (wBuilder_ == null) { w_ = null; } else { w_ = null; wBuilder_ = null; } if (barG1Builder_ == null) { barG1_ = null; } else { barG1_ = null; barG1Builder_ = null; } if (barG2Builder_ == null) { barG2_ = null; } else { barG2_ = null; barG2Builder_ = null; } proofC_ = com.google.protobuf.ByteString.EMPTY; proofS_ = com.google.protobuf.ByteString.EMPTY; hash_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_IssuerPublicKey_descriptor; } public org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey getDefaultInstanceForType() { return org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey.getDefaultInstance(); } public org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey build() { org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey buildPartial() { org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey result = new org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { attributeNames_ = attributeNames_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.attributeNames_ = attributeNames_; if (hSkBuilder_ == null) { result.hSk_ = hSk_; } else { result.hSk_ = hSkBuilder_.build(); } if (hRandBuilder_ == null) { result.hRand_ = hRand_; } else { result.hRand_ = hRandBuilder_.build(); } if (hAttrsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { hAttrs_ = java.util.Collections.unmodifiableList(hAttrs_); bitField0_ = (bitField0_ & ~0x00000008); } result.hAttrs_ = hAttrs_; } else { result.hAttrs_ = hAttrsBuilder_.build(); } if (wBuilder_ == null) { result.w_ = w_; } else { result.w_ = wBuilder_.build(); } if (barG1Builder_ == null) { result.barG1_ = barG1_; } else { result.barG1_ = barG1Builder_.build(); } if (barG2Builder_ == null) { result.barG2_ = barG2_; } else { result.barG2_ = barG2Builder_.build(); } result.proofC_ = proofC_; result.proofS_ = proofS_; result.hash_ = hash_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey) { return mergeFrom((org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey other) { if (other == org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey.getDefaultInstance()) return this; if (!other.attributeNames_.isEmpty()) { if (attributeNames_.isEmpty()) { attributeNames_ = other.attributeNames_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAttributeNamesIsMutable(); attributeNames_.addAll(other.attributeNames_); } onChanged(); } if (other.hasHSk()) { mergeHSk(other.getHSk()); } if (other.hasHRand()) { mergeHRand(other.getHRand()); } if (hAttrsBuilder_ == null) { if (!other.hAttrs_.isEmpty()) { if (hAttrs_.isEmpty()) { hAttrs_ = other.hAttrs_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureHAttrsIsMutable(); hAttrs_.addAll(other.hAttrs_); } onChanged(); } } else { if (!other.hAttrs_.isEmpty()) { if (hAttrsBuilder_.isEmpty()) { hAttrsBuilder_.dispose(); hAttrsBuilder_ = null; hAttrs_ = other.hAttrs_; bitField0_ = (bitField0_ & ~0x00000008); hAttrsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getHAttrsFieldBuilder() : null; } else { hAttrsBuilder_.addAllMessages(other.hAttrs_); } } } if (other.hasW()) { mergeW(other.getW()); } if (other.hasBarG1()) { mergeBarG1(other.getBarG1()); } if (other.hasBarG2()) { mergeBarG2(other.getBarG2()); } if (other.getProofC() != com.google.protobuf.ByteString.EMPTY) { setProofC(other.getProofC()); } if (other.getProofS() != com.google.protobuf.ByteString.EMPTY) { setProofS(other.getProofS()); } if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { setHash(other.getHash()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList attributeNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAttributeNamesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { attributeNames_ = new com.google.protobuf.LazyStringArrayList(attributeNames_); bitField0_ |= 0x00000001; } } /** * repeated string attribute_names = 1; */ public com.google.protobuf.ProtocolStringList getAttributeNamesList() { return attributeNames_.getUnmodifiableView(); } /** * repeated string attribute_names = 1; */ public int getAttributeNamesCount() { return attributeNames_.size(); } /** * repeated string attribute_names = 1; */ public java.lang.String getAttributeNames(int index) { return attributeNames_.get(index); } /** * repeated string attribute_names = 1; */ public com.google.protobuf.ByteString getAttributeNamesBytes(int index) { return attributeNames_.getByteString(index); } /** * repeated string attribute_names = 1; */ public Builder setAttributeNames( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeNamesIsMutable(); attributeNames_.set(index, value); onChanged(); return this; } /** * repeated string attribute_names = 1; */ public Builder addAttributeNames( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeNamesIsMutable(); attributeNames_.add(value); onChanged(); return this; } /** * repeated string attribute_names = 1; */ public Builder addAllAttributeNames( java.lang.Iterable values) { ensureAttributeNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attributeNames_); onChanged(); return this; } /** * repeated string attribute_names = 1; */ public Builder clearAttributeNames() { attributeNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string attribute_names = 1; */ public Builder addAttributeNamesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAttributeNamesIsMutable(); attributeNames_.add(value); onChanged(); return this; } private org.hyperledger.fabric.protos.idemix.Idemix.ECP hSk_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> hSkBuilder_; /** * optional .ECP h_sk = 2; */ public boolean hasHSk() { return hSkBuilder_ != null || hSk_ != null; } /** * optional .ECP h_sk = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getHSk() { if (hSkBuilder_ == null) { return hSk_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : hSk_; } else { return hSkBuilder_.getMessage(); } } /** * optional .ECP h_sk = 2; */ public Builder setHSk(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (hSkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } hSk_ = value; onChanged(); } else { hSkBuilder_.setMessage(value); } return this; } /** * optional .ECP h_sk = 2; */ public Builder setHSk( org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder builderForValue) { if (hSkBuilder_ == null) { hSk_ = builderForValue.build(); onChanged(); } else { hSkBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .ECP h_sk = 2; */ public Builder mergeHSk(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (hSkBuilder_ == null) { if (hSk_ != null) { hSk_ = org.hyperledger.fabric.protos.idemix.Idemix.ECP.newBuilder(hSk_).mergeFrom(value).buildPartial(); } else { hSk_ = value; } onChanged(); } else { hSkBuilder_.mergeFrom(value); } return this; } /** * optional .ECP h_sk = 2; */ public Builder clearHSk() { if (hSkBuilder_ == null) { hSk_ = null; onChanged(); } else { hSk_ = null; hSkBuilder_ = null; } return this; } /** * optional .ECP h_sk = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getHSkBuilder() { onChanged(); return getHSkFieldBuilder().getBuilder(); } /** * optional .ECP h_sk = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getHSkOrBuilder() { if (hSkBuilder_ != null) { return hSkBuilder_.getMessageOrBuilder(); } else { return hSk_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : hSk_; } } /** * optional .ECP h_sk = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> getHSkFieldBuilder() { if (hSkBuilder_ == null) { hSkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder>( getHSk(), getParentForChildren(), isClean()); hSk_ = null; } return hSkBuilder_; } private org.hyperledger.fabric.protos.idemix.Idemix.ECP hRand_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> hRandBuilder_; /** * optional .ECP h_rand = 3; */ public boolean hasHRand() { return hRandBuilder_ != null || hRand_ != null; } /** * optional .ECP h_rand = 3; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getHRand() { if (hRandBuilder_ == null) { return hRand_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : hRand_; } else { return hRandBuilder_.getMessage(); } } /** * optional .ECP h_rand = 3; */ public Builder setHRand(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (hRandBuilder_ == null) { if (value == null) { throw new NullPointerException(); } hRand_ = value; onChanged(); } else { hRandBuilder_.setMessage(value); } return this; } /** * optional .ECP h_rand = 3; */ public Builder setHRand( org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder builderForValue) { if (hRandBuilder_ == null) { hRand_ = builderForValue.build(); onChanged(); } else { hRandBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .ECP h_rand = 3; */ public Builder mergeHRand(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (hRandBuilder_ == null) { if (hRand_ != null) { hRand_ = org.hyperledger.fabric.protos.idemix.Idemix.ECP.newBuilder(hRand_).mergeFrom(value).buildPartial(); } else { hRand_ = value; } onChanged(); } else { hRandBuilder_.mergeFrom(value); } return this; } /** * optional .ECP h_rand = 3; */ public Builder clearHRand() { if (hRandBuilder_ == null) { hRand_ = null; onChanged(); } else { hRand_ = null; hRandBuilder_ = null; } return this; } /** * optional .ECP h_rand = 3; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getHRandBuilder() { onChanged(); return getHRandFieldBuilder().getBuilder(); } /** * optional .ECP h_rand = 3; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getHRandOrBuilder() { if (hRandBuilder_ != null) { return hRandBuilder_.getMessageOrBuilder(); } else { return hRand_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : hRand_; } } /** * optional .ECP h_rand = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> getHRandFieldBuilder() { if (hRandBuilder_ == null) { hRandBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder>( getHRand(), getParentForChildren(), isClean()); hRand_ = null; } return hRandBuilder_; } private java.util.List hAttrs_ = java.util.Collections.emptyList(); private void ensureHAttrsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { hAttrs_ = new java.util.ArrayList(hAttrs_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> hAttrsBuilder_; /** * repeated .ECP h_attrs = 4; */ public java.util.List getHAttrsList() { if (hAttrsBuilder_ == null) { return java.util.Collections.unmodifiableList(hAttrs_); } else { return hAttrsBuilder_.getMessageList(); } } /** * repeated .ECP h_attrs = 4; */ public int getHAttrsCount() { if (hAttrsBuilder_ == null) { return hAttrs_.size(); } else { return hAttrsBuilder_.getCount(); } } /** * repeated .ECP h_attrs = 4; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getHAttrs(int index) { if (hAttrsBuilder_ == null) { return hAttrs_.get(index); } else { return hAttrsBuilder_.getMessage(index); } } /** * repeated .ECP h_attrs = 4; */ public Builder setHAttrs( int index, org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (hAttrsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHAttrsIsMutable(); hAttrs_.set(index, value); onChanged(); } else { hAttrsBuilder_.setMessage(index, value); } return this; } /** * repeated .ECP h_attrs = 4; */ public Builder setHAttrs( int index, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder builderForValue) { if (hAttrsBuilder_ == null) { ensureHAttrsIsMutable(); hAttrs_.set(index, builderForValue.build()); onChanged(); } else { hAttrsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .ECP h_attrs = 4; */ public Builder addHAttrs(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (hAttrsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHAttrsIsMutable(); hAttrs_.add(value); onChanged(); } else { hAttrsBuilder_.addMessage(value); } return this; } /** * repeated .ECP h_attrs = 4; */ public Builder addHAttrs( int index, org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (hAttrsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHAttrsIsMutable(); hAttrs_.add(index, value); onChanged(); } else { hAttrsBuilder_.addMessage(index, value); } return this; } /** * repeated .ECP h_attrs = 4; */ public Builder addHAttrs( org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder builderForValue) { if (hAttrsBuilder_ == null) { ensureHAttrsIsMutable(); hAttrs_.add(builderForValue.build()); onChanged(); } else { hAttrsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .ECP h_attrs = 4; */ public Builder addHAttrs( int index, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder builderForValue) { if (hAttrsBuilder_ == null) { ensureHAttrsIsMutable(); hAttrs_.add(index, builderForValue.build()); onChanged(); } else { hAttrsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .ECP h_attrs = 4; */ public Builder addAllHAttrs( java.lang.Iterable values) { if (hAttrsBuilder_ == null) { ensureHAttrsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, hAttrs_); onChanged(); } else { hAttrsBuilder_.addAllMessages(values); } return this; } /** * repeated .ECP h_attrs = 4; */ public Builder clearHAttrs() { if (hAttrsBuilder_ == null) { hAttrs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { hAttrsBuilder_.clear(); } return this; } /** * repeated .ECP h_attrs = 4; */ public Builder removeHAttrs(int index) { if (hAttrsBuilder_ == null) { ensureHAttrsIsMutable(); hAttrs_.remove(index); onChanged(); } else { hAttrsBuilder_.remove(index); } return this; } /** * repeated .ECP h_attrs = 4; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getHAttrsBuilder( int index) { return getHAttrsFieldBuilder().getBuilder(index); } /** * repeated .ECP h_attrs = 4; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getHAttrsOrBuilder( int index) { if (hAttrsBuilder_ == null) { return hAttrs_.get(index); } else { return hAttrsBuilder_.getMessageOrBuilder(index); } } /** * repeated .ECP h_attrs = 4; */ public java.util.List getHAttrsOrBuilderList() { if (hAttrsBuilder_ != null) { return hAttrsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(hAttrs_); } } /** * repeated .ECP h_attrs = 4; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder addHAttrsBuilder() { return getHAttrsFieldBuilder().addBuilder( org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance()); } /** * repeated .ECP h_attrs = 4; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder addHAttrsBuilder( int index) { return getHAttrsFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance()); } /** * repeated .ECP h_attrs = 4; */ public java.util.List getHAttrsBuilderList() { return getHAttrsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> getHAttrsFieldBuilder() { if (hAttrsBuilder_ == null) { hAttrsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder>( hAttrs_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); hAttrs_ = null; } return hAttrsBuilder_; } private org.hyperledger.fabric.protos.idemix.Idemix.ECP2 w_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP2, org.hyperledger.fabric.protos.idemix.Idemix.ECP2.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECP2OrBuilder> wBuilder_; /** * optional .ECP2 w = 5; */ public boolean hasW() { return wBuilder_ != null || w_ != null; } /** * optional .ECP2 w = 5; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP2 getW() { if (wBuilder_ == null) { return w_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP2.getDefaultInstance() : w_; } else { return wBuilder_.getMessage(); } } /** * optional .ECP2 w = 5; */ public Builder setW(org.hyperledger.fabric.protos.idemix.Idemix.ECP2 value) { if (wBuilder_ == null) { if (value == null) { throw new NullPointerException(); } w_ = value; onChanged(); } else { wBuilder_.setMessage(value); } return this; } /** * optional .ECP2 w = 5; */ public Builder setW( org.hyperledger.fabric.protos.idemix.Idemix.ECP2.Builder builderForValue) { if (wBuilder_ == null) { w_ = builderForValue.build(); onChanged(); } else { wBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .ECP2 w = 5; */ public Builder mergeW(org.hyperledger.fabric.protos.idemix.Idemix.ECP2 value) { if (wBuilder_ == null) { if (w_ != null) { w_ = org.hyperledger.fabric.protos.idemix.Idemix.ECP2.newBuilder(w_).mergeFrom(value).buildPartial(); } else { w_ = value; } onChanged(); } else { wBuilder_.mergeFrom(value); } return this; } /** * optional .ECP2 w = 5; */ public Builder clearW() { if (wBuilder_ == null) { w_ = null; onChanged(); } else { w_ = null; wBuilder_ = null; } return this; } /** * optional .ECP2 w = 5; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP2.Builder getWBuilder() { onChanged(); return getWFieldBuilder().getBuilder(); } /** * optional .ECP2 w = 5; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP2OrBuilder getWOrBuilder() { if (wBuilder_ != null) { return wBuilder_.getMessageOrBuilder(); } else { return w_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP2.getDefaultInstance() : w_; } } /** * optional .ECP2 w = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP2, org.hyperledger.fabric.protos.idemix.Idemix.ECP2.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECP2OrBuilder> getWFieldBuilder() { if (wBuilder_ == null) { wBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP2, org.hyperledger.fabric.protos.idemix.Idemix.ECP2.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECP2OrBuilder>( getW(), getParentForChildren(), isClean()); w_ = null; } return wBuilder_; } private org.hyperledger.fabric.protos.idemix.Idemix.ECP barG1_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> barG1Builder_; /** * optional .ECP bar_g1 = 6; */ public boolean hasBarG1() { return barG1Builder_ != null || barG1_ != null; } /** * optional .ECP bar_g1 = 6; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getBarG1() { if (barG1Builder_ == null) { return barG1_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : barG1_; } else { return barG1Builder_.getMessage(); } } /** * optional .ECP bar_g1 = 6; */ public Builder setBarG1(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (barG1Builder_ == null) { if (value == null) { throw new NullPointerException(); } barG1_ = value; onChanged(); } else { barG1Builder_.setMessage(value); } return this; } /** * optional .ECP bar_g1 = 6; */ public Builder setBarG1( org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder builderForValue) { if (barG1Builder_ == null) { barG1_ = builderForValue.build(); onChanged(); } else { barG1Builder_.setMessage(builderForValue.build()); } return this; } /** * optional .ECP bar_g1 = 6; */ public Builder mergeBarG1(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (barG1Builder_ == null) { if (barG1_ != null) { barG1_ = org.hyperledger.fabric.protos.idemix.Idemix.ECP.newBuilder(barG1_).mergeFrom(value).buildPartial(); } else { barG1_ = value; } onChanged(); } else { barG1Builder_.mergeFrom(value); } return this; } /** * optional .ECP bar_g1 = 6; */ public Builder clearBarG1() { if (barG1Builder_ == null) { barG1_ = null; onChanged(); } else { barG1_ = null; barG1Builder_ = null; } return this; } /** * optional .ECP bar_g1 = 6; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getBarG1Builder() { onChanged(); return getBarG1FieldBuilder().getBuilder(); } /** * optional .ECP bar_g1 = 6; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getBarG1OrBuilder() { if (barG1Builder_ != null) { return barG1Builder_.getMessageOrBuilder(); } else { return barG1_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : barG1_; } } /** * optional .ECP bar_g1 = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> getBarG1FieldBuilder() { if (barG1Builder_ == null) { barG1Builder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder>( getBarG1(), getParentForChildren(), isClean()); barG1_ = null; } return barG1Builder_; } private org.hyperledger.fabric.protos.idemix.Idemix.ECP barG2_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> barG2Builder_; /** * optional .ECP bar_g2 = 7; */ public boolean hasBarG2() { return barG2Builder_ != null || barG2_ != null; } /** * optional .ECP bar_g2 = 7; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getBarG2() { if (barG2Builder_ == null) { return barG2_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : barG2_; } else { return barG2Builder_.getMessage(); } } /** * optional .ECP bar_g2 = 7; */ public Builder setBarG2(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (barG2Builder_ == null) { if (value == null) { throw new NullPointerException(); } barG2_ = value; onChanged(); } else { barG2Builder_.setMessage(value); } return this; } /** * optional .ECP bar_g2 = 7; */ public Builder setBarG2( org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder builderForValue) { if (barG2Builder_ == null) { barG2_ = builderForValue.build(); onChanged(); } else { barG2Builder_.setMessage(builderForValue.build()); } return this; } /** * optional .ECP bar_g2 = 7; */ public Builder mergeBarG2(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (barG2Builder_ == null) { if (barG2_ != null) { barG2_ = org.hyperledger.fabric.protos.idemix.Idemix.ECP.newBuilder(barG2_).mergeFrom(value).buildPartial(); } else { barG2_ = value; } onChanged(); } else { barG2Builder_.mergeFrom(value); } return this; } /** * optional .ECP bar_g2 = 7; */ public Builder clearBarG2() { if (barG2Builder_ == null) { barG2_ = null; onChanged(); } else { barG2_ = null; barG2Builder_ = null; } return this; } /** * optional .ECP bar_g2 = 7; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getBarG2Builder() { onChanged(); return getBarG2FieldBuilder().getBuilder(); } /** * optional .ECP bar_g2 = 7; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getBarG2OrBuilder() { if (barG2Builder_ != null) { return barG2Builder_.getMessageOrBuilder(); } else { return barG2_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : barG2_; } } /** * optional .ECP bar_g2 = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> getBarG2FieldBuilder() { if (barG2Builder_ == null) { barG2Builder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder>( getBarG2(), getParentForChildren(), isClean()); barG2_ = null; } return barG2Builder_; } private com.google.protobuf.ByteString proofC_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes proof_c = 8; */ public com.google.protobuf.ByteString getProofC() { return proofC_; } /** * optional bytes proof_c = 8; */ public Builder setProofC(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } proofC_ = value; onChanged(); return this; } /** * optional bytes proof_c = 8; */ public Builder clearProofC() { proofC_ = getDefaultInstance().getProofC(); onChanged(); return this; } private com.google.protobuf.ByteString proofS_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes proof_s = 9; */ public com.google.protobuf.ByteString getProofS() { return proofS_; } /** * optional bytes proof_s = 9; */ public Builder setProofS(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } proofS_ = value; onChanged(); return this; } /** * optional bytes proof_s = 9; */ public Builder clearProofS() { proofS_ = getDefaultInstance().getProofS(); onChanged(); return this; } private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes hash = 10; */ public com.google.protobuf.ByteString getHash() { return hash_; } /** * optional bytes hash = 10; */ public Builder setHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } hash_ = value; onChanged(); return this; } /** * optional bytes hash = 10; */ public Builder clearHash() { hash_ = getDefaultInstance().getHash(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:IssuerPublicKey) } // @@protoc_insertion_point(class_scope:IssuerPublicKey) private static final org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey(); } public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public IssuerPublicKey parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IssuerPublicKey(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IssuerKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:IssuerKey) com.google.protobuf.MessageOrBuilder { /** * optional bytes isk = 1; */ com.google.protobuf.ByteString getIsk(); /** * optional .IssuerPublicKey ipk = 2; */ boolean hasIpk(); /** * optional .IssuerPublicKey ipk = 2; */ org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey getIpk(); /** * optional .IssuerPublicKey ipk = 2; */ org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKeyOrBuilder getIpkOrBuilder(); } /** *
   * IssuerKey specifies an issuer key pair that consists of
   * ISk - the issuer secret key and
   * IssuerPublicKey - the issuer public key
   * 
* * Protobuf type {@code IssuerKey} */ public static final class IssuerKey extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:IssuerKey) IssuerKeyOrBuilder { // Use IssuerKey.newBuilder() to construct. private IssuerKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IssuerKey() { isk_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private IssuerKey( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { isk_ = input.readBytes(); break; } case 18: { org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey.Builder subBuilder = null; if (ipk_ != null) { subBuilder = ipk_.toBuilder(); } ipk_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ipk_); ipk_ = subBuilder.buildPartial(); } 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_IssuerKey_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_IssuerKey_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey.class, org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey.Builder.class); } public static final int ISK_FIELD_NUMBER = 1; private com.google.protobuf.ByteString isk_; /** * optional bytes isk = 1; */ public com.google.protobuf.ByteString getIsk() { return isk_; } public static final int IPK_FIELD_NUMBER = 2; private org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey ipk_; /** * optional .IssuerPublicKey ipk = 2; */ public boolean hasIpk() { return ipk_ != null; } /** * optional .IssuerPublicKey ipk = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey getIpk() { return ipk_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey.getDefaultInstance() : ipk_; } /** * optional .IssuerPublicKey ipk = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKeyOrBuilder getIpkOrBuilder() { return getIpk(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!isk_.isEmpty()) { output.writeBytes(1, isk_); } if (ipk_ != null) { output.writeMessage(2, getIpk()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!isk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, isk_); } if (ipk_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getIpk()); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey)) { return super.equals(obj); } org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey other = (org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey) obj; boolean result = true; result = result && getIsk() .equals(other.getIsk()); result = result && (hasIpk() == other.hasIpk()); if (hasIpk()) { result = result && getIpk() .equals(other.getIpk()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + ISK_FIELD_NUMBER; hash = (53 * hash) + getIsk().hashCode(); if (hasIpk()) { hash = (37 * hash) + IPK_FIELD_NUMBER; hash = (53 * hash) + getIpk().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey 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.idemix.Idemix.IssuerKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey 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.idemix.Idemix.IssuerKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey 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.idemix.Idemix.IssuerKey parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     * IssuerKey specifies an issuer key pair that consists of
     * ISk - the issuer secret key and
     * IssuerPublicKey - the issuer public key
     * 
* * Protobuf type {@code IssuerKey} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:IssuerKey) org.hyperledger.fabric.protos.idemix.Idemix.IssuerKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_IssuerKey_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_IssuerKey_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey.class, org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey.Builder.class); } // Construct using org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); isk_ = com.google.protobuf.ByteString.EMPTY; if (ipkBuilder_ == null) { ipk_ = null; } else { ipk_ = null; ipkBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_IssuerKey_descriptor; } public org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey getDefaultInstanceForType() { return org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey.getDefaultInstance(); } public org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey build() { org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey buildPartial() { org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey result = new org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey(this); result.isk_ = isk_; if (ipkBuilder_ == null) { result.ipk_ = ipk_; } else { result.ipk_ = ipkBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey) { return mergeFrom((org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey other) { if (other == org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey.getDefaultInstance()) return this; if (other.getIsk() != com.google.protobuf.ByteString.EMPTY) { setIsk(other.getIsk()); } if (other.hasIpk()) { mergeIpk(other.getIpk()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString isk_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes isk = 1; */ public com.google.protobuf.ByteString getIsk() { return isk_; } /** * optional bytes isk = 1; */ public Builder setIsk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } isk_ = value; onChanged(); return this; } /** * optional bytes isk = 1; */ public Builder clearIsk() { isk_ = getDefaultInstance().getIsk(); onChanged(); return this; } private org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey ipk_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey, org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey.Builder, org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKeyOrBuilder> ipkBuilder_; /** * optional .IssuerPublicKey ipk = 2; */ public boolean hasIpk() { return ipkBuilder_ != null || ipk_ != null; } /** * optional .IssuerPublicKey ipk = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey getIpk() { if (ipkBuilder_ == null) { return ipk_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey.getDefaultInstance() : ipk_; } else { return ipkBuilder_.getMessage(); } } /** * optional .IssuerPublicKey ipk = 2; */ public Builder setIpk(org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey value) { if (ipkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ipk_ = value; onChanged(); } else { ipkBuilder_.setMessage(value); } return this; } /** * optional .IssuerPublicKey ipk = 2; */ public Builder setIpk( org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey.Builder builderForValue) { if (ipkBuilder_ == null) { ipk_ = builderForValue.build(); onChanged(); } else { ipkBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .IssuerPublicKey ipk = 2; */ public Builder mergeIpk(org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey value) { if (ipkBuilder_ == null) { if (ipk_ != null) { ipk_ = org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey.newBuilder(ipk_).mergeFrom(value).buildPartial(); } else { ipk_ = value; } onChanged(); } else { ipkBuilder_.mergeFrom(value); } return this; } /** * optional .IssuerPublicKey ipk = 2; */ public Builder clearIpk() { if (ipkBuilder_ == null) { ipk_ = null; onChanged(); } else { ipk_ = null; ipkBuilder_ = null; } return this; } /** * optional .IssuerPublicKey ipk = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey.Builder getIpkBuilder() { onChanged(); return getIpkFieldBuilder().getBuilder(); } /** * optional .IssuerPublicKey ipk = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKeyOrBuilder getIpkOrBuilder() { if (ipkBuilder_ != null) { return ipkBuilder_.getMessageOrBuilder(); } else { return ipk_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey.getDefaultInstance() : ipk_; } } /** * optional .IssuerPublicKey ipk = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey, org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey.Builder, org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKeyOrBuilder> getIpkFieldBuilder() { if (ipkBuilder_ == null) { ipkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey, org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey.Builder, org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKeyOrBuilder>( getIpk(), getParentForChildren(), isClean()); ipk_ = null; } return ipkBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:IssuerKey) } // @@protoc_insertion_point(class_scope:IssuerKey) private static final org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey(); } public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public IssuerKey parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IssuerKey(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CredentialOrBuilder extends // @@protoc_insertion_point(interface_extends:Credential) com.google.protobuf.MessageOrBuilder { /** * optional .ECP a = 1; */ boolean hasA(); /** * optional .ECP a = 1; */ org.hyperledger.fabric.protos.idemix.Idemix.ECP getA(); /** * optional .ECP a = 1; */ org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getAOrBuilder(); /** * optional .ECP b = 2; */ boolean hasB(); /** * optional .ECP b = 2; */ org.hyperledger.fabric.protos.idemix.Idemix.ECP getB(); /** * optional .ECP b = 2; */ org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getBOrBuilder(); /** * optional bytes e = 3; */ com.google.protobuf.ByteString getE(); /** * optional bytes s = 4; */ com.google.protobuf.ByteString getS(); /** * repeated bytes attrs = 5; */ java.util.List getAttrsList(); /** * repeated bytes attrs = 5; */ int getAttrsCount(); /** * repeated bytes attrs = 5; */ com.google.protobuf.ByteString getAttrs(int index); } /** *
   * Credential specifies a credential object that consists of
   * a, b, e, s - signature value
   * attrs - attribute values
   * 
* * Protobuf type {@code Credential} */ public static final class Credential extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Credential) CredentialOrBuilder { // Use Credential.newBuilder() to construct. private Credential(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Credential() { e_ = com.google.protobuf.ByteString.EMPTY; s_ = com.google.protobuf.ByteString.EMPTY; attrs_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Credential( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder subBuilder = null; if (a_ != null) { subBuilder = a_.toBuilder(); } a_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(a_); a_ = subBuilder.buildPartial(); } break; } case 18: { org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder subBuilder = null; if (b_ != null) { subBuilder = b_.toBuilder(); } b_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(b_); b_ = subBuilder.buildPartial(); } break; } case 26: { e_ = input.readBytes(); break; } case 34: { s_ = input.readBytes(); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { attrs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } attrs_.add(input.readBytes()); 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 { if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { attrs_ = java.util.Collections.unmodifiableList(attrs_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_Credential_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_Credential_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.Credential.class, org.hyperledger.fabric.protos.idemix.Idemix.Credential.Builder.class); } private int bitField0_; public static final int A_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.idemix.Idemix.ECP a_; /** * optional .ECP a = 1; */ public boolean hasA() { return a_ != null; } /** * optional .ECP a = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getA() { return a_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : a_; } /** * optional .ECP a = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getAOrBuilder() { return getA(); } public static final int B_FIELD_NUMBER = 2; private org.hyperledger.fabric.protos.idemix.Idemix.ECP b_; /** * optional .ECP b = 2; */ public boolean hasB() { return b_ != null; } /** * optional .ECP b = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getB() { return b_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : b_; } /** * optional .ECP b = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getBOrBuilder() { return getB(); } public static final int E_FIELD_NUMBER = 3; private com.google.protobuf.ByteString e_; /** * optional bytes e = 3; */ public com.google.protobuf.ByteString getE() { return e_; } public static final int S_FIELD_NUMBER = 4; private com.google.protobuf.ByteString s_; /** * optional bytes s = 4; */ public com.google.protobuf.ByteString getS() { return s_; } public static final int ATTRS_FIELD_NUMBER = 5; private java.util.List attrs_; /** * repeated bytes attrs = 5; */ public java.util.List getAttrsList() { return attrs_; } /** * repeated bytes attrs = 5; */ public int getAttrsCount() { return attrs_.size(); } /** * repeated bytes attrs = 5; */ public com.google.protobuf.ByteString getAttrs(int index) { return attrs_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (a_ != null) { output.writeMessage(1, getA()); } if (b_ != null) { output.writeMessage(2, getB()); } if (!e_.isEmpty()) { output.writeBytes(3, e_); } if (!s_.isEmpty()) { output.writeBytes(4, s_); } for (int i = 0; i < attrs_.size(); i++) { output.writeBytes(5, attrs_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (a_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getA()); } if (b_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getB()); } if (!e_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, e_); } if (!s_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, s_); } { int dataSize = 0; for (int i = 0; i < attrs_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(attrs_.get(i)); } size += dataSize; size += 1 * getAttrsList().size(); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.Credential)) { return super.equals(obj); } org.hyperledger.fabric.protos.idemix.Idemix.Credential other = (org.hyperledger.fabric.protos.idemix.Idemix.Credential) obj; boolean result = true; result = result && (hasA() == other.hasA()); if (hasA()) { result = result && getA() .equals(other.getA()); } result = result && (hasB() == other.hasB()); if (hasB()) { result = result && getB() .equals(other.getB()); } result = result && getE() .equals(other.getE()); result = result && getS() .equals(other.getS()); result = result && getAttrsList() .equals(other.getAttrsList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasA()) { hash = (37 * hash) + A_FIELD_NUMBER; hash = (53 * hash) + getA().hashCode(); } if (hasB()) { hash = (37 * hash) + B_FIELD_NUMBER; hash = (53 * hash) + getB().hashCode(); } hash = (37 * hash) + E_FIELD_NUMBER; hash = (53 * hash) + getE().hashCode(); hash = (37 * hash) + S_FIELD_NUMBER; hash = (53 * hash) + getS().hashCode(); if (getAttrsCount() > 0) { hash = (37 * hash) + ATTRS_FIELD_NUMBER; hash = (53 * hash) + getAttrsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.idemix.Idemix.Credential parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.Credential 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.idemix.Idemix.Credential parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.Credential parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.idemix.Idemix.Credential parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.Credential 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.idemix.Idemix.Credential parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.Credential 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.idemix.Idemix.Credential parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.Credential parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.idemix.Idemix.Credential prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     * Credential specifies a credential object that consists of
     * a, b, e, s - signature value
     * attrs - attribute values
     * 
* * Protobuf type {@code Credential} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Credential) org.hyperledger.fabric.protos.idemix.Idemix.CredentialOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_Credential_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_Credential_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.Credential.class, org.hyperledger.fabric.protos.idemix.Idemix.Credential.Builder.class); } // Construct using org.hyperledger.fabric.protos.idemix.Idemix.Credential.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (aBuilder_ == null) { a_ = null; } else { a_ = null; aBuilder_ = null; } if (bBuilder_ == null) { b_ = null; } else { b_ = null; bBuilder_ = null; } e_ = com.google.protobuf.ByteString.EMPTY; s_ = com.google.protobuf.ByteString.EMPTY; attrs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_Credential_descriptor; } public org.hyperledger.fabric.protos.idemix.Idemix.Credential getDefaultInstanceForType() { return org.hyperledger.fabric.protos.idemix.Idemix.Credential.getDefaultInstance(); } public org.hyperledger.fabric.protos.idemix.Idemix.Credential build() { org.hyperledger.fabric.protos.idemix.Idemix.Credential result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.idemix.Idemix.Credential buildPartial() { org.hyperledger.fabric.protos.idemix.Idemix.Credential result = new org.hyperledger.fabric.protos.idemix.Idemix.Credential(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (aBuilder_ == null) { result.a_ = a_; } else { result.a_ = aBuilder_.build(); } if (bBuilder_ == null) { result.b_ = b_; } else { result.b_ = bBuilder_.build(); } result.e_ = e_; result.s_ = s_; if (((bitField0_ & 0x00000010) == 0x00000010)) { attrs_ = java.util.Collections.unmodifiableList(attrs_); bitField0_ = (bitField0_ & ~0x00000010); } result.attrs_ = attrs_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.idemix.Idemix.Credential) { return mergeFrom((org.hyperledger.fabric.protos.idemix.Idemix.Credential)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.idemix.Idemix.Credential other) { if (other == org.hyperledger.fabric.protos.idemix.Idemix.Credential.getDefaultInstance()) return this; if (other.hasA()) { mergeA(other.getA()); } if (other.hasB()) { mergeB(other.getB()); } if (other.getE() != com.google.protobuf.ByteString.EMPTY) { setE(other.getE()); } if (other.getS() != com.google.protobuf.ByteString.EMPTY) { setS(other.getS()); } if (!other.attrs_.isEmpty()) { if (attrs_.isEmpty()) { attrs_ = other.attrs_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureAttrsIsMutable(); attrs_.addAll(other.attrs_); } onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.idemix.Idemix.Credential parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.idemix.Idemix.Credential) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.hyperledger.fabric.protos.idemix.Idemix.ECP a_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> aBuilder_; /** * optional .ECP a = 1; */ public boolean hasA() { return aBuilder_ != null || a_ != null; } /** * optional .ECP a = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getA() { if (aBuilder_ == null) { return a_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : a_; } else { return aBuilder_.getMessage(); } } /** * optional .ECP a = 1; */ public Builder setA(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (aBuilder_ == null) { if (value == null) { throw new NullPointerException(); } a_ = value; onChanged(); } else { aBuilder_.setMessage(value); } return this; } /** * optional .ECP a = 1; */ public Builder setA( org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder builderForValue) { if (aBuilder_ == null) { a_ = builderForValue.build(); onChanged(); } else { aBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .ECP a = 1; */ public Builder mergeA(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (aBuilder_ == null) { if (a_ != null) { a_ = org.hyperledger.fabric.protos.idemix.Idemix.ECP.newBuilder(a_).mergeFrom(value).buildPartial(); } else { a_ = value; } onChanged(); } else { aBuilder_.mergeFrom(value); } return this; } /** * optional .ECP a = 1; */ public Builder clearA() { if (aBuilder_ == null) { a_ = null; onChanged(); } else { a_ = null; aBuilder_ = null; } return this; } /** * optional .ECP a = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getABuilder() { onChanged(); return getAFieldBuilder().getBuilder(); } /** * optional .ECP a = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getAOrBuilder() { if (aBuilder_ != null) { return aBuilder_.getMessageOrBuilder(); } else { return a_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : a_; } } /** * optional .ECP a = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> getAFieldBuilder() { if (aBuilder_ == null) { aBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder>( getA(), getParentForChildren(), isClean()); a_ = null; } return aBuilder_; } private org.hyperledger.fabric.protos.idemix.Idemix.ECP b_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> bBuilder_; /** * optional .ECP b = 2; */ public boolean hasB() { return bBuilder_ != null || b_ != null; } /** * optional .ECP b = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getB() { if (bBuilder_ == null) { return b_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : b_; } else { return bBuilder_.getMessage(); } } /** * optional .ECP b = 2; */ public Builder setB(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (bBuilder_ == null) { if (value == null) { throw new NullPointerException(); } b_ = value; onChanged(); } else { bBuilder_.setMessage(value); } return this; } /** * optional .ECP b = 2; */ public Builder setB( org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder builderForValue) { if (bBuilder_ == null) { b_ = builderForValue.build(); onChanged(); } else { bBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .ECP b = 2; */ public Builder mergeB(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (bBuilder_ == null) { if (b_ != null) { b_ = org.hyperledger.fabric.protos.idemix.Idemix.ECP.newBuilder(b_).mergeFrom(value).buildPartial(); } else { b_ = value; } onChanged(); } else { bBuilder_.mergeFrom(value); } return this; } /** * optional .ECP b = 2; */ public Builder clearB() { if (bBuilder_ == null) { b_ = null; onChanged(); } else { b_ = null; bBuilder_ = null; } return this; } /** * optional .ECP b = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getBBuilder() { onChanged(); return getBFieldBuilder().getBuilder(); } /** * optional .ECP b = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getBOrBuilder() { if (bBuilder_ != null) { return bBuilder_.getMessageOrBuilder(); } else { return b_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : b_; } } /** * optional .ECP b = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> getBFieldBuilder() { if (bBuilder_ == null) { bBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder>( getB(), getParentForChildren(), isClean()); b_ = null; } return bBuilder_; } private com.google.protobuf.ByteString e_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes e = 3; */ public com.google.protobuf.ByteString getE() { return e_; } /** * optional bytes e = 3; */ public Builder setE(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } e_ = value; onChanged(); return this; } /** * optional bytes e = 3; */ public Builder clearE() { e_ = getDefaultInstance().getE(); onChanged(); return this; } private com.google.protobuf.ByteString s_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes s = 4; */ public com.google.protobuf.ByteString getS() { return s_; } /** * optional bytes s = 4; */ public Builder setS(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } s_ = value; onChanged(); return this; } /** * optional bytes s = 4; */ public Builder clearS() { s_ = getDefaultInstance().getS(); onChanged(); return this; } private java.util.List attrs_ = java.util.Collections.emptyList(); private void ensureAttrsIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { attrs_ = new java.util.ArrayList(attrs_); bitField0_ |= 0x00000010; } } /** * repeated bytes attrs = 5; */ public java.util.List getAttrsList() { return java.util.Collections.unmodifiableList(attrs_); } /** * repeated bytes attrs = 5; */ public int getAttrsCount() { return attrs_.size(); } /** * repeated bytes attrs = 5; */ public com.google.protobuf.ByteString getAttrs(int index) { return attrs_.get(index); } /** * repeated bytes attrs = 5; */ public Builder setAttrs( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAttrsIsMutable(); attrs_.set(index, value); onChanged(); return this; } /** * repeated bytes attrs = 5; */ public Builder addAttrs(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAttrsIsMutable(); attrs_.add(value); onChanged(); return this; } /** * repeated bytes attrs = 5; */ public Builder addAllAttrs( java.lang.Iterable values) { ensureAttrsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attrs_); onChanged(); return this; } /** * repeated bytes attrs = 5; */ public Builder clearAttrs() { attrs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:Credential) } // @@protoc_insertion_point(class_scope:Credential) private static final org.hyperledger.fabric.protos.idemix.Idemix.Credential DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.idemix.Idemix.Credential(); } public static org.hyperledger.fabric.protos.idemix.Idemix.Credential getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Credential parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Credential(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.idemix.Idemix.Credential getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CredRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:CredRequest) com.google.protobuf.MessageOrBuilder { /** * optional .ECP nym = 1; */ boolean hasNym(); /** * optional .ECP nym = 1; */ org.hyperledger.fabric.protos.idemix.Idemix.ECP getNym(); /** * optional .ECP nym = 1; */ org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getNymOrBuilder(); /** * optional bytes issuer_nonce = 2; */ com.google.protobuf.ByteString getIssuerNonce(); /** * optional bytes proof_c = 3; */ com.google.protobuf.ByteString getProofC(); /** * optional bytes proof_s = 4; */ com.google.protobuf.ByteString getProofS(); } /** *
   * CredRequest specifies a credential request object that consists of
   * nym - a pseudonym, which is a commitment to the user secret
   * issuer_nonce - a random nonce provided by the issuer
   * proof_c, proof_s - a zero-knowledge proof of knowledge of the
   * user secret inside Nym
   * 
* * Protobuf type {@code CredRequest} */ public static final class CredRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:CredRequest) CredRequestOrBuilder { // Use CredRequest.newBuilder() to construct. private CredRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CredRequest() { issuerNonce_ = com.google.protobuf.ByteString.EMPTY; proofC_ = com.google.protobuf.ByteString.EMPTY; proofS_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private CredRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder subBuilder = null; if (nym_ != null) { subBuilder = nym_.toBuilder(); } nym_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(nym_); nym_ = subBuilder.buildPartial(); } break; } case 18: { issuerNonce_ = input.readBytes(); break; } case 26: { proofC_ = input.readBytes(); break; } case 34: { proofS_ = input.readBytes(); 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_CredRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_CredRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.CredRequest.class, org.hyperledger.fabric.protos.idemix.Idemix.CredRequest.Builder.class); } public static final int NYM_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.idemix.Idemix.ECP nym_; /** * optional .ECP nym = 1; */ public boolean hasNym() { return nym_ != null; } /** * optional .ECP nym = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getNym() { return nym_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : nym_; } /** * optional .ECP nym = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getNymOrBuilder() { return getNym(); } public static final int ISSUER_NONCE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString issuerNonce_; /** * optional bytes issuer_nonce = 2; */ public com.google.protobuf.ByteString getIssuerNonce() { return issuerNonce_; } public static final int PROOF_C_FIELD_NUMBER = 3; private com.google.protobuf.ByteString proofC_; /** * optional bytes proof_c = 3; */ public com.google.protobuf.ByteString getProofC() { return proofC_; } public static final int PROOF_S_FIELD_NUMBER = 4; private com.google.protobuf.ByteString proofS_; /** * optional bytes proof_s = 4; */ public com.google.protobuf.ByteString getProofS() { return proofS_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (nym_ != null) { output.writeMessage(1, getNym()); } if (!issuerNonce_.isEmpty()) { output.writeBytes(2, issuerNonce_); } if (!proofC_.isEmpty()) { output.writeBytes(3, proofC_); } if (!proofS_.isEmpty()) { output.writeBytes(4, proofS_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (nym_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getNym()); } if (!issuerNonce_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, issuerNonce_); } if (!proofC_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, proofC_); } if (!proofS_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, proofS_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.CredRequest)) { return super.equals(obj); } org.hyperledger.fabric.protos.idemix.Idemix.CredRequest other = (org.hyperledger.fabric.protos.idemix.Idemix.CredRequest) obj; boolean result = true; result = result && (hasNym() == other.hasNym()); if (hasNym()) { result = result && getNym() .equals(other.getNym()); } result = result && getIssuerNonce() .equals(other.getIssuerNonce()); result = result && getProofC() .equals(other.getProofC()); result = result && getProofS() .equals(other.getProofS()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasNym()) { hash = (37 * hash) + NYM_FIELD_NUMBER; hash = (53 * hash) + getNym().hashCode(); } hash = (37 * hash) + ISSUER_NONCE_FIELD_NUMBER; hash = (53 * hash) + getIssuerNonce().hashCode(); hash = (37 * hash) + PROOF_C_FIELD_NUMBER; hash = (53 * hash) + getProofC().hashCode(); hash = (37 * hash) + PROOF_S_FIELD_NUMBER; hash = (53 * hash) + getProofS().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.idemix.Idemix.CredRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.CredRequest 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.idemix.Idemix.CredRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.CredRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.idemix.Idemix.CredRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.CredRequest 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.idemix.Idemix.CredRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.CredRequest 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.idemix.Idemix.CredRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.CredRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.idemix.Idemix.CredRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     * CredRequest specifies a credential request object that consists of
     * nym - a pseudonym, which is a commitment to the user secret
     * issuer_nonce - a random nonce provided by the issuer
     * proof_c, proof_s - a zero-knowledge proof of knowledge of the
     * user secret inside Nym
     * 
* * Protobuf type {@code CredRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:CredRequest) org.hyperledger.fabric.protos.idemix.Idemix.CredRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_CredRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_CredRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.CredRequest.class, org.hyperledger.fabric.protos.idemix.Idemix.CredRequest.Builder.class); } // Construct using org.hyperledger.fabric.protos.idemix.Idemix.CredRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (nymBuilder_ == null) { nym_ = null; } else { nym_ = null; nymBuilder_ = null; } issuerNonce_ = com.google.protobuf.ByteString.EMPTY; proofC_ = com.google.protobuf.ByteString.EMPTY; proofS_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_CredRequest_descriptor; } public org.hyperledger.fabric.protos.idemix.Idemix.CredRequest getDefaultInstanceForType() { return org.hyperledger.fabric.protos.idemix.Idemix.CredRequest.getDefaultInstance(); } public org.hyperledger.fabric.protos.idemix.Idemix.CredRequest build() { org.hyperledger.fabric.protos.idemix.Idemix.CredRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.idemix.Idemix.CredRequest buildPartial() { org.hyperledger.fabric.protos.idemix.Idemix.CredRequest result = new org.hyperledger.fabric.protos.idemix.Idemix.CredRequest(this); if (nymBuilder_ == null) { result.nym_ = nym_; } else { result.nym_ = nymBuilder_.build(); } result.issuerNonce_ = issuerNonce_; result.proofC_ = proofC_; result.proofS_ = proofS_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.idemix.Idemix.CredRequest) { return mergeFrom((org.hyperledger.fabric.protos.idemix.Idemix.CredRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.idemix.Idemix.CredRequest other) { if (other == org.hyperledger.fabric.protos.idemix.Idemix.CredRequest.getDefaultInstance()) return this; if (other.hasNym()) { mergeNym(other.getNym()); } if (other.getIssuerNonce() != com.google.protobuf.ByteString.EMPTY) { setIssuerNonce(other.getIssuerNonce()); } if (other.getProofC() != com.google.protobuf.ByteString.EMPTY) { setProofC(other.getProofC()); } if (other.getProofS() != com.google.protobuf.ByteString.EMPTY) { setProofS(other.getProofS()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.idemix.Idemix.CredRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.idemix.Idemix.CredRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.hyperledger.fabric.protos.idemix.Idemix.ECP nym_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> nymBuilder_; /** * optional .ECP nym = 1; */ public boolean hasNym() { return nymBuilder_ != null || nym_ != null; } /** * optional .ECP nym = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getNym() { if (nymBuilder_ == null) { return nym_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : nym_; } else { return nymBuilder_.getMessage(); } } /** * optional .ECP nym = 1; */ public Builder setNym(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (nymBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nym_ = value; onChanged(); } else { nymBuilder_.setMessage(value); } return this; } /** * optional .ECP nym = 1; */ public Builder setNym( org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder builderForValue) { if (nymBuilder_ == null) { nym_ = builderForValue.build(); onChanged(); } else { nymBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .ECP nym = 1; */ public Builder mergeNym(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (nymBuilder_ == null) { if (nym_ != null) { nym_ = org.hyperledger.fabric.protos.idemix.Idemix.ECP.newBuilder(nym_).mergeFrom(value).buildPartial(); } else { nym_ = value; } onChanged(); } else { nymBuilder_.mergeFrom(value); } return this; } /** * optional .ECP nym = 1; */ public Builder clearNym() { if (nymBuilder_ == null) { nym_ = null; onChanged(); } else { nym_ = null; nymBuilder_ = null; } return this; } /** * optional .ECP nym = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getNymBuilder() { onChanged(); return getNymFieldBuilder().getBuilder(); } /** * optional .ECP nym = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getNymOrBuilder() { if (nymBuilder_ != null) { return nymBuilder_.getMessageOrBuilder(); } else { return nym_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : nym_; } } /** * optional .ECP nym = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> getNymFieldBuilder() { if (nymBuilder_ == null) { nymBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder>( getNym(), getParentForChildren(), isClean()); nym_ = null; } return nymBuilder_; } private com.google.protobuf.ByteString issuerNonce_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes issuer_nonce = 2; */ public com.google.protobuf.ByteString getIssuerNonce() { return issuerNonce_; } /** * optional bytes issuer_nonce = 2; */ public Builder setIssuerNonce(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } issuerNonce_ = value; onChanged(); return this; } /** * optional bytes issuer_nonce = 2; */ public Builder clearIssuerNonce() { issuerNonce_ = getDefaultInstance().getIssuerNonce(); onChanged(); return this; } private com.google.protobuf.ByteString proofC_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes proof_c = 3; */ public com.google.protobuf.ByteString getProofC() { return proofC_; } /** * optional bytes proof_c = 3; */ public Builder setProofC(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } proofC_ = value; onChanged(); return this; } /** * optional bytes proof_c = 3; */ public Builder clearProofC() { proofC_ = getDefaultInstance().getProofC(); onChanged(); return this; } private com.google.protobuf.ByteString proofS_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes proof_s = 4; */ public com.google.protobuf.ByteString getProofS() { return proofS_; } /** * optional bytes proof_s = 4; */ public Builder setProofS(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } proofS_ = value; onChanged(); return this; } /** * optional bytes proof_s = 4; */ public Builder clearProofS() { proofS_ = getDefaultInstance().getProofS(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:CredRequest) } // @@protoc_insertion_point(class_scope:CredRequest) private static final org.hyperledger.fabric.protos.idemix.Idemix.CredRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.idemix.Idemix.CredRequest(); } public static org.hyperledger.fabric.protos.idemix.Idemix.CredRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CredRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CredRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.idemix.Idemix.CredRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SignatureOrBuilder extends // @@protoc_insertion_point(interface_extends:Signature) com.google.protobuf.MessageOrBuilder { /** * optional .ECP a_prime = 1; */ boolean hasAPrime(); /** * optional .ECP a_prime = 1; */ org.hyperledger.fabric.protos.idemix.Idemix.ECP getAPrime(); /** * optional .ECP a_prime = 1; */ org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getAPrimeOrBuilder(); /** * optional .ECP a_bar = 2; */ boolean hasABar(); /** * optional .ECP a_bar = 2; */ org.hyperledger.fabric.protos.idemix.Idemix.ECP getABar(); /** * optional .ECP a_bar = 2; */ org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getABarOrBuilder(); /** * optional .ECP b_prime = 3; */ boolean hasBPrime(); /** * optional .ECP b_prime = 3; */ org.hyperledger.fabric.protos.idemix.Idemix.ECP getBPrime(); /** * optional .ECP b_prime = 3; */ org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getBPrimeOrBuilder(); /** * optional bytes proof_c = 4; */ com.google.protobuf.ByteString getProofC(); /** * optional bytes proof_s_sk = 5; */ com.google.protobuf.ByteString getProofSSk(); /** * optional bytes proof_s_e = 6; */ com.google.protobuf.ByteString getProofSE(); /** * optional bytes proof_s_r2 = 7; */ com.google.protobuf.ByteString getProofSR2(); /** * optional bytes proof_s_r3 = 8; */ com.google.protobuf.ByteString getProofSR3(); /** * optional bytes proof_s_s_prime = 9; */ com.google.protobuf.ByteString getProofSSPrime(); /** * repeated bytes proof_s_attrs = 10; */ java.util.List getProofSAttrsList(); /** * repeated bytes proof_s_attrs = 10; */ int getProofSAttrsCount(); /** * repeated bytes proof_s_attrs = 10; */ com.google.protobuf.ByteString getProofSAttrs(int index); /** * optional bytes nonce = 11; */ com.google.protobuf.ByteString getNonce(); /** * optional .ECP nym = 12; */ boolean hasNym(); /** * optional .ECP nym = 12; */ org.hyperledger.fabric.protos.idemix.Idemix.ECP getNym(); /** * optional .ECP nym = 12; */ org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getNymOrBuilder(); /** * optional bytes proof_s_r_nym = 13; */ com.google.protobuf.ByteString getProofSRNym(); /** * optional .ECP2 revocation_epoch_pk = 14; */ boolean hasRevocationEpochPk(); /** * optional .ECP2 revocation_epoch_pk = 14; */ org.hyperledger.fabric.protos.idemix.Idemix.ECP2 getRevocationEpochPk(); /** * optional .ECP2 revocation_epoch_pk = 14; */ org.hyperledger.fabric.protos.idemix.Idemix.ECP2OrBuilder getRevocationEpochPkOrBuilder(); /** * optional bytes revocation_pk_sig = 15; */ com.google.protobuf.ByteString getRevocationPkSig(); /** * optional int64 epoch = 16; */ long getEpoch(); /** * optional .NonRevocationProof non_revocation_proof = 17; */ boolean hasNonRevocationProof(); /** * optional .NonRevocationProof non_revocation_proof = 17; */ org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof getNonRevocationProof(); /** * optional .NonRevocationProof non_revocation_proof = 17; */ org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProofOrBuilder getNonRevocationProofOrBuilder(); } /** *
   * Signature specifies a signature object that consists of
   * a_prime, a_bar, b_prime, proof_* - randomized credential signature values
   * and a zero-knowledge proof of knowledge of a credential
   * and the corresponding user secret together with the attribute values
   * nonce - a fresh nonce used for the signature
   * nym - a fresh pseudonym (a commitment to to the user secret)
   * 
* * Protobuf type {@code Signature} */ public static final class Signature extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Signature) SignatureOrBuilder { // Use Signature.newBuilder() to construct. private Signature(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Signature() { proofC_ = com.google.protobuf.ByteString.EMPTY; proofSSk_ = com.google.protobuf.ByteString.EMPTY; proofSE_ = com.google.protobuf.ByteString.EMPTY; proofSR2_ = com.google.protobuf.ByteString.EMPTY; proofSR3_ = com.google.protobuf.ByteString.EMPTY; proofSSPrime_ = com.google.protobuf.ByteString.EMPTY; proofSAttrs_ = java.util.Collections.emptyList(); nonce_ = com.google.protobuf.ByteString.EMPTY; proofSRNym_ = com.google.protobuf.ByteString.EMPTY; revocationPkSig_ = com.google.protobuf.ByteString.EMPTY; epoch_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Signature( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder subBuilder = null; if (aPrime_ != null) { subBuilder = aPrime_.toBuilder(); } aPrime_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(aPrime_); aPrime_ = subBuilder.buildPartial(); } break; } case 18: { org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder subBuilder = null; if (aBar_ != null) { subBuilder = aBar_.toBuilder(); } aBar_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(aBar_); aBar_ = subBuilder.buildPartial(); } break; } case 26: { org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder subBuilder = null; if (bPrime_ != null) { subBuilder = bPrime_.toBuilder(); } bPrime_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(bPrime_); bPrime_ = subBuilder.buildPartial(); } break; } case 34: { proofC_ = input.readBytes(); break; } case 42: { proofSSk_ = input.readBytes(); break; } case 50: { proofSE_ = input.readBytes(); break; } case 58: { proofSR2_ = input.readBytes(); break; } case 66: { proofSR3_ = input.readBytes(); break; } case 74: { proofSSPrime_ = input.readBytes(); break; } case 82: { if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { proofSAttrs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } proofSAttrs_.add(input.readBytes()); break; } case 90: { nonce_ = input.readBytes(); break; } case 98: { org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder subBuilder = null; if (nym_ != null) { subBuilder = nym_.toBuilder(); } nym_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(nym_); nym_ = subBuilder.buildPartial(); } break; } case 106: { proofSRNym_ = input.readBytes(); break; } case 114: { org.hyperledger.fabric.protos.idemix.Idemix.ECP2.Builder subBuilder = null; if (revocationEpochPk_ != null) { subBuilder = revocationEpochPk_.toBuilder(); } revocationEpochPk_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP2.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(revocationEpochPk_); revocationEpochPk_ = subBuilder.buildPartial(); } break; } case 122: { revocationPkSig_ = input.readBytes(); break; } case 128: { epoch_ = input.readInt64(); break; } case 138: { org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.Builder subBuilder = null; if (nonRevocationProof_ != null) { subBuilder = nonRevocationProof_.toBuilder(); } nonRevocationProof_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(nonRevocationProof_); nonRevocationProof_ = subBuilder.buildPartial(); } 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 { if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { proofSAttrs_ = java.util.Collections.unmodifiableList(proofSAttrs_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_Signature_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_Signature_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.Signature.class, org.hyperledger.fabric.protos.idemix.Idemix.Signature.Builder.class); } private int bitField0_; public static final int A_PRIME_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.idemix.Idemix.ECP aPrime_; /** * optional .ECP a_prime = 1; */ public boolean hasAPrime() { return aPrime_ != null; } /** * optional .ECP a_prime = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getAPrime() { return aPrime_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : aPrime_; } /** * optional .ECP a_prime = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getAPrimeOrBuilder() { return getAPrime(); } public static final int A_BAR_FIELD_NUMBER = 2; private org.hyperledger.fabric.protos.idemix.Idemix.ECP aBar_; /** * optional .ECP a_bar = 2; */ public boolean hasABar() { return aBar_ != null; } /** * optional .ECP a_bar = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getABar() { return aBar_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : aBar_; } /** * optional .ECP a_bar = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getABarOrBuilder() { return getABar(); } public static final int B_PRIME_FIELD_NUMBER = 3; private org.hyperledger.fabric.protos.idemix.Idemix.ECP bPrime_; /** * optional .ECP b_prime = 3; */ public boolean hasBPrime() { return bPrime_ != null; } /** * optional .ECP b_prime = 3; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getBPrime() { return bPrime_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : bPrime_; } /** * optional .ECP b_prime = 3; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getBPrimeOrBuilder() { return getBPrime(); } public static final int PROOF_C_FIELD_NUMBER = 4; private com.google.protobuf.ByteString proofC_; /** * optional bytes proof_c = 4; */ public com.google.protobuf.ByteString getProofC() { return proofC_; } public static final int PROOF_S_SK_FIELD_NUMBER = 5; private com.google.protobuf.ByteString proofSSk_; /** * optional bytes proof_s_sk = 5; */ public com.google.protobuf.ByteString getProofSSk() { return proofSSk_; } public static final int PROOF_S_E_FIELD_NUMBER = 6; private com.google.protobuf.ByteString proofSE_; /** * optional bytes proof_s_e = 6; */ public com.google.protobuf.ByteString getProofSE() { return proofSE_; } public static final int PROOF_S_R2_FIELD_NUMBER = 7; private com.google.protobuf.ByteString proofSR2_; /** * optional bytes proof_s_r2 = 7; */ public com.google.protobuf.ByteString getProofSR2() { return proofSR2_; } public static final int PROOF_S_R3_FIELD_NUMBER = 8; private com.google.protobuf.ByteString proofSR3_; /** * optional bytes proof_s_r3 = 8; */ public com.google.protobuf.ByteString getProofSR3() { return proofSR3_; } public static final int PROOF_S_S_PRIME_FIELD_NUMBER = 9; private com.google.protobuf.ByteString proofSSPrime_; /** * optional bytes proof_s_s_prime = 9; */ public com.google.protobuf.ByteString getProofSSPrime() { return proofSSPrime_; } public static final int PROOF_S_ATTRS_FIELD_NUMBER = 10; private java.util.List proofSAttrs_; /** * repeated bytes proof_s_attrs = 10; */ public java.util.List getProofSAttrsList() { return proofSAttrs_; } /** * repeated bytes proof_s_attrs = 10; */ public int getProofSAttrsCount() { return proofSAttrs_.size(); } /** * repeated bytes proof_s_attrs = 10; */ public com.google.protobuf.ByteString getProofSAttrs(int index) { return proofSAttrs_.get(index); } public static final int NONCE_FIELD_NUMBER = 11; private com.google.protobuf.ByteString nonce_; /** * optional bytes nonce = 11; */ public com.google.protobuf.ByteString getNonce() { return nonce_; } public static final int NYM_FIELD_NUMBER = 12; private org.hyperledger.fabric.protos.idemix.Idemix.ECP nym_; /** * optional .ECP nym = 12; */ public boolean hasNym() { return nym_ != null; } /** * optional .ECP nym = 12; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getNym() { return nym_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : nym_; } /** * optional .ECP nym = 12; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getNymOrBuilder() { return getNym(); } public static final int PROOF_S_R_NYM_FIELD_NUMBER = 13; private com.google.protobuf.ByteString proofSRNym_; /** * optional bytes proof_s_r_nym = 13; */ public com.google.protobuf.ByteString getProofSRNym() { return proofSRNym_; } public static final int REVOCATION_EPOCH_PK_FIELD_NUMBER = 14; private org.hyperledger.fabric.protos.idemix.Idemix.ECP2 revocationEpochPk_; /** * optional .ECP2 revocation_epoch_pk = 14; */ public boolean hasRevocationEpochPk() { return revocationEpochPk_ != null; } /** * optional .ECP2 revocation_epoch_pk = 14; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP2 getRevocationEpochPk() { return revocationEpochPk_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP2.getDefaultInstance() : revocationEpochPk_; } /** * optional .ECP2 revocation_epoch_pk = 14; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP2OrBuilder getRevocationEpochPkOrBuilder() { return getRevocationEpochPk(); } public static final int REVOCATION_PK_SIG_FIELD_NUMBER = 15; private com.google.protobuf.ByteString revocationPkSig_; /** * optional bytes revocation_pk_sig = 15; */ public com.google.protobuf.ByteString getRevocationPkSig() { return revocationPkSig_; } public static final int EPOCH_FIELD_NUMBER = 16; private long epoch_; /** * optional int64 epoch = 16; */ public long getEpoch() { return epoch_; } public static final int NON_REVOCATION_PROOF_FIELD_NUMBER = 17; private org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof nonRevocationProof_; /** * optional .NonRevocationProof non_revocation_proof = 17; */ public boolean hasNonRevocationProof() { return nonRevocationProof_ != null; } /** * optional .NonRevocationProof non_revocation_proof = 17; */ public org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof getNonRevocationProof() { return nonRevocationProof_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.getDefaultInstance() : nonRevocationProof_; } /** * optional .NonRevocationProof non_revocation_proof = 17; */ public org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProofOrBuilder getNonRevocationProofOrBuilder() { return getNonRevocationProof(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (aPrime_ != null) { output.writeMessage(1, getAPrime()); } if (aBar_ != null) { output.writeMessage(2, getABar()); } if (bPrime_ != null) { output.writeMessage(3, getBPrime()); } if (!proofC_.isEmpty()) { output.writeBytes(4, proofC_); } if (!proofSSk_.isEmpty()) { output.writeBytes(5, proofSSk_); } if (!proofSE_.isEmpty()) { output.writeBytes(6, proofSE_); } if (!proofSR2_.isEmpty()) { output.writeBytes(7, proofSR2_); } if (!proofSR3_.isEmpty()) { output.writeBytes(8, proofSR3_); } if (!proofSSPrime_.isEmpty()) { output.writeBytes(9, proofSSPrime_); } for (int i = 0; i < proofSAttrs_.size(); i++) { output.writeBytes(10, proofSAttrs_.get(i)); } if (!nonce_.isEmpty()) { output.writeBytes(11, nonce_); } if (nym_ != null) { output.writeMessage(12, getNym()); } if (!proofSRNym_.isEmpty()) { output.writeBytes(13, proofSRNym_); } if (revocationEpochPk_ != null) { output.writeMessage(14, getRevocationEpochPk()); } if (!revocationPkSig_.isEmpty()) { output.writeBytes(15, revocationPkSig_); } if (epoch_ != 0L) { output.writeInt64(16, epoch_); } if (nonRevocationProof_ != null) { output.writeMessage(17, getNonRevocationProof()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (aPrime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getAPrime()); } if (aBar_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getABar()); } if (bPrime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getBPrime()); } if (!proofC_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, proofC_); } if (!proofSSk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, proofSSk_); } if (!proofSE_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, proofSE_); } if (!proofSR2_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, proofSR2_); } if (!proofSR3_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, proofSR3_); } if (!proofSSPrime_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, proofSSPrime_); } { int dataSize = 0; for (int i = 0; i < proofSAttrs_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(proofSAttrs_.get(i)); } size += dataSize; size += 1 * getProofSAttrsList().size(); } if (!nonce_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(11, nonce_); } if (nym_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getNym()); } if (!proofSRNym_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(13, proofSRNym_); } if (revocationEpochPk_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getRevocationEpochPk()); } if (!revocationPkSig_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(15, revocationPkSig_); } if (epoch_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(16, epoch_); } if (nonRevocationProof_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, getNonRevocationProof()); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.Signature)) { return super.equals(obj); } org.hyperledger.fabric.protos.idemix.Idemix.Signature other = (org.hyperledger.fabric.protos.idemix.Idemix.Signature) obj; boolean result = true; result = result && (hasAPrime() == other.hasAPrime()); if (hasAPrime()) { result = result && getAPrime() .equals(other.getAPrime()); } result = result && (hasABar() == other.hasABar()); if (hasABar()) { result = result && getABar() .equals(other.getABar()); } result = result && (hasBPrime() == other.hasBPrime()); if (hasBPrime()) { result = result && getBPrime() .equals(other.getBPrime()); } result = result && getProofC() .equals(other.getProofC()); result = result && getProofSSk() .equals(other.getProofSSk()); result = result && getProofSE() .equals(other.getProofSE()); result = result && getProofSR2() .equals(other.getProofSR2()); result = result && getProofSR3() .equals(other.getProofSR3()); result = result && getProofSSPrime() .equals(other.getProofSSPrime()); result = result && getProofSAttrsList() .equals(other.getProofSAttrsList()); result = result && getNonce() .equals(other.getNonce()); result = result && (hasNym() == other.hasNym()); if (hasNym()) { result = result && getNym() .equals(other.getNym()); } result = result && getProofSRNym() .equals(other.getProofSRNym()); result = result && (hasRevocationEpochPk() == other.hasRevocationEpochPk()); if (hasRevocationEpochPk()) { result = result && getRevocationEpochPk() .equals(other.getRevocationEpochPk()); } result = result && getRevocationPkSig() .equals(other.getRevocationPkSig()); result = result && (getEpoch() == other.getEpoch()); result = result && (hasNonRevocationProof() == other.hasNonRevocationProof()); if (hasNonRevocationProof()) { result = result && getNonRevocationProof() .equals(other.getNonRevocationProof()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasAPrime()) { hash = (37 * hash) + A_PRIME_FIELD_NUMBER; hash = (53 * hash) + getAPrime().hashCode(); } if (hasABar()) { hash = (37 * hash) + A_BAR_FIELD_NUMBER; hash = (53 * hash) + getABar().hashCode(); } if (hasBPrime()) { hash = (37 * hash) + B_PRIME_FIELD_NUMBER; hash = (53 * hash) + getBPrime().hashCode(); } hash = (37 * hash) + PROOF_C_FIELD_NUMBER; hash = (53 * hash) + getProofC().hashCode(); hash = (37 * hash) + PROOF_S_SK_FIELD_NUMBER; hash = (53 * hash) + getProofSSk().hashCode(); hash = (37 * hash) + PROOF_S_E_FIELD_NUMBER; hash = (53 * hash) + getProofSE().hashCode(); hash = (37 * hash) + PROOF_S_R2_FIELD_NUMBER; hash = (53 * hash) + getProofSR2().hashCode(); hash = (37 * hash) + PROOF_S_R3_FIELD_NUMBER; hash = (53 * hash) + getProofSR3().hashCode(); hash = (37 * hash) + PROOF_S_S_PRIME_FIELD_NUMBER; hash = (53 * hash) + getProofSSPrime().hashCode(); if (getProofSAttrsCount() > 0) { hash = (37 * hash) + PROOF_S_ATTRS_FIELD_NUMBER; hash = (53 * hash) + getProofSAttrsList().hashCode(); } hash = (37 * hash) + NONCE_FIELD_NUMBER; hash = (53 * hash) + getNonce().hashCode(); if (hasNym()) { hash = (37 * hash) + NYM_FIELD_NUMBER; hash = (53 * hash) + getNym().hashCode(); } hash = (37 * hash) + PROOF_S_R_NYM_FIELD_NUMBER; hash = (53 * hash) + getProofSRNym().hashCode(); if (hasRevocationEpochPk()) { hash = (37 * hash) + REVOCATION_EPOCH_PK_FIELD_NUMBER; hash = (53 * hash) + getRevocationEpochPk().hashCode(); } hash = (37 * hash) + REVOCATION_PK_SIG_FIELD_NUMBER; hash = (53 * hash) + getRevocationPkSig().hashCode(); hash = (37 * hash) + EPOCH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEpoch()); if (hasNonRevocationProof()) { hash = (37 * hash) + NON_REVOCATION_PROOF_FIELD_NUMBER; hash = (53 * hash) + getNonRevocationProof().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.idemix.Idemix.Signature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.Signature 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.idemix.Idemix.Signature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.Signature parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.idemix.Idemix.Signature parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.Signature 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.idemix.Idemix.Signature parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.Signature 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.idemix.Idemix.Signature parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.Signature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.idemix.Idemix.Signature prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     * Signature specifies a signature object that consists of
     * a_prime, a_bar, b_prime, proof_* - randomized credential signature values
     * and a zero-knowledge proof of knowledge of a credential
     * and the corresponding user secret together with the attribute values
     * nonce - a fresh nonce used for the signature
     * nym - a fresh pseudonym (a commitment to to the user secret)
     * 
* * Protobuf type {@code Signature} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Signature) org.hyperledger.fabric.protos.idemix.Idemix.SignatureOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_Signature_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_Signature_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.Signature.class, org.hyperledger.fabric.protos.idemix.Idemix.Signature.Builder.class); } // Construct using org.hyperledger.fabric.protos.idemix.Idemix.Signature.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (aPrimeBuilder_ == null) { aPrime_ = null; } else { aPrime_ = null; aPrimeBuilder_ = null; } if (aBarBuilder_ == null) { aBar_ = null; } else { aBar_ = null; aBarBuilder_ = null; } if (bPrimeBuilder_ == null) { bPrime_ = null; } else { bPrime_ = null; bPrimeBuilder_ = null; } proofC_ = com.google.protobuf.ByteString.EMPTY; proofSSk_ = com.google.protobuf.ByteString.EMPTY; proofSE_ = com.google.protobuf.ByteString.EMPTY; proofSR2_ = com.google.protobuf.ByteString.EMPTY; proofSR3_ = com.google.protobuf.ByteString.EMPTY; proofSSPrime_ = com.google.protobuf.ByteString.EMPTY; proofSAttrs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); nonce_ = com.google.protobuf.ByteString.EMPTY; if (nymBuilder_ == null) { nym_ = null; } else { nym_ = null; nymBuilder_ = null; } proofSRNym_ = com.google.protobuf.ByteString.EMPTY; if (revocationEpochPkBuilder_ == null) { revocationEpochPk_ = null; } else { revocationEpochPk_ = null; revocationEpochPkBuilder_ = null; } revocationPkSig_ = com.google.protobuf.ByteString.EMPTY; epoch_ = 0L; if (nonRevocationProofBuilder_ == null) { nonRevocationProof_ = null; } else { nonRevocationProof_ = null; nonRevocationProofBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_Signature_descriptor; } public org.hyperledger.fabric.protos.idemix.Idemix.Signature getDefaultInstanceForType() { return org.hyperledger.fabric.protos.idemix.Idemix.Signature.getDefaultInstance(); } public org.hyperledger.fabric.protos.idemix.Idemix.Signature build() { org.hyperledger.fabric.protos.idemix.Idemix.Signature result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.idemix.Idemix.Signature buildPartial() { org.hyperledger.fabric.protos.idemix.Idemix.Signature result = new org.hyperledger.fabric.protos.idemix.Idemix.Signature(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (aPrimeBuilder_ == null) { result.aPrime_ = aPrime_; } else { result.aPrime_ = aPrimeBuilder_.build(); } if (aBarBuilder_ == null) { result.aBar_ = aBar_; } else { result.aBar_ = aBarBuilder_.build(); } if (bPrimeBuilder_ == null) { result.bPrime_ = bPrime_; } else { result.bPrime_ = bPrimeBuilder_.build(); } result.proofC_ = proofC_; result.proofSSk_ = proofSSk_; result.proofSE_ = proofSE_; result.proofSR2_ = proofSR2_; result.proofSR3_ = proofSR3_; result.proofSSPrime_ = proofSSPrime_; if (((bitField0_ & 0x00000200) == 0x00000200)) { proofSAttrs_ = java.util.Collections.unmodifiableList(proofSAttrs_); bitField0_ = (bitField0_ & ~0x00000200); } result.proofSAttrs_ = proofSAttrs_; result.nonce_ = nonce_; if (nymBuilder_ == null) { result.nym_ = nym_; } else { result.nym_ = nymBuilder_.build(); } result.proofSRNym_ = proofSRNym_; if (revocationEpochPkBuilder_ == null) { result.revocationEpochPk_ = revocationEpochPk_; } else { result.revocationEpochPk_ = revocationEpochPkBuilder_.build(); } result.revocationPkSig_ = revocationPkSig_; result.epoch_ = epoch_; if (nonRevocationProofBuilder_ == null) { result.nonRevocationProof_ = nonRevocationProof_; } else { result.nonRevocationProof_ = nonRevocationProofBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.idemix.Idemix.Signature) { return mergeFrom((org.hyperledger.fabric.protos.idemix.Idemix.Signature)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.idemix.Idemix.Signature other) { if (other == org.hyperledger.fabric.protos.idemix.Idemix.Signature.getDefaultInstance()) return this; if (other.hasAPrime()) { mergeAPrime(other.getAPrime()); } if (other.hasABar()) { mergeABar(other.getABar()); } if (other.hasBPrime()) { mergeBPrime(other.getBPrime()); } if (other.getProofC() != com.google.protobuf.ByteString.EMPTY) { setProofC(other.getProofC()); } if (other.getProofSSk() != com.google.protobuf.ByteString.EMPTY) { setProofSSk(other.getProofSSk()); } if (other.getProofSE() != com.google.protobuf.ByteString.EMPTY) { setProofSE(other.getProofSE()); } if (other.getProofSR2() != com.google.protobuf.ByteString.EMPTY) { setProofSR2(other.getProofSR2()); } if (other.getProofSR3() != com.google.protobuf.ByteString.EMPTY) { setProofSR3(other.getProofSR3()); } if (other.getProofSSPrime() != com.google.protobuf.ByteString.EMPTY) { setProofSSPrime(other.getProofSSPrime()); } if (!other.proofSAttrs_.isEmpty()) { if (proofSAttrs_.isEmpty()) { proofSAttrs_ = other.proofSAttrs_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureProofSAttrsIsMutable(); proofSAttrs_.addAll(other.proofSAttrs_); } onChanged(); } if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { setNonce(other.getNonce()); } if (other.hasNym()) { mergeNym(other.getNym()); } if (other.getProofSRNym() != com.google.protobuf.ByteString.EMPTY) { setProofSRNym(other.getProofSRNym()); } if (other.hasRevocationEpochPk()) { mergeRevocationEpochPk(other.getRevocationEpochPk()); } if (other.getRevocationPkSig() != com.google.protobuf.ByteString.EMPTY) { setRevocationPkSig(other.getRevocationPkSig()); } if (other.getEpoch() != 0L) { setEpoch(other.getEpoch()); } if (other.hasNonRevocationProof()) { mergeNonRevocationProof(other.getNonRevocationProof()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.idemix.Idemix.Signature parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.idemix.Idemix.Signature) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.hyperledger.fabric.protos.idemix.Idemix.ECP aPrime_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> aPrimeBuilder_; /** * optional .ECP a_prime = 1; */ public boolean hasAPrime() { return aPrimeBuilder_ != null || aPrime_ != null; } /** * optional .ECP a_prime = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getAPrime() { if (aPrimeBuilder_ == null) { return aPrime_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : aPrime_; } else { return aPrimeBuilder_.getMessage(); } } /** * optional .ECP a_prime = 1; */ public Builder setAPrime(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (aPrimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } aPrime_ = value; onChanged(); } else { aPrimeBuilder_.setMessage(value); } return this; } /** * optional .ECP a_prime = 1; */ public Builder setAPrime( org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder builderForValue) { if (aPrimeBuilder_ == null) { aPrime_ = builderForValue.build(); onChanged(); } else { aPrimeBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .ECP a_prime = 1; */ public Builder mergeAPrime(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (aPrimeBuilder_ == null) { if (aPrime_ != null) { aPrime_ = org.hyperledger.fabric.protos.idemix.Idemix.ECP.newBuilder(aPrime_).mergeFrom(value).buildPartial(); } else { aPrime_ = value; } onChanged(); } else { aPrimeBuilder_.mergeFrom(value); } return this; } /** * optional .ECP a_prime = 1; */ public Builder clearAPrime() { if (aPrimeBuilder_ == null) { aPrime_ = null; onChanged(); } else { aPrime_ = null; aPrimeBuilder_ = null; } return this; } /** * optional .ECP a_prime = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getAPrimeBuilder() { onChanged(); return getAPrimeFieldBuilder().getBuilder(); } /** * optional .ECP a_prime = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getAPrimeOrBuilder() { if (aPrimeBuilder_ != null) { return aPrimeBuilder_.getMessageOrBuilder(); } else { return aPrime_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : aPrime_; } } /** * optional .ECP a_prime = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> getAPrimeFieldBuilder() { if (aPrimeBuilder_ == null) { aPrimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder>( getAPrime(), getParentForChildren(), isClean()); aPrime_ = null; } return aPrimeBuilder_; } private org.hyperledger.fabric.protos.idemix.Idemix.ECP aBar_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> aBarBuilder_; /** * optional .ECP a_bar = 2; */ public boolean hasABar() { return aBarBuilder_ != null || aBar_ != null; } /** * optional .ECP a_bar = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getABar() { if (aBarBuilder_ == null) { return aBar_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : aBar_; } else { return aBarBuilder_.getMessage(); } } /** * optional .ECP a_bar = 2; */ public Builder setABar(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (aBarBuilder_ == null) { if (value == null) { throw new NullPointerException(); } aBar_ = value; onChanged(); } else { aBarBuilder_.setMessage(value); } return this; } /** * optional .ECP a_bar = 2; */ public Builder setABar( org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder builderForValue) { if (aBarBuilder_ == null) { aBar_ = builderForValue.build(); onChanged(); } else { aBarBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .ECP a_bar = 2; */ public Builder mergeABar(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (aBarBuilder_ == null) { if (aBar_ != null) { aBar_ = org.hyperledger.fabric.protos.idemix.Idemix.ECP.newBuilder(aBar_).mergeFrom(value).buildPartial(); } else { aBar_ = value; } onChanged(); } else { aBarBuilder_.mergeFrom(value); } return this; } /** * optional .ECP a_bar = 2; */ public Builder clearABar() { if (aBarBuilder_ == null) { aBar_ = null; onChanged(); } else { aBar_ = null; aBarBuilder_ = null; } return this; } /** * optional .ECP a_bar = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getABarBuilder() { onChanged(); return getABarFieldBuilder().getBuilder(); } /** * optional .ECP a_bar = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getABarOrBuilder() { if (aBarBuilder_ != null) { return aBarBuilder_.getMessageOrBuilder(); } else { return aBar_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : aBar_; } } /** * optional .ECP a_bar = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> getABarFieldBuilder() { if (aBarBuilder_ == null) { aBarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder>( getABar(), getParentForChildren(), isClean()); aBar_ = null; } return aBarBuilder_; } private org.hyperledger.fabric.protos.idemix.Idemix.ECP bPrime_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> bPrimeBuilder_; /** * optional .ECP b_prime = 3; */ public boolean hasBPrime() { return bPrimeBuilder_ != null || bPrime_ != null; } /** * optional .ECP b_prime = 3; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getBPrime() { if (bPrimeBuilder_ == null) { return bPrime_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : bPrime_; } else { return bPrimeBuilder_.getMessage(); } } /** * optional .ECP b_prime = 3; */ public Builder setBPrime(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (bPrimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bPrime_ = value; onChanged(); } else { bPrimeBuilder_.setMessage(value); } return this; } /** * optional .ECP b_prime = 3; */ public Builder setBPrime( org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder builderForValue) { if (bPrimeBuilder_ == null) { bPrime_ = builderForValue.build(); onChanged(); } else { bPrimeBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .ECP b_prime = 3; */ public Builder mergeBPrime(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (bPrimeBuilder_ == null) { if (bPrime_ != null) { bPrime_ = org.hyperledger.fabric.protos.idemix.Idemix.ECP.newBuilder(bPrime_).mergeFrom(value).buildPartial(); } else { bPrime_ = value; } onChanged(); } else { bPrimeBuilder_.mergeFrom(value); } return this; } /** * optional .ECP b_prime = 3; */ public Builder clearBPrime() { if (bPrimeBuilder_ == null) { bPrime_ = null; onChanged(); } else { bPrime_ = null; bPrimeBuilder_ = null; } return this; } /** * optional .ECP b_prime = 3; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getBPrimeBuilder() { onChanged(); return getBPrimeFieldBuilder().getBuilder(); } /** * optional .ECP b_prime = 3; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getBPrimeOrBuilder() { if (bPrimeBuilder_ != null) { return bPrimeBuilder_.getMessageOrBuilder(); } else { return bPrime_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : bPrime_; } } /** * optional .ECP b_prime = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> getBPrimeFieldBuilder() { if (bPrimeBuilder_ == null) { bPrimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder>( getBPrime(), getParentForChildren(), isClean()); bPrime_ = null; } return bPrimeBuilder_; } private com.google.protobuf.ByteString proofC_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes proof_c = 4; */ public com.google.protobuf.ByteString getProofC() { return proofC_; } /** * optional bytes proof_c = 4; */ public Builder setProofC(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } proofC_ = value; onChanged(); return this; } /** * optional bytes proof_c = 4; */ public Builder clearProofC() { proofC_ = getDefaultInstance().getProofC(); onChanged(); return this; } private com.google.protobuf.ByteString proofSSk_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes proof_s_sk = 5; */ public com.google.protobuf.ByteString getProofSSk() { return proofSSk_; } /** * optional bytes proof_s_sk = 5; */ public Builder setProofSSk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } proofSSk_ = value; onChanged(); return this; } /** * optional bytes proof_s_sk = 5; */ public Builder clearProofSSk() { proofSSk_ = getDefaultInstance().getProofSSk(); onChanged(); return this; } private com.google.protobuf.ByteString proofSE_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes proof_s_e = 6; */ public com.google.protobuf.ByteString getProofSE() { return proofSE_; } /** * optional bytes proof_s_e = 6; */ public Builder setProofSE(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } proofSE_ = value; onChanged(); return this; } /** * optional bytes proof_s_e = 6; */ public Builder clearProofSE() { proofSE_ = getDefaultInstance().getProofSE(); onChanged(); return this; } private com.google.protobuf.ByteString proofSR2_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes proof_s_r2 = 7; */ public com.google.protobuf.ByteString getProofSR2() { return proofSR2_; } /** * optional bytes proof_s_r2 = 7; */ public Builder setProofSR2(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } proofSR2_ = value; onChanged(); return this; } /** * optional bytes proof_s_r2 = 7; */ public Builder clearProofSR2() { proofSR2_ = getDefaultInstance().getProofSR2(); onChanged(); return this; } private com.google.protobuf.ByteString proofSR3_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes proof_s_r3 = 8; */ public com.google.protobuf.ByteString getProofSR3() { return proofSR3_; } /** * optional bytes proof_s_r3 = 8; */ public Builder setProofSR3(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } proofSR3_ = value; onChanged(); return this; } /** * optional bytes proof_s_r3 = 8; */ public Builder clearProofSR3() { proofSR3_ = getDefaultInstance().getProofSR3(); onChanged(); return this; } private com.google.protobuf.ByteString proofSSPrime_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes proof_s_s_prime = 9; */ public com.google.protobuf.ByteString getProofSSPrime() { return proofSSPrime_; } /** * optional bytes proof_s_s_prime = 9; */ public Builder setProofSSPrime(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } proofSSPrime_ = value; onChanged(); return this; } /** * optional bytes proof_s_s_prime = 9; */ public Builder clearProofSSPrime() { proofSSPrime_ = getDefaultInstance().getProofSSPrime(); onChanged(); return this; } private java.util.List proofSAttrs_ = java.util.Collections.emptyList(); private void ensureProofSAttrsIsMutable() { if (!((bitField0_ & 0x00000200) == 0x00000200)) { proofSAttrs_ = new java.util.ArrayList(proofSAttrs_); bitField0_ |= 0x00000200; } } /** * repeated bytes proof_s_attrs = 10; */ public java.util.List getProofSAttrsList() { return java.util.Collections.unmodifiableList(proofSAttrs_); } /** * repeated bytes proof_s_attrs = 10; */ public int getProofSAttrsCount() { return proofSAttrs_.size(); } /** * repeated bytes proof_s_attrs = 10; */ public com.google.protobuf.ByteString getProofSAttrs(int index) { return proofSAttrs_.get(index); } /** * repeated bytes proof_s_attrs = 10; */ public Builder setProofSAttrs( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureProofSAttrsIsMutable(); proofSAttrs_.set(index, value); onChanged(); return this; } /** * repeated bytes proof_s_attrs = 10; */ public Builder addProofSAttrs(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureProofSAttrsIsMutable(); proofSAttrs_.add(value); onChanged(); return this; } /** * repeated bytes proof_s_attrs = 10; */ public Builder addAllProofSAttrs( java.lang.Iterable values) { ensureProofSAttrsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, proofSAttrs_); onChanged(); return this; } /** * repeated bytes proof_s_attrs = 10; */ public Builder clearProofSAttrs() { proofSAttrs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes nonce = 11; */ public com.google.protobuf.ByteString getNonce() { return nonce_; } /** * optional bytes nonce = 11; */ public Builder setNonce(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } nonce_ = value; onChanged(); return this; } /** * optional bytes nonce = 11; */ public Builder clearNonce() { nonce_ = getDefaultInstance().getNonce(); onChanged(); return this; } private org.hyperledger.fabric.protos.idemix.Idemix.ECP nym_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> nymBuilder_; /** * optional .ECP nym = 12; */ public boolean hasNym() { return nymBuilder_ != null || nym_ != null; } /** * optional .ECP nym = 12; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getNym() { if (nymBuilder_ == null) { return nym_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : nym_; } else { return nymBuilder_.getMessage(); } } /** * optional .ECP nym = 12; */ public Builder setNym(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (nymBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nym_ = value; onChanged(); } else { nymBuilder_.setMessage(value); } return this; } /** * optional .ECP nym = 12; */ public Builder setNym( org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder builderForValue) { if (nymBuilder_ == null) { nym_ = builderForValue.build(); onChanged(); } else { nymBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .ECP nym = 12; */ public Builder mergeNym(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (nymBuilder_ == null) { if (nym_ != null) { nym_ = org.hyperledger.fabric.protos.idemix.Idemix.ECP.newBuilder(nym_).mergeFrom(value).buildPartial(); } else { nym_ = value; } onChanged(); } else { nymBuilder_.mergeFrom(value); } return this; } /** * optional .ECP nym = 12; */ public Builder clearNym() { if (nymBuilder_ == null) { nym_ = null; onChanged(); } else { nym_ = null; nymBuilder_ = null; } return this; } /** * optional .ECP nym = 12; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getNymBuilder() { onChanged(); return getNymFieldBuilder().getBuilder(); } /** * optional .ECP nym = 12; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getNymOrBuilder() { if (nymBuilder_ != null) { return nymBuilder_.getMessageOrBuilder(); } else { return nym_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : nym_; } } /** * optional .ECP nym = 12; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> getNymFieldBuilder() { if (nymBuilder_ == null) { nymBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder>( getNym(), getParentForChildren(), isClean()); nym_ = null; } return nymBuilder_; } private com.google.protobuf.ByteString proofSRNym_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes proof_s_r_nym = 13; */ public com.google.protobuf.ByteString getProofSRNym() { return proofSRNym_; } /** * optional bytes proof_s_r_nym = 13; */ public Builder setProofSRNym(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } proofSRNym_ = value; onChanged(); return this; } /** * optional bytes proof_s_r_nym = 13; */ public Builder clearProofSRNym() { proofSRNym_ = getDefaultInstance().getProofSRNym(); onChanged(); return this; } private org.hyperledger.fabric.protos.idemix.Idemix.ECP2 revocationEpochPk_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP2, org.hyperledger.fabric.protos.idemix.Idemix.ECP2.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECP2OrBuilder> revocationEpochPkBuilder_; /** * optional .ECP2 revocation_epoch_pk = 14; */ public boolean hasRevocationEpochPk() { return revocationEpochPkBuilder_ != null || revocationEpochPk_ != null; } /** * optional .ECP2 revocation_epoch_pk = 14; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP2 getRevocationEpochPk() { if (revocationEpochPkBuilder_ == null) { return revocationEpochPk_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP2.getDefaultInstance() : revocationEpochPk_; } else { return revocationEpochPkBuilder_.getMessage(); } } /** * optional .ECP2 revocation_epoch_pk = 14; */ public Builder setRevocationEpochPk(org.hyperledger.fabric.protos.idemix.Idemix.ECP2 value) { if (revocationEpochPkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } revocationEpochPk_ = value; onChanged(); } else { revocationEpochPkBuilder_.setMessage(value); } return this; } /** * optional .ECP2 revocation_epoch_pk = 14; */ public Builder setRevocationEpochPk( org.hyperledger.fabric.protos.idemix.Idemix.ECP2.Builder builderForValue) { if (revocationEpochPkBuilder_ == null) { revocationEpochPk_ = builderForValue.build(); onChanged(); } else { revocationEpochPkBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .ECP2 revocation_epoch_pk = 14; */ public Builder mergeRevocationEpochPk(org.hyperledger.fabric.protos.idemix.Idemix.ECP2 value) { if (revocationEpochPkBuilder_ == null) { if (revocationEpochPk_ != null) { revocationEpochPk_ = org.hyperledger.fabric.protos.idemix.Idemix.ECP2.newBuilder(revocationEpochPk_).mergeFrom(value).buildPartial(); } else { revocationEpochPk_ = value; } onChanged(); } else { revocationEpochPkBuilder_.mergeFrom(value); } return this; } /** * optional .ECP2 revocation_epoch_pk = 14; */ public Builder clearRevocationEpochPk() { if (revocationEpochPkBuilder_ == null) { revocationEpochPk_ = null; onChanged(); } else { revocationEpochPk_ = null; revocationEpochPkBuilder_ = null; } return this; } /** * optional .ECP2 revocation_epoch_pk = 14; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP2.Builder getRevocationEpochPkBuilder() { onChanged(); return getRevocationEpochPkFieldBuilder().getBuilder(); } /** * optional .ECP2 revocation_epoch_pk = 14; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP2OrBuilder getRevocationEpochPkOrBuilder() { if (revocationEpochPkBuilder_ != null) { return revocationEpochPkBuilder_.getMessageOrBuilder(); } else { return revocationEpochPk_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP2.getDefaultInstance() : revocationEpochPk_; } } /** * optional .ECP2 revocation_epoch_pk = 14; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP2, org.hyperledger.fabric.protos.idemix.Idemix.ECP2.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECP2OrBuilder> getRevocationEpochPkFieldBuilder() { if (revocationEpochPkBuilder_ == null) { revocationEpochPkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP2, org.hyperledger.fabric.protos.idemix.Idemix.ECP2.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECP2OrBuilder>( getRevocationEpochPk(), getParentForChildren(), isClean()); revocationEpochPk_ = null; } return revocationEpochPkBuilder_; } private com.google.protobuf.ByteString revocationPkSig_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes revocation_pk_sig = 15; */ public com.google.protobuf.ByteString getRevocationPkSig() { return revocationPkSig_; } /** * optional bytes revocation_pk_sig = 15; */ public Builder setRevocationPkSig(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } revocationPkSig_ = value; onChanged(); return this; } /** * optional bytes revocation_pk_sig = 15; */ public Builder clearRevocationPkSig() { revocationPkSig_ = getDefaultInstance().getRevocationPkSig(); onChanged(); return this; } private long epoch_ ; /** * optional int64 epoch = 16; */ public long getEpoch() { return epoch_; } /** * optional int64 epoch = 16; */ public Builder setEpoch(long value) { epoch_ = value; onChanged(); return this; } /** * optional int64 epoch = 16; */ public Builder clearEpoch() { epoch_ = 0L; onChanged(); return this; } private org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof nonRevocationProof_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof, org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.Builder, org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProofOrBuilder> nonRevocationProofBuilder_; /** * optional .NonRevocationProof non_revocation_proof = 17; */ public boolean hasNonRevocationProof() { return nonRevocationProofBuilder_ != null || nonRevocationProof_ != null; } /** * optional .NonRevocationProof non_revocation_proof = 17; */ public org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof getNonRevocationProof() { if (nonRevocationProofBuilder_ == null) { return nonRevocationProof_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.getDefaultInstance() : nonRevocationProof_; } else { return nonRevocationProofBuilder_.getMessage(); } } /** * optional .NonRevocationProof non_revocation_proof = 17; */ public Builder setNonRevocationProof(org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof value) { if (nonRevocationProofBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nonRevocationProof_ = value; onChanged(); } else { nonRevocationProofBuilder_.setMessage(value); } return this; } /** * optional .NonRevocationProof non_revocation_proof = 17; */ public Builder setNonRevocationProof( org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.Builder builderForValue) { if (nonRevocationProofBuilder_ == null) { nonRevocationProof_ = builderForValue.build(); onChanged(); } else { nonRevocationProofBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .NonRevocationProof non_revocation_proof = 17; */ public Builder mergeNonRevocationProof(org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof value) { if (nonRevocationProofBuilder_ == null) { if (nonRevocationProof_ != null) { nonRevocationProof_ = org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.newBuilder(nonRevocationProof_).mergeFrom(value).buildPartial(); } else { nonRevocationProof_ = value; } onChanged(); } else { nonRevocationProofBuilder_.mergeFrom(value); } return this; } /** * optional .NonRevocationProof non_revocation_proof = 17; */ public Builder clearNonRevocationProof() { if (nonRevocationProofBuilder_ == null) { nonRevocationProof_ = null; onChanged(); } else { nonRevocationProof_ = null; nonRevocationProofBuilder_ = null; } return this; } /** * optional .NonRevocationProof non_revocation_proof = 17; */ public org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.Builder getNonRevocationProofBuilder() { onChanged(); return getNonRevocationProofFieldBuilder().getBuilder(); } /** * optional .NonRevocationProof non_revocation_proof = 17; */ public org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProofOrBuilder getNonRevocationProofOrBuilder() { if (nonRevocationProofBuilder_ != null) { return nonRevocationProofBuilder_.getMessageOrBuilder(); } else { return nonRevocationProof_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.getDefaultInstance() : nonRevocationProof_; } } /** * optional .NonRevocationProof non_revocation_proof = 17; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof, org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.Builder, org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProofOrBuilder> getNonRevocationProofFieldBuilder() { if (nonRevocationProofBuilder_ == null) { nonRevocationProofBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof, org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.Builder, org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProofOrBuilder>( getNonRevocationProof(), getParentForChildren(), isClean()); nonRevocationProof_ = null; } return nonRevocationProofBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:Signature) } // @@protoc_insertion_point(class_scope:Signature) private static final org.hyperledger.fabric.protos.idemix.Idemix.Signature DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.idemix.Idemix.Signature(); } public static org.hyperledger.fabric.protos.idemix.Idemix.Signature getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Signature parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Signature(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.idemix.Idemix.Signature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NonRevocationProofOrBuilder extends // @@protoc_insertion_point(interface_extends:NonRevocationProof) com.google.protobuf.MessageOrBuilder { /** * optional int32 revocation_alg = 1; */ int getRevocationAlg(); /** * optional bytes non_revocation_proof = 2; */ com.google.protobuf.ByteString getNonRevocationProof(); } /** *
   * NonRevocationProof contains proof that the credential is not revoked
   * 
* * Protobuf type {@code NonRevocationProof} */ public static final class NonRevocationProof extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:NonRevocationProof) NonRevocationProofOrBuilder { // Use NonRevocationProof.newBuilder() to construct. private NonRevocationProof(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NonRevocationProof() { revocationAlg_ = 0; nonRevocationProof_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private NonRevocationProof( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { revocationAlg_ = input.readInt32(); break; } case 18: { nonRevocationProof_ = input.readBytes(); 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_NonRevocationProof_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_NonRevocationProof_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.class, org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.Builder.class); } public static final int REVOCATION_ALG_FIELD_NUMBER = 1; private int revocationAlg_; /** * optional int32 revocation_alg = 1; */ public int getRevocationAlg() { return revocationAlg_; } public static final int NON_REVOCATION_PROOF_FIELD_NUMBER = 2; private com.google.protobuf.ByteString nonRevocationProof_; /** * optional bytes non_revocation_proof = 2; */ public com.google.protobuf.ByteString getNonRevocationProof() { return nonRevocationProof_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (revocationAlg_ != 0) { output.writeInt32(1, revocationAlg_); } if (!nonRevocationProof_.isEmpty()) { output.writeBytes(2, nonRevocationProof_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (revocationAlg_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, revocationAlg_); } if (!nonRevocationProof_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, nonRevocationProof_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof)) { return super.equals(obj); } org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof other = (org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof) obj; boolean result = true; result = result && (getRevocationAlg() == other.getRevocationAlg()); result = result && getNonRevocationProof() .equals(other.getNonRevocationProof()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + REVOCATION_ALG_FIELD_NUMBER; hash = (53 * hash) + getRevocationAlg(); hash = (37 * hash) + NON_REVOCATION_PROOF_FIELD_NUMBER; hash = (53 * hash) + getNonRevocationProof().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof 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.idemix.Idemix.NonRevocationProof parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof 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.idemix.Idemix.NonRevocationProof parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof 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.idemix.Idemix.NonRevocationProof parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     * NonRevocationProof contains proof that the credential is not revoked
     * 
* * Protobuf type {@code NonRevocationProof} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:NonRevocationProof) org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProofOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_NonRevocationProof_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_NonRevocationProof_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.class, org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.Builder.class); } // Construct using org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); revocationAlg_ = 0; nonRevocationProof_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_NonRevocationProof_descriptor; } public org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof getDefaultInstanceForType() { return org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.getDefaultInstance(); } public org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof build() { org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof buildPartial() { org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof result = new org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof(this); result.revocationAlg_ = revocationAlg_; result.nonRevocationProof_ = nonRevocationProof_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof) { return mergeFrom((org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof other) { if (other == org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.getDefaultInstance()) return this; if (other.getRevocationAlg() != 0) { setRevocationAlg(other.getRevocationAlg()); } if (other.getNonRevocationProof() != com.google.protobuf.ByteString.EMPTY) { setNonRevocationProof(other.getNonRevocationProof()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int revocationAlg_ ; /** * optional int32 revocation_alg = 1; */ public int getRevocationAlg() { return revocationAlg_; } /** * optional int32 revocation_alg = 1; */ public Builder setRevocationAlg(int value) { revocationAlg_ = value; onChanged(); return this; } /** * optional int32 revocation_alg = 1; */ public Builder clearRevocationAlg() { revocationAlg_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString nonRevocationProof_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes non_revocation_proof = 2; */ public com.google.protobuf.ByteString getNonRevocationProof() { return nonRevocationProof_; } /** * optional bytes non_revocation_proof = 2; */ public Builder setNonRevocationProof(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } nonRevocationProof_ = value; onChanged(); return this; } /** * optional bytes non_revocation_proof = 2; */ public Builder clearNonRevocationProof() { nonRevocationProof_ = getDefaultInstance().getNonRevocationProof(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:NonRevocationProof) } // @@protoc_insertion_point(class_scope:NonRevocationProof) private static final org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof(); } public static org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public NonRevocationProof parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NonRevocationProof(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PlainSigNonRevokedProofOrBuilder extends // @@protoc_insertion_point(interface_extends:PlainSigNonRevokedProof) com.google.protobuf.MessageOrBuilder { /** * optional .ECP sigma_prime = 1; */ boolean hasSigmaPrime(); /** * optional .ECP sigma_prime = 1; */ org.hyperledger.fabric.protos.idemix.Idemix.ECP getSigmaPrime(); /** * optional .ECP sigma_prime = 1; */ org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getSigmaPrimeOrBuilder(); /** * optional .ECP sigma_bar = 2; */ boolean hasSigmaBar(); /** * optional .ECP sigma_bar = 2; */ org.hyperledger.fabric.protos.idemix.Idemix.ECP getSigmaBar(); /** * optional .ECP sigma_bar = 2; */ org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getSigmaBarOrBuilder(); /** * optional bytes proof_s_r = 3; */ com.google.protobuf.ByteString getProofSR(); } /** *
   * PlainSigNonRevokedProof is a non-revoked proof for the plain signature-based revocation algorithm.
   * It proves that the revocation authority placed a weak Boneh-Boyen signature (ia.cr/2009/221) on its revocation handle,
   * using the zero knowledge proof from Camenisch, Drijvers, Hajny: "Scalable Revocation Scheme for Anonymous Credentials
   * Based on n-times Unlinkable Proofs"
   * 
* * Protobuf type {@code PlainSigNonRevokedProof} */ public static final class PlainSigNonRevokedProof extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:PlainSigNonRevokedProof) PlainSigNonRevokedProofOrBuilder { // Use PlainSigNonRevokedProof.newBuilder() to construct. private PlainSigNonRevokedProof(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PlainSigNonRevokedProof() { proofSR_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private PlainSigNonRevokedProof( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder subBuilder = null; if (sigmaPrime_ != null) { subBuilder = sigmaPrime_.toBuilder(); } sigmaPrime_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(sigmaPrime_); sigmaPrime_ = subBuilder.buildPartial(); } break; } case 18: { org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder subBuilder = null; if (sigmaBar_ != null) { subBuilder = sigmaBar_.toBuilder(); } sigmaBar_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(sigmaBar_); sigmaBar_ = subBuilder.buildPartial(); } break; } case 26: { proofSR_ = input.readBytes(); 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_PlainSigNonRevokedProof_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_PlainSigNonRevokedProof_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof.class, org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof.Builder.class); } public static final int SIGMA_PRIME_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.idemix.Idemix.ECP sigmaPrime_; /** * optional .ECP sigma_prime = 1; */ public boolean hasSigmaPrime() { return sigmaPrime_ != null; } /** * optional .ECP sigma_prime = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getSigmaPrime() { return sigmaPrime_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : sigmaPrime_; } /** * optional .ECP sigma_prime = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getSigmaPrimeOrBuilder() { return getSigmaPrime(); } public static final int SIGMA_BAR_FIELD_NUMBER = 2; private org.hyperledger.fabric.protos.idemix.Idemix.ECP sigmaBar_; /** * optional .ECP sigma_bar = 2; */ public boolean hasSigmaBar() { return sigmaBar_ != null; } /** * optional .ECP sigma_bar = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getSigmaBar() { return sigmaBar_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : sigmaBar_; } /** * optional .ECP sigma_bar = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getSigmaBarOrBuilder() { return getSigmaBar(); } public static final int PROOF_S_R_FIELD_NUMBER = 3; private com.google.protobuf.ByteString proofSR_; /** * optional bytes proof_s_r = 3; */ public com.google.protobuf.ByteString getProofSR() { return proofSR_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sigmaPrime_ != null) { output.writeMessage(1, getSigmaPrime()); } if (sigmaBar_ != null) { output.writeMessage(2, getSigmaBar()); } if (!proofSR_.isEmpty()) { output.writeBytes(3, proofSR_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sigmaPrime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSigmaPrime()); } if (sigmaBar_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getSigmaBar()); } if (!proofSR_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, proofSR_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof)) { return super.equals(obj); } org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof other = (org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof) obj; boolean result = true; result = result && (hasSigmaPrime() == other.hasSigmaPrime()); if (hasSigmaPrime()) { result = result && getSigmaPrime() .equals(other.getSigmaPrime()); } result = result && (hasSigmaBar() == other.hasSigmaBar()); if (hasSigmaBar()) { result = result && getSigmaBar() .equals(other.getSigmaBar()); } result = result && getProofSR() .equals(other.getProofSR()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasSigmaPrime()) { hash = (37 * hash) + SIGMA_PRIME_FIELD_NUMBER; hash = (53 * hash) + getSigmaPrime().hashCode(); } if (hasSigmaBar()) { hash = (37 * hash) + SIGMA_BAR_FIELD_NUMBER; hash = (53 * hash) + getSigmaBar().hashCode(); } hash = (37 * hash) + PROOF_S_R_FIELD_NUMBER; hash = (53 * hash) + getProofSR().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof 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.idemix.Idemix.PlainSigNonRevokedProof parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof 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.idemix.Idemix.PlainSigNonRevokedProof parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof 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.idemix.Idemix.PlainSigNonRevokedProof parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     * PlainSigNonRevokedProof is a non-revoked proof for the plain signature-based revocation algorithm.
     * It proves that the revocation authority placed a weak Boneh-Boyen signature (ia.cr/2009/221) on its revocation handle,
     * using the zero knowledge proof from Camenisch, Drijvers, Hajny: "Scalable Revocation Scheme for Anonymous Credentials
     * Based on n-times Unlinkable Proofs"
     * 
* * Protobuf type {@code PlainSigNonRevokedProof} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:PlainSigNonRevokedProof) org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProofOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_PlainSigNonRevokedProof_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_PlainSigNonRevokedProof_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof.class, org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof.Builder.class); } // Construct using org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (sigmaPrimeBuilder_ == null) { sigmaPrime_ = null; } else { sigmaPrime_ = null; sigmaPrimeBuilder_ = null; } if (sigmaBarBuilder_ == null) { sigmaBar_ = null; } else { sigmaBar_ = null; sigmaBarBuilder_ = null; } proofSR_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_PlainSigNonRevokedProof_descriptor; } public org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof getDefaultInstanceForType() { return org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof.getDefaultInstance(); } public org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof build() { org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof buildPartial() { org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof result = new org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof(this); if (sigmaPrimeBuilder_ == null) { result.sigmaPrime_ = sigmaPrime_; } else { result.sigmaPrime_ = sigmaPrimeBuilder_.build(); } if (sigmaBarBuilder_ == null) { result.sigmaBar_ = sigmaBar_; } else { result.sigmaBar_ = sigmaBarBuilder_.build(); } result.proofSR_ = proofSR_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof) { return mergeFrom((org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof other) { if (other == org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof.getDefaultInstance()) return this; if (other.hasSigmaPrime()) { mergeSigmaPrime(other.getSigmaPrime()); } if (other.hasSigmaBar()) { mergeSigmaBar(other.getSigmaBar()); } if (other.getProofSR() != com.google.protobuf.ByteString.EMPTY) { setProofSR(other.getProofSR()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.hyperledger.fabric.protos.idemix.Idemix.ECP sigmaPrime_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> sigmaPrimeBuilder_; /** * optional .ECP sigma_prime = 1; */ public boolean hasSigmaPrime() { return sigmaPrimeBuilder_ != null || sigmaPrime_ != null; } /** * optional .ECP sigma_prime = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getSigmaPrime() { if (sigmaPrimeBuilder_ == null) { return sigmaPrime_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : sigmaPrime_; } else { return sigmaPrimeBuilder_.getMessage(); } } /** * optional .ECP sigma_prime = 1; */ public Builder setSigmaPrime(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (sigmaPrimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sigmaPrime_ = value; onChanged(); } else { sigmaPrimeBuilder_.setMessage(value); } return this; } /** * optional .ECP sigma_prime = 1; */ public Builder setSigmaPrime( org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder builderForValue) { if (sigmaPrimeBuilder_ == null) { sigmaPrime_ = builderForValue.build(); onChanged(); } else { sigmaPrimeBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .ECP sigma_prime = 1; */ public Builder mergeSigmaPrime(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (sigmaPrimeBuilder_ == null) { if (sigmaPrime_ != null) { sigmaPrime_ = org.hyperledger.fabric.protos.idemix.Idemix.ECP.newBuilder(sigmaPrime_).mergeFrom(value).buildPartial(); } else { sigmaPrime_ = value; } onChanged(); } else { sigmaPrimeBuilder_.mergeFrom(value); } return this; } /** * optional .ECP sigma_prime = 1; */ public Builder clearSigmaPrime() { if (sigmaPrimeBuilder_ == null) { sigmaPrime_ = null; onChanged(); } else { sigmaPrime_ = null; sigmaPrimeBuilder_ = null; } return this; } /** * optional .ECP sigma_prime = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getSigmaPrimeBuilder() { onChanged(); return getSigmaPrimeFieldBuilder().getBuilder(); } /** * optional .ECP sigma_prime = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getSigmaPrimeOrBuilder() { if (sigmaPrimeBuilder_ != null) { return sigmaPrimeBuilder_.getMessageOrBuilder(); } else { return sigmaPrime_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : sigmaPrime_; } } /** * optional .ECP sigma_prime = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> getSigmaPrimeFieldBuilder() { if (sigmaPrimeBuilder_ == null) { sigmaPrimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder>( getSigmaPrime(), getParentForChildren(), isClean()); sigmaPrime_ = null; } return sigmaPrimeBuilder_; } private org.hyperledger.fabric.protos.idemix.Idemix.ECP sigmaBar_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> sigmaBarBuilder_; /** * optional .ECP sigma_bar = 2; */ public boolean hasSigmaBar() { return sigmaBarBuilder_ != null || sigmaBar_ != null; } /** * optional .ECP sigma_bar = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getSigmaBar() { if (sigmaBarBuilder_ == null) { return sigmaBar_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : sigmaBar_; } else { return sigmaBarBuilder_.getMessage(); } } /** * optional .ECP sigma_bar = 2; */ public Builder setSigmaBar(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (sigmaBarBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sigmaBar_ = value; onChanged(); } else { sigmaBarBuilder_.setMessage(value); } return this; } /** * optional .ECP sigma_bar = 2; */ public Builder setSigmaBar( org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder builderForValue) { if (sigmaBarBuilder_ == null) { sigmaBar_ = builderForValue.build(); onChanged(); } else { sigmaBarBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .ECP sigma_bar = 2; */ public Builder mergeSigmaBar(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (sigmaBarBuilder_ == null) { if (sigmaBar_ != null) { sigmaBar_ = org.hyperledger.fabric.protos.idemix.Idemix.ECP.newBuilder(sigmaBar_).mergeFrom(value).buildPartial(); } else { sigmaBar_ = value; } onChanged(); } else { sigmaBarBuilder_.mergeFrom(value); } return this; } /** * optional .ECP sigma_bar = 2; */ public Builder clearSigmaBar() { if (sigmaBarBuilder_ == null) { sigmaBar_ = null; onChanged(); } else { sigmaBar_ = null; sigmaBarBuilder_ = null; } return this; } /** * optional .ECP sigma_bar = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getSigmaBarBuilder() { onChanged(); return getSigmaBarFieldBuilder().getBuilder(); } /** * optional .ECP sigma_bar = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getSigmaBarOrBuilder() { if (sigmaBarBuilder_ != null) { return sigmaBarBuilder_.getMessageOrBuilder(); } else { return sigmaBar_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : sigmaBar_; } } /** * optional .ECP sigma_bar = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> getSigmaBarFieldBuilder() { if (sigmaBarBuilder_ == null) { sigmaBarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder>( getSigmaBar(), getParentForChildren(), isClean()); sigmaBar_ = null; } return sigmaBarBuilder_; } private com.google.protobuf.ByteString proofSR_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes proof_s_r = 3; */ public com.google.protobuf.ByteString getProofSR() { return proofSR_; } /** * optional bytes proof_s_r = 3; */ public Builder setProofSR(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } proofSR_ = value; onChanged(); return this; } /** * optional bytes proof_s_r = 3; */ public Builder clearProofSR() { proofSR_ = getDefaultInstance().getProofSR(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:PlainSigNonRevokedProof) } // @@protoc_insertion_point(class_scope:PlainSigNonRevokedProof) private static final org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof(); } public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PlainSigNonRevokedProof parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PlainSigNonRevokedProof(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NymSignatureOrBuilder extends // @@protoc_insertion_point(interface_extends:NymSignature) com.google.protobuf.MessageOrBuilder { /** *
     * proof_c is the Fiat-Shamir challenge of the ZKP
     * 
* * optional bytes proof_c = 1; */ com.google.protobuf.ByteString getProofC(); /** *
     * proof_s_sk is the s-value proving knowledge of the user secret key
     * 
* * optional bytes proof_s_sk = 2; */ com.google.protobuf.ByteString getProofSSk(); /** *
     *proof_s_r_nym is the s-value proving knowledge of the pseudonym secret
     * 
* * optional bytes proof_s_r_nym = 3; */ com.google.protobuf.ByteString getProofSRNym(); /** *
     * nonce is a fresh nonce used for the signature
     * 
* * optional bytes nonce = 4; */ com.google.protobuf.ByteString getNonce(); } /** *
   * NymSignature specifies a signature object that signs a message
   * with respect to a pseudonym. It differs from the standard idemix.signature in the fact that
   * the  standard signature object also proves that the pseudonym is based on a secret certified by
   * a CA (issuer), whereas NymSignature only proves that the the owner of the pseudonym
   * signed the message
   * 
* * Protobuf type {@code NymSignature} */ public static final class NymSignature extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:NymSignature) NymSignatureOrBuilder { // Use NymSignature.newBuilder() to construct. private NymSignature(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NymSignature() { proofC_ = com.google.protobuf.ByteString.EMPTY; proofSSk_ = com.google.protobuf.ByteString.EMPTY; proofSRNym_ = com.google.protobuf.ByteString.EMPTY; nonce_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private NymSignature( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { proofC_ = input.readBytes(); break; } case 18: { proofSSk_ = input.readBytes(); break; } case 26: { proofSRNym_ = input.readBytes(); break; } case 34: { nonce_ = input.readBytes(); 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_NymSignature_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_NymSignature_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.NymSignature.class, org.hyperledger.fabric.protos.idemix.Idemix.NymSignature.Builder.class); } public static final int PROOF_C_FIELD_NUMBER = 1; private com.google.protobuf.ByteString proofC_; /** *
     * proof_c is the Fiat-Shamir challenge of the ZKP
     * 
* * optional bytes proof_c = 1; */ public com.google.protobuf.ByteString getProofC() { return proofC_; } public static final int PROOF_S_SK_FIELD_NUMBER = 2; private com.google.protobuf.ByteString proofSSk_; /** *
     * proof_s_sk is the s-value proving knowledge of the user secret key
     * 
* * optional bytes proof_s_sk = 2; */ public com.google.protobuf.ByteString getProofSSk() { return proofSSk_; } public static final int PROOF_S_R_NYM_FIELD_NUMBER = 3; private com.google.protobuf.ByteString proofSRNym_; /** *
     *proof_s_r_nym is the s-value proving knowledge of the pseudonym secret
     * 
* * optional bytes proof_s_r_nym = 3; */ public com.google.protobuf.ByteString getProofSRNym() { return proofSRNym_; } public static final int NONCE_FIELD_NUMBER = 4; private com.google.protobuf.ByteString nonce_; /** *
     * nonce is a fresh nonce used for the signature
     * 
* * optional bytes nonce = 4; */ public com.google.protobuf.ByteString getNonce() { return nonce_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!proofC_.isEmpty()) { output.writeBytes(1, proofC_); } if (!proofSSk_.isEmpty()) { output.writeBytes(2, proofSSk_); } if (!proofSRNym_.isEmpty()) { output.writeBytes(3, proofSRNym_); } if (!nonce_.isEmpty()) { output.writeBytes(4, nonce_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!proofC_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, proofC_); } if (!proofSSk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, proofSSk_); } if (!proofSRNym_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, proofSRNym_); } if (!nonce_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, nonce_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.NymSignature)) { return super.equals(obj); } org.hyperledger.fabric.protos.idemix.Idemix.NymSignature other = (org.hyperledger.fabric.protos.idemix.Idemix.NymSignature) obj; boolean result = true; result = result && getProofC() .equals(other.getProofC()); result = result && getProofSSk() .equals(other.getProofSSk()); result = result && getProofSRNym() .equals(other.getProofSRNym()); result = result && getNonce() .equals(other.getNonce()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + PROOF_C_FIELD_NUMBER; hash = (53 * hash) + getProofC().hashCode(); hash = (37 * hash) + PROOF_S_SK_FIELD_NUMBER; hash = (53 * hash) + getProofSSk().hashCode(); hash = (37 * hash) + PROOF_S_R_NYM_FIELD_NUMBER; hash = (53 * hash) + getProofSRNym().hashCode(); hash = (37 * hash) + NONCE_FIELD_NUMBER; hash = (53 * hash) + getNonce().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.idemix.Idemix.NymSignature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.NymSignature 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.idemix.Idemix.NymSignature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.NymSignature parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.idemix.Idemix.NymSignature parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.NymSignature 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.idemix.Idemix.NymSignature parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.NymSignature 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.idemix.Idemix.NymSignature parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.NymSignature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.idemix.Idemix.NymSignature prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     * NymSignature specifies a signature object that signs a message
     * with respect to a pseudonym. It differs from the standard idemix.signature in the fact that
     * the  standard signature object also proves that the pseudonym is based on a secret certified by
     * a CA (issuer), whereas NymSignature only proves that the the owner of the pseudonym
     * signed the message
     * 
* * Protobuf type {@code NymSignature} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:NymSignature) org.hyperledger.fabric.protos.idemix.Idemix.NymSignatureOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_NymSignature_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_NymSignature_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.NymSignature.class, org.hyperledger.fabric.protos.idemix.Idemix.NymSignature.Builder.class); } // Construct using org.hyperledger.fabric.protos.idemix.Idemix.NymSignature.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); proofC_ = com.google.protobuf.ByteString.EMPTY; proofSSk_ = com.google.protobuf.ByteString.EMPTY; proofSRNym_ = com.google.protobuf.ByteString.EMPTY; nonce_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_NymSignature_descriptor; } public org.hyperledger.fabric.protos.idemix.Idemix.NymSignature getDefaultInstanceForType() { return org.hyperledger.fabric.protos.idemix.Idemix.NymSignature.getDefaultInstance(); } public org.hyperledger.fabric.protos.idemix.Idemix.NymSignature build() { org.hyperledger.fabric.protos.idemix.Idemix.NymSignature result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.idemix.Idemix.NymSignature buildPartial() { org.hyperledger.fabric.protos.idemix.Idemix.NymSignature result = new org.hyperledger.fabric.protos.idemix.Idemix.NymSignature(this); result.proofC_ = proofC_; result.proofSSk_ = proofSSk_; result.proofSRNym_ = proofSRNym_; result.nonce_ = nonce_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.idemix.Idemix.NymSignature) { return mergeFrom((org.hyperledger.fabric.protos.idemix.Idemix.NymSignature)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.idemix.Idemix.NymSignature other) { if (other == org.hyperledger.fabric.protos.idemix.Idemix.NymSignature.getDefaultInstance()) return this; if (other.getProofC() != com.google.protobuf.ByteString.EMPTY) { setProofC(other.getProofC()); } if (other.getProofSSk() != com.google.protobuf.ByteString.EMPTY) { setProofSSk(other.getProofSSk()); } if (other.getProofSRNym() != com.google.protobuf.ByteString.EMPTY) { setProofSRNym(other.getProofSRNym()); } if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { setNonce(other.getNonce()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.idemix.Idemix.NymSignature parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.idemix.Idemix.NymSignature) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString proofC_ = com.google.protobuf.ByteString.EMPTY; /** *
       * proof_c is the Fiat-Shamir challenge of the ZKP
       * 
* * optional bytes proof_c = 1; */ public com.google.protobuf.ByteString getProofC() { return proofC_; } /** *
       * proof_c is the Fiat-Shamir challenge of the ZKP
       * 
* * optional bytes proof_c = 1; */ public Builder setProofC(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } proofC_ = value; onChanged(); return this; } /** *
       * proof_c is the Fiat-Shamir challenge of the ZKP
       * 
* * optional bytes proof_c = 1; */ public Builder clearProofC() { proofC_ = getDefaultInstance().getProofC(); onChanged(); return this; } private com.google.protobuf.ByteString proofSSk_ = com.google.protobuf.ByteString.EMPTY; /** *
       * proof_s_sk is the s-value proving knowledge of the user secret key
       * 
* * optional bytes proof_s_sk = 2; */ public com.google.protobuf.ByteString getProofSSk() { return proofSSk_; } /** *
       * proof_s_sk is the s-value proving knowledge of the user secret key
       * 
* * optional bytes proof_s_sk = 2; */ public Builder setProofSSk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } proofSSk_ = value; onChanged(); return this; } /** *
       * proof_s_sk is the s-value proving knowledge of the user secret key
       * 
* * optional bytes proof_s_sk = 2; */ public Builder clearProofSSk() { proofSSk_ = getDefaultInstance().getProofSSk(); onChanged(); return this; } private com.google.protobuf.ByteString proofSRNym_ = com.google.protobuf.ByteString.EMPTY; /** *
       *proof_s_r_nym is the s-value proving knowledge of the pseudonym secret
       * 
* * optional bytes proof_s_r_nym = 3; */ public com.google.protobuf.ByteString getProofSRNym() { return proofSRNym_; } /** *
       *proof_s_r_nym is the s-value proving knowledge of the pseudonym secret
       * 
* * optional bytes proof_s_r_nym = 3; */ public Builder setProofSRNym(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } proofSRNym_ = value; onChanged(); return this; } /** *
       *proof_s_r_nym is the s-value proving knowledge of the pseudonym secret
       * 
* * optional bytes proof_s_r_nym = 3; */ public Builder clearProofSRNym() { proofSRNym_ = getDefaultInstance().getProofSRNym(); onChanged(); return this; } private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; /** *
       * nonce is a fresh nonce used for the signature
       * 
* * optional bytes nonce = 4; */ public com.google.protobuf.ByteString getNonce() { return nonce_; } /** *
       * nonce is a fresh nonce used for the signature
       * 
* * optional bytes nonce = 4; */ public Builder setNonce(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } nonce_ = value; onChanged(); return this; } /** *
       * nonce is a fresh nonce used for the signature
       * 
* * optional bytes nonce = 4; */ public Builder clearNonce() { nonce_ = getDefaultInstance().getNonce(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:NymSignature) } // @@protoc_insertion_point(class_scope:NymSignature) private static final org.hyperledger.fabric.protos.idemix.Idemix.NymSignature DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.idemix.Idemix.NymSignature(); } public static org.hyperledger.fabric.protos.idemix.Idemix.NymSignature getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public NymSignature parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NymSignature(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.idemix.Idemix.NymSignature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CredentialRevocationInformationOrBuilder extends // @@protoc_insertion_point(interface_extends:CredentialRevocationInformation) com.google.protobuf.MessageOrBuilder { /** *
     * epoch contains the epoch (time window) in which this CRI is valid
     * 
* * optional int64 epoch = 1; */ long getEpoch(); /** *
     * epoch_pk is the public key that is used by the revocation authority in this epoch
     * 
* * optional .ECP2 epoch_pk = 2; */ boolean hasEpochPk(); /** *
     * epoch_pk is the public key that is used by the revocation authority in this epoch
     * 
* * optional .ECP2 epoch_pk = 2; */ org.hyperledger.fabric.protos.idemix.Idemix.ECP2 getEpochPk(); /** *
     * epoch_pk is the public key that is used by the revocation authority in this epoch
     * 
* * optional .ECP2 epoch_pk = 2; */ org.hyperledger.fabric.protos.idemix.Idemix.ECP2OrBuilder getEpochPkOrBuilder(); /** *
     * epoch_pk_sig is a signature on the EpochPK valid under the revocation authority's long term key
     * 
* * optional bytes epoch_pk_sig = 3; */ com.google.protobuf.ByteString getEpochPkSig(); /** *
     * revocation_alg denotes which revocation algorithm is used
     * 
* * optional int32 revocation_alg = 4; */ int getRevocationAlg(); /** *
     * revocation_data contains data specific to the revocation algorithm used
     * 
* * optional bytes revocation_data = 5; */ com.google.protobuf.ByteString getRevocationData(); } /** * Protobuf type {@code CredentialRevocationInformation} */ public static final class CredentialRevocationInformation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:CredentialRevocationInformation) CredentialRevocationInformationOrBuilder { // Use CredentialRevocationInformation.newBuilder() to construct. private CredentialRevocationInformation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CredentialRevocationInformation() { epoch_ = 0L; epochPkSig_ = com.google.protobuf.ByteString.EMPTY; revocationAlg_ = 0; revocationData_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private CredentialRevocationInformation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { epoch_ = input.readInt64(); break; } case 18: { org.hyperledger.fabric.protos.idemix.Idemix.ECP2.Builder subBuilder = null; if (epochPk_ != null) { subBuilder = epochPk_.toBuilder(); } epochPk_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP2.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(epochPk_); epochPk_ = subBuilder.buildPartial(); } break; } case 26: { epochPkSig_ = input.readBytes(); break; } case 32: { revocationAlg_ = input.readInt32(); break; } case 42: { revocationData_ = input.readBytes(); 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_CredentialRevocationInformation_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_CredentialRevocationInformation_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation.class, org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation.Builder.class); } public static final int EPOCH_FIELD_NUMBER = 1; private long epoch_; /** *
     * epoch contains the epoch (time window) in which this CRI is valid
     * 
* * optional int64 epoch = 1; */ public long getEpoch() { return epoch_; } public static final int EPOCH_PK_FIELD_NUMBER = 2; private org.hyperledger.fabric.protos.idemix.Idemix.ECP2 epochPk_; /** *
     * epoch_pk is the public key that is used by the revocation authority in this epoch
     * 
* * optional .ECP2 epoch_pk = 2; */ public boolean hasEpochPk() { return epochPk_ != null; } /** *
     * epoch_pk is the public key that is used by the revocation authority in this epoch
     * 
* * optional .ECP2 epoch_pk = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP2 getEpochPk() { return epochPk_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP2.getDefaultInstance() : epochPk_; } /** *
     * epoch_pk is the public key that is used by the revocation authority in this epoch
     * 
* * optional .ECP2 epoch_pk = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP2OrBuilder getEpochPkOrBuilder() { return getEpochPk(); } public static final int EPOCH_PK_SIG_FIELD_NUMBER = 3; private com.google.protobuf.ByteString epochPkSig_; /** *
     * epoch_pk_sig is a signature on the EpochPK valid under the revocation authority's long term key
     * 
* * optional bytes epoch_pk_sig = 3; */ public com.google.protobuf.ByteString getEpochPkSig() { return epochPkSig_; } public static final int REVOCATION_ALG_FIELD_NUMBER = 4; private int revocationAlg_; /** *
     * revocation_alg denotes which revocation algorithm is used
     * 
* * optional int32 revocation_alg = 4; */ public int getRevocationAlg() { return revocationAlg_; } public static final int REVOCATION_DATA_FIELD_NUMBER = 5; private com.google.protobuf.ByteString revocationData_; /** *
     * revocation_data contains data specific to the revocation algorithm used
     * 
* * optional bytes revocation_data = 5; */ public com.google.protobuf.ByteString getRevocationData() { return revocationData_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (epoch_ != 0L) { output.writeInt64(1, epoch_); } if (epochPk_ != null) { output.writeMessage(2, getEpochPk()); } if (!epochPkSig_.isEmpty()) { output.writeBytes(3, epochPkSig_); } if (revocationAlg_ != 0) { output.writeInt32(4, revocationAlg_); } if (!revocationData_.isEmpty()) { output.writeBytes(5, revocationData_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (epoch_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, epoch_); } if (epochPk_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getEpochPk()); } if (!epochPkSig_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, epochPkSig_); } if (revocationAlg_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, revocationAlg_); } if (!revocationData_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, revocationData_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation)) { return super.equals(obj); } org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation other = (org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation) obj; boolean result = true; result = result && (getEpoch() == other.getEpoch()); result = result && (hasEpochPk() == other.hasEpochPk()); if (hasEpochPk()) { result = result && getEpochPk() .equals(other.getEpochPk()); } result = result && getEpochPkSig() .equals(other.getEpochPkSig()); result = result && (getRevocationAlg() == other.getRevocationAlg()); result = result && getRevocationData() .equals(other.getRevocationData()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + EPOCH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEpoch()); if (hasEpochPk()) { hash = (37 * hash) + EPOCH_PK_FIELD_NUMBER; hash = (53 * hash) + getEpochPk().hashCode(); } hash = (37 * hash) + EPOCH_PK_SIG_FIELD_NUMBER; hash = (53 * hash) + getEpochPkSig().hashCode(); hash = (37 * hash) + REVOCATION_ALG_FIELD_NUMBER; hash = (53 * hash) + getRevocationAlg(); hash = (37 * hash) + REVOCATION_DATA_FIELD_NUMBER; hash = (53 * hash) + getRevocationData().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation 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.idemix.Idemix.CredentialRevocationInformation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation 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.idemix.Idemix.CredentialRevocationInformation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation 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.idemix.Idemix.CredentialRevocationInformation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** * Protobuf type {@code CredentialRevocationInformation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:CredentialRevocationInformation) org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_CredentialRevocationInformation_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_CredentialRevocationInformation_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation.class, org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation.Builder.class); } // Construct using org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); epoch_ = 0L; if (epochPkBuilder_ == null) { epochPk_ = null; } else { epochPk_ = null; epochPkBuilder_ = null; } epochPkSig_ = com.google.protobuf.ByteString.EMPTY; revocationAlg_ = 0; revocationData_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_CredentialRevocationInformation_descriptor; } public org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation getDefaultInstanceForType() { return org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation.getDefaultInstance(); } public org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation build() { org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation buildPartial() { org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation result = new org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation(this); result.epoch_ = epoch_; if (epochPkBuilder_ == null) { result.epochPk_ = epochPk_; } else { result.epochPk_ = epochPkBuilder_.build(); } result.epochPkSig_ = epochPkSig_; result.revocationAlg_ = revocationAlg_; result.revocationData_ = revocationData_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation) { return mergeFrom((org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation other) { if (other == org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation.getDefaultInstance()) return this; if (other.getEpoch() != 0L) { setEpoch(other.getEpoch()); } if (other.hasEpochPk()) { mergeEpochPk(other.getEpochPk()); } if (other.getEpochPkSig() != com.google.protobuf.ByteString.EMPTY) { setEpochPkSig(other.getEpochPkSig()); } if (other.getRevocationAlg() != 0) { setRevocationAlg(other.getRevocationAlg()); } if (other.getRevocationData() != com.google.protobuf.ByteString.EMPTY) { setRevocationData(other.getRevocationData()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long epoch_ ; /** *
       * epoch contains the epoch (time window) in which this CRI is valid
       * 
* * optional int64 epoch = 1; */ public long getEpoch() { return epoch_; } /** *
       * epoch contains the epoch (time window) in which this CRI is valid
       * 
* * optional int64 epoch = 1; */ public Builder setEpoch(long value) { epoch_ = value; onChanged(); return this; } /** *
       * epoch contains the epoch (time window) in which this CRI is valid
       * 
* * optional int64 epoch = 1; */ public Builder clearEpoch() { epoch_ = 0L; onChanged(); return this; } private org.hyperledger.fabric.protos.idemix.Idemix.ECP2 epochPk_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP2, org.hyperledger.fabric.protos.idemix.Idemix.ECP2.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECP2OrBuilder> epochPkBuilder_; /** *
       * epoch_pk is the public key that is used by the revocation authority in this epoch
       * 
* * optional .ECP2 epoch_pk = 2; */ public boolean hasEpochPk() { return epochPkBuilder_ != null || epochPk_ != null; } /** *
       * epoch_pk is the public key that is used by the revocation authority in this epoch
       * 
* * optional .ECP2 epoch_pk = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP2 getEpochPk() { if (epochPkBuilder_ == null) { return epochPk_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP2.getDefaultInstance() : epochPk_; } else { return epochPkBuilder_.getMessage(); } } /** *
       * epoch_pk is the public key that is used by the revocation authority in this epoch
       * 
* * optional .ECP2 epoch_pk = 2; */ public Builder setEpochPk(org.hyperledger.fabric.protos.idemix.Idemix.ECP2 value) { if (epochPkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } epochPk_ = value; onChanged(); } else { epochPkBuilder_.setMessage(value); } return this; } /** *
       * epoch_pk is the public key that is used by the revocation authority in this epoch
       * 
* * optional .ECP2 epoch_pk = 2; */ public Builder setEpochPk( org.hyperledger.fabric.protos.idemix.Idemix.ECP2.Builder builderForValue) { if (epochPkBuilder_ == null) { epochPk_ = builderForValue.build(); onChanged(); } else { epochPkBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * epoch_pk is the public key that is used by the revocation authority in this epoch
       * 
* * optional .ECP2 epoch_pk = 2; */ public Builder mergeEpochPk(org.hyperledger.fabric.protos.idemix.Idemix.ECP2 value) { if (epochPkBuilder_ == null) { if (epochPk_ != null) { epochPk_ = org.hyperledger.fabric.protos.idemix.Idemix.ECP2.newBuilder(epochPk_).mergeFrom(value).buildPartial(); } else { epochPk_ = value; } onChanged(); } else { epochPkBuilder_.mergeFrom(value); } return this; } /** *
       * epoch_pk is the public key that is used by the revocation authority in this epoch
       * 
* * optional .ECP2 epoch_pk = 2; */ public Builder clearEpochPk() { if (epochPkBuilder_ == null) { epochPk_ = null; onChanged(); } else { epochPk_ = null; epochPkBuilder_ = null; } return this; } /** *
       * epoch_pk is the public key that is used by the revocation authority in this epoch
       * 
* * optional .ECP2 epoch_pk = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP2.Builder getEpochPkBuilder() { onChanged(); return getEpochPkFieldBuilder().getBuilder(); } /** *
       * epoch_pk is the public key that is used by the revocation authority in this epoch
       * 
* * optional .ECP2 epoch_pk = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP2OrBuilder getEpochPkOrBuilder() { if (epochPkBuilder_ != null) { return epochPkBuilder_.getMessageOrBuilder(); } else { return epochPk_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP2.getDefaultInstance() : epochPk_; } } /** *
       * epoch_pk is the public key that is used by the revocation authority in this epoch
       * 
* * optional .ECP2 epoch_pk = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP2, org.hyperledger.fabric.protos.idemix.Idemix.ECP2.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECP2OrBuilder> getEpochPkFieldBuilder() { if (epochPkBuilder_ == null) { epochPkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP2, org.hyperledger.fabric.protos.idemix.Idemix.ECP2.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECP2OrBuilder>( getEpochPk(), getParentForChildren(), isClean()); epochPk_ = null; } return epochPkBuilder_; } private com.google.protobuf.ByteString epochPkSig_ = com.google.protobuf.ByteString.EMPTY; /** *
       * epoch_pk_sig is a signature on the EpochPK valid under the revocation authority's long term key
       * 
* * optional bytes epoch_pk_sig = 3; */ public com.google.protobuf.ByteString getEpochPkSig() { return epochPkSig_; } /** *
       * epoch_pk_sig is a signature on the EpochPK valid under the revocation authority's long term key
       * 
* * optional bytes epoch_pk_sig = 3; */ public Builder setEpochPkSig(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } epochPkSig_ = value; onChanged(); return this; } /** *
       * epoch_pk_sig is a signature on the EpochPK valid under the revocation authority's long term key
       * 
* * optional bytes epoch_pk_sig = 3; */ public Builder clearEpochPkSig() { epochPkSig_ = getDefaultInstance().getEpochPkSig(); onChanged(); return this; } private int revocationAlg_ ; /** *
       * revocation_alg denotes which revocation algorithm is used
       * 
* * optional int32 revocation_alg = 4; */ public int getRevocationAlg() { return revocationAlg_; } /** *
       * revocation_alg denotes which revocation algorithm is used
       * 
* * optional int32 revocation_alg = 4; */ public Builder setRevocationAlg(int value) { revocationAlg_ = value; onChanged(); return this; } /** *
       * revocation_alg denotes which revocation algorithm is used
       * 
* * optional int32 revocation_alg = 4; */ public Builder clearRevocationAlg() { revocationAlg_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString revocationData_ = com.google.protobuf.ByteString.EMPTY; /** *
       * revocation_data contains data specific to the revocation algorithm used
       * 
* * optional bytes revocation_data = 5; */ public com.google.protobuf.ByteString getRevocationData() { return revocationData_; } /** *
       * revocation_data contains data specific to the revocation algorithm used
       * 
* * optional bytes revocation_data = 5; */ public Builder setRevocationData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } revocationData_ = value; onChanged(); return this; } /** *
       * revocation_data contains data specific to the revocation algorithm used
       * 
* * optional bytes revocation_data = 5; */ public Builder clearRevocationData() { revocationData_ = getDefaultInstance().getRevocationData(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:CredentialRevocationInformation) } // @@protoc_insertion_point(class_scope:CredentialRevocationInformation) private static final org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation(); } public static org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CredentialRevocationInformation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CredentialRevocationInformation(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PlainSigRevocationDataOrBuilder extends // @@protoc_insertion_point(interface_extends:PlainSigRevocationData) com.google.protobuf.MessageOrBuilder { /** *
     * sigantures contains a list of signed revocation handles
     * 
* * repeated .MessageSignature signatures = 1; */ java.util.List getSignaturesList(); /** *
     * sigantures contains a list of signed revocation handles
     * 
* * repeated .MessageSignature signatures = 1; */ org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature getSignatures(int index); /** *
     * sigantures contains a list of signed revocation handles
     * 
* * repeated .MessageSignature signatures = 1; */ int getSignaturesCount(); /** *
     * sigantures contains a list of signed revocation handles
     * 
* * repeated .MessageSignature signatures = 1; */ java.util.List getSignaturesOrBuilderList(); /** *
     * sigantures contains a list of signed revocation handles
     * 
* * repeated .MessageSignature signatures = 1; */ org.hyperledger.fabric.protos.idemix.Idemix.MessageSignatureOrBuilder getSignaturesOrBuilder( int index); } /** *
   * PlainSigRevocationData holds the algorithm-specific data for the plain signature-based revocation algorithm
   * 
* * Protobuf type {@code PlainSigRevocationData} */ public static final class PlainSigRevocationData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:PlainSigRevocationData) PlainSigRevocationDataOrBuilder { // Use PlainSigRevocationData.newBuilder() to construct. private PlainSigRevocationData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PlainSigRevocationData() { signatures_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private PlainSigRevocationData( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { signatures_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } signatures_.add( input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature.parser(), extensionRegistry)); 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 { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { signatures_ = java.util.Collections.unmodifiableList(signatures_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_PlainSigRevocationData_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_PlainSigRevocationData_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData.class, org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData.Builder.class); } public static final int SIGNATURES_FIELD_NUMBER = 1; private java.util.List signatures_; /** *
     * sigantures contains a list of signed revocation handles
     * 
* * repeated .MessageSignature signatures = 1; */ public java.util.List getSignaturesList() { return signatures_; } /** *
     * sigantures contains a list of signed revocation handles
     * 
* * repeated .MessageSignature signatures = 1; */ public java.util.List getSignaturesOrBuilderList() { return signatures_; } /** *
     * sigantures contains a list of signed revocation handles
     * 
* * repeated .MessageSignature signatures = 1; */ public int getSignaturesCount() { return signatures_.size(); } /** *
     * sigantures contains a list of signed revocation handles
     * 
* * repeated .MessageSignature signatures = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature getSignatures(int index) { return signatures_.get(index); } /** *
     * sigantures contains a list of signed revocation handles
     * 
* * repeated .MessageSignature signatures = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.MessageSignatureOrBuilder getSignaturesOrBuilder( int index) { return signatures_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < signatures_.size(); i++) { output.writeMessage(1, signatures_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < signatures_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, signatures_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData)) { return super.equals(obj); } org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData other = (org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData) obj; boolean result = true; result = result && getSignaturesList() .equals(other.getSignaturesList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getSignaturesCount() > 0) { hash = (37 * hash) + SIGNATURES_FIELD_NUMBER; hash = (53 * hash) + getSignaturesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData 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.idemix.Idemix.PlainSigRevocationData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData 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.idemix.Idemix.PlainSigRevocationData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData 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.idemix.Idemix.PlainSigRevocationData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     * PlainSigRevocationData holds the algorithm-specific data for the plain signature-based revocation algorithm
     * 
* * Protobuf type {@code PlainSigRevocationData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:PlainSigRevocationData) org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_PlainSigRevocationData_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_PlainSigRevocationData_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData.class, org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData.Builder.class); } // Construct using org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSignaturesFieldBuilder(); } } public Builder clear() { super.clear(); if (signaturesBuilder_ == null) { signatures_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { signaturesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_PlainSigRevocationData_descriptor; } public org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData getDefaultInstanceForType() { return org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData.getDefaultInstance(); } public org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData build() { org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData buildPartial() { org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData result = new org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData(this); int from_bitField0_ = bitField0_; if (signaturesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { signatures_ = java.util.Collections.unmodifiableList(signatures_); bitField0_ = (bitField0_ & ~0x00000001); } result.signatures_ = signatures_; } else { result.signatures_ = signaturesBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData) { return mergeFrom((org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData other) { if (other == org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData.getDefaultInstance()) return this; if (signaturesBuilder_ == null) { if (!other.signatures_.isEmpty()) { if (signatures_.isEmpty()) { signatures_ = other.signatures_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSignaturesIsMutable(); signatures_.addAll(other.signatures_); } onChanged(); } } else { if (!other.signatures_.isEmpty()) { if (signaturesBuilder_.isEmpty()) { signaturesBuilder_.dispose(); signaturesBuilder_ = null; signatures_ = other.signatures_; bitField0_ = (bitField0_ & ~0x00000001); signaturesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSignaturesFieldBuilder() : null; } else { signaturesBuilder_.addAllMessages(other.signatures_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List signatures_ = java.util.Collections.emptyList(); private void ensureSignaturesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { signatures_ = new java.util.ArrayList(signatures_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature, org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature.Builder, org.hyperledger.fabric.protos.idemix.Idemix.MessageSignatureOrBuilder> signaturesBuilder_; /** *
       * sigantures contains a list of signed revocation handles
       * 
* * repeated .MessageSignature signatures = 1; */ public java.util.List getSignaturesList() { if (signaturesBuilder_ == null) { return java.util.Collections.unmodifiableList(signatures_); } else { return signaturesBuilder_.getMessageList(); } } /** *
       * sigantures contains a list of signed revocation handles
       * 
* * repeated .MessageSignature signatures = 1; */ public int getSignaturesCount() { if (signaturesBuilder_ == null) { return signatures_.size(); } else { return signaturesBuilder_.getCount(); } } /** *
       * sigantures contains a list of signed revocation handles
       * 
* * repeated .MessageSignature signatures = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature getSignatures(int index) { if (signaturesBuilder_ == null) { return signatures_.get(index); } else { return signaturesBuilder_.getMessage(index); } } /** *
       * sigantures contains a list of signed revocation handles
       * 
* * repeated .MessageSignature signatures = 1; */ public Builder setSignatures( int index, org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature value) { if (signaturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSignaturesIsMutable(); signatures_.set(index, value); onChanged(); } else { signaturesBuilder_.setMessage(index, value); } return this; } /** *
       * sigantures contains a list of signed revocation handles
       * 
* * repeated .MessageSignature signatures = 1; */ public Builder setSignatures( int index, org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature.Builder builderForValue) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.set(index, builderForValue.build()); onChanged(); } else { signaturesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * sigantures contains a list of signed revocation handles
       * 
* * repeated .MessageSignature signatures = 1; */ public Builder addSignatures(org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature value) { if (signaturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSignaturesIsMutable(); signatures_.add(value); onChanged(); } else { signaturesBuilder_.addMessage(value); } return this; } /** *
       * sigantures contains a list of signed revocation handles
       * 
* * repeated .MessageSignature signatures = 1; */ public Builder addSignatures( int index, org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature value) { if (signaturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSignaturesIsMutable(); signatures_.add(index, value); onChanged(); } else { signaturesBuilder_.addMessage(index, value); } return this; } /** *
       * sigantures contains a list of signed revocation handles
       * 
* * repeated .MessageSignature signatures = 1; */ public Builder addSignatures( org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature.Builder builderForValue) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.add(builderForValue.build()); onChanged(); } else { signaturesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * sigantures contains a list of signed revocation handles
       * 
* * repeated .MessageSignature signatures = 1; */ public Builder addSignatures( int index, org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature.Builder builderForValue) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.add(index, builderForValue.build()); onChanged(); } else { signaturesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * sigantures contains a list of signed revocation handles
       * 
* * repeated .MessageSignature signatures = 1; */ public Builder addAllSignatures( java.lang.Iterable values) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, signatures_); onChanged(); } else { signaturesBuilder_.addAllMessages(values); } return this; } /** *
       * sigantures contains a list of signed revocation handles
       * 
* * repeated .MessageSignature signatures = 1; */ public Builder clearSignatures() { if (signaturesBuilder_ == null) { signatures_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { signaturesBuilder_.clear(); } return this; } /** *
       * sigantures contains a list of signed revocation handles
       * 
* * repeated .MessageSignature signatures = 1; */ public Builder removeSignatures(int index) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.remove(index); onChanged(); } else { signaturesBuilder_.remove(index); } return this; } /** *
       * sigantures contains a list of signed revocation handles
       * 
* * repeated .MessageSignature signatures = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature.Builder getSignaturesBuilder( int index) { return getSignaturesFieldBuilder().getBuilder(index); } /** *
       * sigantures contains a list of signed revocation handles
       * 
* * repeated .MessageSignature signatures = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.MessageSignatureOrBuilder getSignaturesOrBuilder( int index) { if (signaturesBuilder_ == null) { return signatures_.get(index); } else { return signaturesBuilder_.getMessageOrBuilder(index); } } /** *
       * sigantures contains a list of signed revocation handles
       * 
* * repeated .MessageSignature signatures = 1; */ public java.util.List getSignaturesOrBuilderList() { if (signaturesBuilder_ != null) { return signaturesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(signatures_); } } /** *
       * sigantures contains a list of signed revocation handles
       * 
* * repeated .MessageSignature signatures = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature.Builder addSignaturesBuilder() { return getSignaturesFieldBuilder().addBuilder( org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature.getDefaultInstance()); } /** *
       * sigantures contains a list of signed revocation handles
       * 
* * repeated .MessageSignature signatures = 1; */ public org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature.Builder addSignaturesBuilder( int index) { return getSignaturesFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature.getDefaultInstance()); } /** *
       * sigantures contains a list of signed revocation handles
       * 
* * repeated .MessageSignature signatures = 1; */ public java.util.List getSignaturesBuilderList() { return getSignaturesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature, org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature.Builder, org.hyperledger.fabric.protos.idemix.Idemix.MessageSignatureOrBuilder> getSignaturesFieldBuilder() { if (signaturesBuilder_ == null) { signaturesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature, org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature.Builder, org.hyperledger.fabric.protos.idemix.Idemix.MessageSignatureOrBuilder>( signatures_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); signatures_ = null; } return signaturesBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:PlainSigRevocationData) } // @@protoc_insertion_point(class_scope:PlainSigRevocationData) private static final org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData(); } public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PlainSigRevocationData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PlainSigRevocationData(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.idemix.Idemix.PlainSigRevocationData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MessageSignatureOrBuilder extends // @@protoc_insertion_point(interface_extends:MessageSignature) com.google.protobuf.MessageOrBuilder { /** *
     * revocation_handle is the revocation handle signed
     * 
* * optional bytes revocation_handle = 1; */ com.google.protobuf.ByteString getRevocationHandle(); /** *
     * rh_signature is the signature on the revocation handle
     * 
* * optional .ECP rh_signature = 2; */ boolean hasRhSignature(); /** *
     * rh_signature is the signature on the revocation handle
     * 
* * optional .ECP rh_signature = 2; */ org.hyperledger.fabric.protos.idemix.Idemix.ECP getRhSignature(); /** *
     * rh_signature is the signature on the revocation handle
     * 
* * optional .ECP rh_signature = 2; */ org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getRhSignatureOrBuilder(); } /** * Protobuf type {@code MessageSignature} */ public static final class MessageSignature extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:MessageSignature) MessageSignatureOrBuilder { // Use MessageSignature.newBuilder() to construct. private MessageSignature(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MessageSignature() { revocationHandle_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private MessageSignature( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { revocationHandle_ = input.readBytes(); break; } case 18: { org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder subBuilder = null; if (rhSignature_ != null) { subBuilder = rhSignature_.toBuilder(); } rhSignature_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(rhSignature_); rhSignature_ = subBuilder.buildPartial(); } 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_MessageSignature_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_MessageSignature_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature.class, org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature.Builder.class); } public static final int REVOCATION_HANDLE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString revocationHandle_; /** *
     * revocation_handle is the revocation handle signed
     * 
* * optional bytes revocation_handle = 1; */ public com.google.protobuf.ByteString getRevocationHandle() { return revocationHandle_; } public static final int RH_SIGNATURE_FIELD_NUMBER = 2; private org.hyperledger.fabric.protos.idemix.Idemix.ECP rhSignature_; /** *
     * rh_signature is the signature on the revocation handle
     * 
* * optional .ECP rh_signature = 2; */ public boolean hasRhSignature() { return rhSignature_ != null; } /** *
     * rh_signature is the signature on the revocation handle
     * 
* * optional .ECP rh_signature = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getRhSignature() { return rhSignature_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : rhSignature_; } /** *
     * rh_signature is the signature on the revocation handle
     * 
* * optional .ECP rh_signature = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getRhSignatureOrBuilder() { return getRhSignature(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!revocationHandle_.isEmpty()) { output.writeBytes(1, revocationHandle_); } if (rhSignature_ != null) { output.writeMessage(2, getRhSignature()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!revocationHandle_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, revocationHandle_); } if (rhSignature_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRhSignature()); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature)) { return super.equals(obj); } org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature other = (org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature) obj; boolean result = true; result = result && getRevocationHandle() .equals(other.getRevocationHandle()); result = result && (hasRhSignature() == other.hasRhSignature()); if (hasRhSignature()) { result = result && getRhSignature() .equals(other.getRhSignature()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + REVOCATION_HANDLE_FIELD_NUMBER; hash = (53 * hash) + getRevocationHandle().hashCode(); if (hasRhSignature()) { hash = (37 * hash) + RH_SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getRhSignature().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature 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.idemix.Idemix.MessageSignature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature 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.idemix.Idemix.MessageSignature parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature 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.idemix.Idemix.MessageSignature parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** * Protobuf type {@code MessageSignature} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:MessageSignature) org.hyperledger.fabric.protos.idemix.Idemix.MessageSignatureOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_MessageSignature_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_MessageSignature_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature.class, org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature.Builder.class); } // Construct using org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); revocationHandle_ = com.google.protobuf.ByteString.EMPTY; if (rhSignatureBuilder_ == null) { rhSignature_ = null; } else { rhSignature_ = null; rhSignatureBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_MessageSignature_descriptor; } public org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature getDefaultInstanceForType() { return org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature.getDefaultInstance(); } public org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature build() { org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature buildPartial() { org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature result = new org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature(this); result.revocationHandle_ = revocationHandle_; if (rhSignatureBuilder_ == null) { result.rhSignature_ = rhSignature_; } else { result.rhSignature_ = rhSignatureBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature) { return mergeFrom((org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature other) { if (other == org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature.getDefaultInstance()) return this; if (other.getRevocationHandle() != com.google.protobuf.ByteString.EMPTY) { setRevocationHandle(other.getRevocationHandle()); } if (other.hasRhSignature()) { mergeRhSignature(other.getRhSignature()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString revocationHandle_ = com.google.protobuf.ByteString.EMPTY; /** *
       * revocation_handle is the revocation handle signed
       * 
* * optional bytes revocation_handle = 1; */ public com.google.protobuf.ByteString getRevocationHandle() { return revocationHandle_; } /** *
       * revocation_handle is the revocation handle signed
       * 
* * optional bytes revocation_handle = 1; */ public Builder setRevocationHandle(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } revocationHandle_ = value; onChanged(); return this; } /** *
       * revocation_handle is the revocation handle signed
       * 
* * optional bytes revocation_handle = 1; */ public Builder clearRevocationHandle() { revocationHandle_ = getDefaultInstance().getRevocationHandle(); onChanged(); return this; } private org.hyperledger.fabric.protos.idemix.Idemix.ECP rhSignature_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> rhSignatureBuilder_; /** *
       * rh_signature is the signature on the revocation handle
       * 
* * optional .ECP rh_signature = 2; */ public boolean hasRhSignature() { return rhSignatureBuilder_ != null || rhSignature_ != null; } /** *
       * rh_signature is the signature on the revocation handle
       * 
* * optional .ECP rh_signature = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP getRhSignature() { if (rhSignatureBuilder_ == null) { return rhSignature_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : rhSignature_; } else { return rhSignatureBuilder_.getMessage(); } } /** *
       * rh_signature is the signature on the revocation handle
       * 
* * optional .ECP rh_signature = 2; */ public Builder setRhSignature(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (rhSignatureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rhSignature_ = value; onChanged(); } else { rhSignatureBuilder_.setMessage(value); } return this; } /** *
       * rh_signature is the signature on the revocation handle
       * 
* * optional .ECP rh_signature = 2; */ public Builder setRhSignature( org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder builderForValue) { if (rhSignatureBuilder_ == null) { rhSignature_ = builderForValue.build(); onChanged(); } else { rhSignatureBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * rh_signature is the signature on the revocation handle
       * 
* * optional .ECP rh_signature = 2; */ public Builder mergeRhSignature(org.hyperledger.fabric.protos.idemix.Idemix.ECP value) { if (rhSignatureBuilder_ == null) { if (rhSignature_ != null) { rhSignature_ = org.hyperledger.fabric.protos.idemix.Idemix.ECP.newBuilder(rhSignature_).mergeFrom(value).buildPartial(); } else { rhSignature_ = value; } onChanged(); } else { rhSignatureBuilder_.mergeFrom(value); } return this; } /** *
       * rh_signature is the signature on the revocation handle
       * 
* * optional .ECP rh_signature = 2; */ public Builder clearRhSignature() { if (rhSignatureBuilder_ == null) { rhSignature_ = null; onChanged(); } else { rhSignature_ = null; rhSignatureBuilder_ = null; } return this; } /** *
       * rh_signature is the signature on the revocation handle
       * 
* * optional .ECP rh_signature = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getRhSignatureBuilder() { onChanged(); return getRhSignatureFieldBuilder().getBuilder(); } /** *
       * rh_signature is the signature on the revocation handle
       * 
* * optional .ECP rh_signature = 2; */ public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getRhSignatureOrBuilder() { if (rhSignatureBuilder_ != null) { return rhSignatureBuilder_.getMessageOrBuilder(); } else { return rhSignature_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : rhSignature_; } } /** *
       * rh_signature is the signature on the revocation handle
       * 
* * optional .ECP rh_signature = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder> getRhSignatureFieldBuilder() { if (rhSignatureBuilder_ == null) { rhSignatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.idemix.Idemix.ECP, org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder, org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder>( getRhSignature(), getParentForChildren(), isClean()); rhSignature_ = null; } return rhSignatureBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:MessageSignature) } // @@protoc_insertion_point(class_scope:MessageSignature) private static final org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature(); } public static org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MessageSignature parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MessageSignature(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.idemix.Idemix.MessageSignature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_ECP_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ECP_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ECP2_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ECP2_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_IssuerPublicKey_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_IssuerPublicKey_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_IssuerKey_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_IssuerKey_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Credential_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Credential_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_CredRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_CredRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Signature_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Signature_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_NonRevocationProof_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_NonRevocationProof_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_PlainSigNonRevokedProof_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_PlainSigNonRevokedProof_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_NymSignature_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_NymSignature_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_CredentialRevocationInformation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_CredentialRevocationInformation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_PlainSigRevocationData_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_PlainSigRevocationData_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_MessageSignature_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_MessageSignature_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\023idemix/idemix.proto\"\033\n\003ECP\022\t\n\001x\030\001 \001(\014\022" + "\t\n\001y\030\002 \001(\014\"6\n\004ECP2\022\n\n\002xa\030\001 \001(\014\022\n\n\002xb\030\002 \001" + "(\014\022\n\n\002ya\030\003 \001(\014\022\n\n\002yb\030\004 \001(\014\"\331\001\n\017IssuerPub" + "licKey\022\027\n\017attribute_names\030\001 \003(\t\022\022\n\004h_sk\030" + "\002 \001(\0132\004.ECP\022\024\n\006h_rand\030\003 \001(\0132\004.ECP\022\025\n\007h_a" + "ttrs\030\004 \003(\0132\004.ECP\022\020\n\001w\030\005 \001(\0132\005.ECP2\022\024\n\006ba" + "r_g1\030\006 \001(\0132\004.ECP\022\024\n\006bar_g2\030\007 \001(\0132\004.ECP\022\017" + "\n\007proof_c\030\010 \001(\014\022\017\n\007proof_s\030\t \001(\014\022\014\n\004hash" + "\030\n \001(\014\"7\n\tIssuerKey\022\013\n\003isk\030\001 \001(\014\022\035\n\003ipk\030" + "\002 \001(\0132\020.IssuerPublicKey\"S\n\nCredential\022\017\n", "\001a\030\001 \001(\0132\004.ECP\022\017\n\001b\030\002 \001(\0132\004.ECP\022\t\n\001e\030\003 \001" + "(\014\022\t\n\001s\030\004 \001(\014\022\r\n\005attrs\030\005 \003(\014\"X\n\013CredRequ" + "est\022\021\n\003nym\030\001 \001(\0132\004.ECP\022\024\n\014issuer_nonce\030\002" + " \001(\014\022\017\n\007proof_c\030\003 \001(\014\022\017\n\007proof_s\030\004 \001(\014\"\230" + "\003\n\tSignature\022\025\n\007a_prime\030\001 \001(\0132\004.ECP\022\023\n\005a" + "_bar\030\002 \001(\0132\004.ECP\022\025\n\007b_prime\030\003 \001(\0132\004.ECP\022" + "\017\n\007proof_c\030\004 \001(\014\022\022\n\nproof_s_sk\030\005 \001(\014\022\021\n\t" + "proof_s_e\030\006 \001(\014\022\022\n\nproof_s_r2\030\007 \001(\014\022\022\n\np" + "roof_s_r3\030\010 \001(\014\022\027\n\017proof_s_s_prime\030\t \001(\014" + "\022\025\n\rproof_s_attrs\030\n \003(\014\022\r\n\005nonce\030\013 \001(\014\022\021", "\n\003nym\030\014 \001(\0132\004.ECP\022\025\n\rproof_s_r_nym\030\r \001(\014" + "\022\"\n\023revocation_epoch_pk\030\016 \001(\0132\005.ECP2\022\031\n\021" + "revocation_pk_sig\030\017 \001(\014\022\r\n\005epoch\030\020 \001(\003\0221" + "\n\024non_revocation_proof\030\021 \001(\0132\023.NonRevoca" + "tionProof\"J\n\022NonRevocationProof\022\026\n\016revoc" + "ation_alg\030\001 \001(\005\022\034\n\024non_revocation_proof\030" + "\002 \001(\014\"`\n\027PlainSigNonRevokedProof\022\031\n\013sigm" + "a_prime\030\001 \001(\0132\004.ECP\022\027\n\tsigma_bar\030\002 \001(\0132\004" + ".ECP\022\021\n\tproof_s_r\030\003 \001(\014\"Y\n\014NymSignature\022" + "\017\n\007proof_c\030\001 \001(\014\022\022\n\nproof_s_sk\030\002 \001(\014\022\025\n\r", "proof_s_r_nym\030\003 \001(\014\022\r\n\005nonce\030\004 \001(\014\"\220\001\n\037C" + "redentialRevocationInformation\022\r\n\005epoch\030" + "\001 \001(\003\022\027\n\010epoch_pk\030\002 \001(\0132\005.ECP2\022\024\n\014epoch_" + "pk_sig\030\003 \001(\014\022\026\n\016revocation_alg\030\004 \001(\005\022\027\n\017" + "revocation_data\030\005 \001(\014\"?\n\026PlainSigRevocat" + "ionData\022%\n\nsignatures\030\001 \003(\0132\021.MessageSig" + "nature\"I\n\020MessageSignature\022\031\n\021revocation" + "_handle\030\001 \001(\014\022\032\n\014rh_signature\030\002 \001(\0132\004.EC" + "PBL\n$org.hyperledger.fabric.protos.idemi" + "xZ$github.com/hyperledger/fabric/idemixb", "\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); internal_static_ECP_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_ECP_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ECP_descriptor, new java.lang.String[] { "X", "Y", }); internal_static_ECP2_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_ECP2_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ECP2_descriptor, new java.lang.String[] { "Xa", "Xb", "Ya", "Yb", }); internal_static_IssuerPublicKey_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_IssuerPublicKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_IssuerPublicKey_descriptor, new java.lang.String[] { "AttributeNames", "HSk", "HRand", "HAttrs", "W", "BarG1", "BarG2", "ProofC", "ProofS", "Hash", }); internal_static_IssuerKey_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_IssuerKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_IssuerKey_descriptor, new java.lang.String[] { "Isk", "Ipk", }); internal_static_Credential_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_Credential_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Credential_descriptor, new java.lang.String[] { "A", "B", "E", "S", "Attrs", }); internal_static_CredRequest_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_CredRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_CredRequest_descriptor, new java.lang.String[] { "Nym", "IssuerNonce", "ProofC", "ProofS", }); internal_static_Signature_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_Signature_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Signature_descriptor, new java.lang.String[] { "APrime", "ABar", "BPrime", "ProofC", "ProofSSk", "ProofSE", "ProofSR2", "ProofSR3", "ProofSSPrime", "ProofSAttrs", "Nonce", "Nym", "ProofSRNym", "RevocationEpochPk", "RevocationPkSig", "Epoch", "NonRevocationProof", }); internal_static_NonRevocationProof_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_NonRevocationProof_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_NonRevocationProof_descriptor, new java.lang.String[] { "RevocationAlg", "NonRevocationProof", }); internal_static_PlainSigNonRevokedProof_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_PlainSigNonRevokedProof_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_PlainSigNonRevokedProof_descriptor, new java.lang.String[] { "SigmaPrime", "SigmaBar", "ProofSR", }); internal_static_NymSignature_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_NymSignature_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_NymSignature_descriptor, new java.lang.String[] { "ProofC", "ProofSSk", "ProofSRNym", "Nonce", }); internal_static_CredentialRevocationInformation_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_CredentialRevocationInformation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_CredentialRevocationInformation_descriptor, new java.lang.String[] { "Epoch", "EpochPk", "EpochPkSig", "RevocationAlg", "RevocationData", }); internal_static_PlainSigRevocationData_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_PlainSigRevocationData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_PlainSigRevocationData_descriptor, new java.lang.String[] { "Signatures", }); internal_static_MessageSignature_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_MessageSignature_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_MessageSignature_descriptor, new java.lang.String[] { "RevocationHandle", "RhSignature", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy