org.hyperledger.fabric.protos.idemix.Idemix Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fabric-sdk-java Show documentation
Show all versions of fabric-sdk-java Show documentation
Java SDK for Hyperledger Fabric. Deprecated as of Fabric v2.5, replaced by org.hyperledger.fabric:fabric-gateway.
// 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 {
/**
* bytes x = 1;
* @return The x.
*/
com.google.protobuf.ByteString getX();
/**
* bytes y = 2;
* @return The y.
*/
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 {
private static final long serialVersionUID = 0L;
// 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
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ECP();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_ECP_descriptor;
}
@java.lang.Override
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_;
/**
* bytes x = 1;
* @return The x.
*/
@java.lang.Override
public com.google.protobuf.ByteString getX() {
return x_;
}
public static final int Y_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString y_;
/**
* bytes y = 2;
* @return The y.
*/
@java.lang.Override
public com.google.protobuf.ByteString getY() {
return y_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!x_.isEmpty()) {
output.writeBytes(1, x_);
}
if (!y_.isEmpty()) {
output.writeBytes(2, y_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
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_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.ECP)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.idemix.Idemix.ECP other = (org.hyperledger.fabric.protos.idemix.Idemix.ECP) obj;
if (!getX()
.equals(other.getX())) return false;
if (!getY()
.equals(other.getY())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + X_FIELD_NUMBER;
hash = (53 * hash) + getX().hashCode();
hash = (37 * hash) + Y_FIELD_NUMBER;
hash = (53 * hash) + getY().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.idemix.Idemix.ECP parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.ECP parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.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);
}
@java.lang.Override
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);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* 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;
}
@java.lang.Override
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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
x_ = com.google.protobuf.ByteString.EMPTY;
y_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_ECP_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.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());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
x_ = input.readBytes();
break;
} // case 10
case 18: {
y_ = input.readBytes();
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private com.google.protobuf.ByteString x_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes x = 1;
* @return The x.
*/
@java.lang.Override
public com.google.protobuf.ByteString getX() {
return x_;
}
/**
* bytes x = 1;
* @param value The x to set.
* @return This builder for chaining.
*/
public Builder setX(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
x_ = value;
onChanged();
return this;
}
/**
* bytes x = 1;
* @return This builder for chaining.
*/
public Builder clearX() {
x_ = getDefaultInstance().getX();
onChanged();
return this;
}
private com.google.protobuf.ByteString y_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes y = 2;
* @return The y.
*/
@java.lang.Override
public com.google.protobuf.ByteString getY() {
return y_;
}
/**
* bytes y = 2;
* @param value The y to set.
* @return This builder for chaining.
*/
public Builder setY(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
y_ = value;
onChanged();
return this;
}
/**
* bytes y = 2;
* @return This builder for chaining.
*/
public Builder clearY() {
y_ = getDefaultInstance().getY();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope: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() {
@java.lang.Override
public ECP parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ECP2OrBuilder extends
// @@protoc_insertion_point(interface_extends:ECP2)
com.google.protobuf.MessageOrBuilder {
/**
* bytes xa = 1;
* @return The xa.
*/
com.google.protobuf.ByteString getXa();
/**
* bytes xb = 2;
* @return The xb.
*/
com.google.protobuf.ByteString getXb();
/**
* bytes ya = 3;
* @return The ya.
*/
com.google.protobuf.ByteString getYa();
/**
* bytes yb = 4;
* @return The yb.
*/
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 {
private static final long serialVersionUID = 0L;
// 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
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ECP2();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_ECP2_descriptor;
}
@java.lang.Override
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_;
/**
* bytes xa = 1;
* @return The xa.
*/
@java.lang.Override
public com.google.protobuf.ByteString getXa() {
return xa_;
}
public static final int XB_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString xb_;
/**
* bytes xb = 2;
* @return The xb.
*/
@java.lang.Override
public com.google.protobuf.ByteString getXb() {
return xb_;
}
public static final int YA_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString ya_;
/**
* bytes ya = 3;
* @return The ya.
*/
@java.lang.Override
public com.google.protobuf.ByteString getYa() {
return ya_;
}
public static final int YB_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString yb_;
/**
* bytes yb = 4;
* @return The yb.
*/
@java.lang.Override
public com.google.protobuf.ByteString getYb() {
return yb_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!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_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
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_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.ECP2)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.idemix.Idemix.ECP2 other = (org.hyperledger.fabric.protos.idemix.Idemix.ECP2) obj;
if (!getXa()
.equals(other.getXa())) return false;
if (!getXb()
.equals(other.getXb())) return false;
if (!getYa()
.equals(other.getYa())) return false;
if (!getYb()
.equals(other.getYb())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + 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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.idemix.Idemix.ECP2 parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.ECP2 parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.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);
}
@java.lang.Override
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);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* 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;
}
@java.lang.Override
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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
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;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_ECP2_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.ECP2 getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.idemix.Idemix.ECP2.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.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());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
xa_ = input.readBytes();
break;
} // case 10
case 18: {
xb_ = input.readBytes();
break;
} // case 18
case 26: {
ya_ = input.readBytes();
break;
} // case 26
case 34: {
yb_ = input.readBytes();
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private com.google.protobuf.ByteString xa_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes xa = 1;
* @return The xa.
*/
@java.lang.Override
public com.google.protobuf.ByteString getXa() {
return xa_;
}
/**
* bytes xa = 1;
* @param value The xa to set.
* @return This builder for chaining.
*/
public Builder setXa(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
xa_ = value;
onChanged();
return this;
}
/**
* bytes xa = 1;
* @return This builder for chaining.
*/
public Builder clearXa() {
xa_ = getDefaultInstance().getXa();
onChanged();
return this;
}
private com.google.protobuf.ByteString xb_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes xb = 2;
* @return The xb.
*/
@java.lang.Override
public com.google.protobuf.ByteString getXb() {
return xb_;
}
/**
* bytes xb = 2;
* @param value The xb to set.
* @return This builder for chaining.
*/
public Builder setXb(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
xb_ = value;
onChanged();
return this;
}
/**
* bytes xb = 2;
* @return This builder for chaining.
*/
public Builder clearXb() {
xb_ = getDefaultInstance().getXb();
onChanged();
return this;
}
private com.google.protobuf.ByteString ya_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes ya = 3;
* @return The ya.
*/
@java.lang.Override
public com.google.protobuf.ByteString getYa() {
return ya_;
}
/**
* bytes ya = 3;
* @param value The ya to set.
* @return This builder for chaining.
*/
public Builder setYa(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ya_ = value;
onChanged();
return this;
}
/**
* bytes ya = 3;
* @return This builder for chaining.
*/
public Builder clearYa() {
ya_ = getDefaultInstance().getYa();
onChanged();
return this;
}
private com.google.protobuf.ByteString yb_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes yb = 4;
* @return The yb.
*/
@java.lang.Override
public com.google.protobuf.ByteString getYb() {
return yb_;
}
/**
* bytes yb = 4;
* @param value The yb to set.
* @return This builder for chaining.
*/
public Builder setYb(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
yb_ = value;
onChanged();
return this;
}
/**
* bytes yb = 4;
* @return This builder for chaining.
*/
public Builder clearYb() {
yb_ = getDefaultInstance().getYb();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope: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() {
@java.lang.Override
public ECP2 parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.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;
* @return A list containing the attributeNames.
*/
java.util.List
getAttributeNamesList();
/**
* repeated string attribute_names = 1;
* @return The count of attributeNames.
*/
int getAttributeNamesCount();
/**
* repeated string attribute_names = 1;
* @param index The index of the element to return.
* @return The attributeNames at the given index.
*/
java.lang.String getAttributeNames(int index);
/**
* repeated string attribute_names = 1;
* @param index The index of the value to return.
* @return The bytes of the attributeNames at the given index.
*/
com.google.protobuf.ByteString
getAttributeNamesBytes(int index);
/**
* .ECP h_sk = 2;
* @return Whether the hSk field is set.
*/
boolean hasHSk();
/**
* .ECP h_sk = 2;
* @return The hSk.
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECP getHSk();
/**
* .ECP h_sk = 2;
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getHSkOrBuilder();
/**
* .ECP h_rand = 3;
* @return Whether the hRand field is set.
*/
boolean hasHRand();
/**
* .ECP h_rand = 3;
* @return The hRand.
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECP getHRand();
/**
* .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 extends org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder>
getHAttrsOrBuilderList();
/**
* repeated .ECP h_attrs = 4;
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getHAttrsOrBuilder(
int index);
/**
* .ECP2 w = 5;
* @return Whether the w field is set.
*/
boolean hasW();
/**
* .ECP2 w = 5;
* @return The w.
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECP2 getW();
/**
* .ECP2 w = 5;
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECP2OrBuilder getWOrBuilder();
/**
* .ECP bar_g1 = 6;
* @return Whether the barG1 field is set.
*/
boolean hasBarG1();
/**
* .ECP bar_g1 = 6;
* @return The barG1.
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECP getBarG1();
/**
* .ECP bar_g1 = 6;
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getBarG1OrBuilder();
/**
* .ECP bar_g2 = 7;
* @return Whether the barG2 field is set.
*/
boolean hasBarG2();
/**
* .ECP bar_g2 = 7;
* @return The barG2.
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECP getBarG2();
/**
* .ECP bar_g2 = 7;
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getBarG2OrBuilder();
/**
* bytes proof_c = 8;
* @return The proofC.
*/
com.google.protobuf.ByteString getProofC();
/**
* bytes proof_s = 9;
* @return The proofS.
*/
com.google.protobuf.ByteString getProofS();
/**
* bytes hash = 10;
* @return The hash.
*/
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 {
private static final long serialVersionUID = 0L;
// 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
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IssuerPublicKey();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_IssuerPublicKey_descriptor;
}
@java.lang.Override
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);
}
public static final int ATTRIBUTE_NAMES_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList attributeNames_;
/**
* repeated string attribute_names = 1;
* @return A list containing the attributeNames.
*/
public com.google.protobuf.ProtocolStringList
getAttributeNamesList() {
return attributeNames_;
}
/**
* repeated string attribute_names = 1;
* @return The count of attributeNames.
*/
public int getAttributeNamesCount() {
return attributeNames_.size();
}
/**
* repeated string attribute_names = 1;
* @param index The index of the element to return.
* @return The attributeNames at the given index.
*/
public java.lang.String getAttributeNames(int index) {
return attributeNames_.get(index);
}
/**
* repeated string attribute_names = 1;
* @param index The index of the value to return.
* @return The bytes of the attributeNames at the given index.
*/
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_;
/**
* .ECP h_sk = 2;
* @return Whether the hSk field is set.
*/
@java.lang.Override
public boolean hasHSk() {
return hSk_ != null;
}
/**
* .ECP h_sk = 2;
* @return The hSk.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getHSk() {
return hSk_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : hSk_;
}
/**
* .ECP h_sk = 2;
*/
@java.lang.Override
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_;
/**
* .ECP h_rand = 3;
* @return Whether the hRand field is set.
*/
@java.lang.Override
public boolean hasHRand() {
return hRand_ != null;
}
/**
* .ECP h_rand = 3;
* @return The hRand.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getHRand() {
return hRand_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : hRand_;
}
/**
* .ECP h_rand = 3;
*/
@java.lang.Override
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;
*/
@java.lang.Override
public java.util.List getHAttrsList() {
return hAttrs_;
}
/**
* repeated .ECP h_attrs = 4;
*/
@java.lang.Override
public java.util.List extends org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder>
getHAttrsOrBuilderList() {
return hAttrs_;
}
/**
* repeated .ECP h_attrs = 4;
*/
@java.lang.Override
public int getHAttrsCount() {
return hAttrs_.size();
}
/**
* repeated .ECP h_attrs = 4;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getHAttrs(int index) {
return hAttrs_.get(index);
}
/**
* repeated .ECP h_attrs = 4;
*/
@java.lang.Override
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_;
/**
* .ECP2 w = 5;
* @return Whether the w field is set.
*/
@java.lang.Override
public boolean hasW() {
return w_ != null;
}
/**
* .ECP2 w = 5;
* @return The w.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.ECP2 getW() {
return w_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP2.getDefaultInstance() : w_;
}
/**
* .ECP2 w = 5;
*/
@java.lang.Override
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_;
/**
* .ECP bar_g1 = 6;
* @return Whether the barG1 field is set.
*/
@java.lang.Override
public boolean hasBarG1() {
return barG1_ != null;
}
/**
* .ECP bar_g1 = 6;
* @return The barG1.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getBarG1() {
return barG1_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : barG1_;
}
/**
* .ECP bar_g1 = 6;
*/
@java.lang.Override
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_;
/**
* .ECP bar_g2 = 7;
* @return Whether the barG2 field is set.
*/
@java.lang.Override
public boolean hasBarG2() {
return barG2_ != null;
}
/**
* .ECP bar_g2 = 7;
* @return The barG2.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getBarG2() {
return barG2_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : barG2_;
}
/**
* .ECP bar_g2 = 7;
*/
@java.lang.Override
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_;
/**
* bytes proof_c = 8;
* @return The proofC.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofC() {
return proofC_;
}
public static final int PROOF_S_FIELD_NUMBER = 9;
private com.google.protobuf.ByteString proofS_;
/**
* bytes proof_s = 9;
* @return The proofS.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofS() {
return proofS_;
}
public static final int HASH_FIELD_NUMBER = 10;
private com.google.protobuf.ByteString hash_;
/**
* bytes hash = 10;
* @return The hash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getHash() {
return hash_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
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_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
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_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey other = (org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey) obj;
if (!getAttributeNamesList()
.equals(other.getAttributeNamesList())) return false;
if (hasHSk() != other.hasHSk()) return false;
if (hasHSk()) {
if (!getHSk()
.equals(other.getHSk())) return false;
}
if (hasHRand() != other.hasHRand()) return false;
if (hasHRand()) {
if (!getHRand()
.equals(other.getHRand())) return false;
}
if (!getHAttrsList()
.equals(other.getHAttrsList())) return false;
if (hasW() != other.hasW()) return false;
if (hasW()) {
if (!getW()
.equals(other.getW())) return false;
}
if (hasBarG1() != other.hasBarG1()) return false;
if (hasBarG1()) {
if (!getBarG1()
.equals(other.getBarG1())) return false;
}
if (hasBarG2() != other.hasBarG2()) return false;
if (hasBarG2()) {
if (!getBarG2()
.equals(other.getBarG2())) return false;
}
if (!getProofC()
.equals(other.getProofC())) return false;
if (!getProofS()
.equals(other.getProofS())) return false;
if (!getHash()
.equals(other.getHash())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.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);
}
@java.lang.Override
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);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* 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;
}
@java.lang.Override
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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
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();
} else {
hAttrs_ = null;
hAttrsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
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;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_IssuerPublicKey_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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_;
if (((bitField0_ & 0x00000001) != 0)) {
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_ & 0x00000002) != 0)) {
hAttrs_ = java.util.Collections.unmodifiableList(hAttrs_);
bitField0_ = (bitField0_ & ~0x00000002);
}
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_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.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_ & ~0x00000002);
} else {
ensureHAttrsIsMutable();
hAttrs_.addAll(other.hAttrs_);
}
onChanged();
}
} else {
if (!other.hAttrs_.isEmpty()) {
if (hAttrsBuilder_.isEmpty()) {
hAttrsBuilder_.dispose();
hAttrsBuilder_ = null;
hAttrs_ = other.hAttrs_;
bitField0_ = (bitField0_ & ~0x00000002);
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());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
ensureAttributeNamesIsMutable();
attributeNames_.add(s);
break;
} // case 10
case 18: {
input.readMessage(
getHSkFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 18
case 26: {
input.readMessage(
getHRandFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 26
case 34: {
org.hyperledger.fabric.protos.idemix.Idemix.ECP m =
input.readMessage(
org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(),
extensionRegistry);
if (hAttrsBuilder_ == null) {
ensureHAttrsIsMutable();
hAttrs_.add(m);
} else {
hAttrsBuilder_.addMessage(m);
}
break;
} // case 34
case 42: {
input.readMessage(
getWFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 42
case 50: {
input.readMessage(
getBarG1FieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 50
case 58: {
input.readMessage(
getBarG2FieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 58
case 66: {
proofC_ = input.readBytes();
break;
} // case 66
case 74: {
proofS_ = input.readBytes();
break;
} // case 74
case 82: {
hash_ = input.readBytes();
break;
} // case 82
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList attributeNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAttributeNamesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
attributeNames_ = new com.google.protobuf.LazyStringArrayList(attributeNames_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string attribute_names = 1;
* @return A list containing the attributeNames.
*/
public com.google.protobuf.ProtocolStringList
getAttributeNamesList() {
return attributeNames_.getUnmodifiableView();
}
/**
* repeated string attribute_names = 1;
* @return The count of attributeNames.
*/
public int getAttributeNamesCount() {
return attributeNames_.size();
}
/**
* repeated string attribute_names = 1;
* @param index The index of the element to return.
* @return The attributeNames at the given index.
*/
public java.lang.String getAttributeNames(int index) {
return attributeNames_.get(index);
}
/**
* repeated string attribute_names = 1;
* @param index The index of the value to return.
* @return The bytes of the attributeNames at the given index.
*/
public com.google.protobuf.ByteString
getAttributeNamesBytes(int index) {
return attributeNames_.getByteString(index);
}
/**
* repeated string attribute_names = 1;
* @param index The index to set the value at.
* @param value The attributeNames to set.
* @return This builder for chaining.
*/
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;
* @param value The attributeNames to add.
* @return This builder for chaining.
*/
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;
* @param values The attributeNames to add.
* @return This builder for chaining.
*/
public Builder addAllAttributeNames(
java.lang.Iterable values) {
ensureAttributeNamesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, attributeNames_);
onChanged();
return this;
}
/**
* repeated string attribute_names = 1;
* @return This builder for chaining.
*/
public Builder clearAttributeNames() {
attributeNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string attribute_names = 1;
* @param value The bytes of the attributeNames to add.
* @return This builder for chaining.
*/
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_;
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_;
/**
* .ECP h_sk = 2;
* @return Whether the hSk field is set.
*/
public boolean hasHSk() {
return hSkBuilder_ != null || hSk_ != null;
}
/**
* .ECP h_sk = 2;
* @return The hSk.
*/
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();
}
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .ECP h_sk = 2;
*/
public Builder clearHSk() {
if (hSkBuilder_ == null) {
hSk_ = null;
onChanged();
} else {
hSk_ = null;
hSkBuilder_ = null;
}
return this;
}
/**
* .ECP h_sk = 2;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getHSkBuilder() {
onChanged();
return getHSkFieldBuilder().getBuilder();
}
/**
* .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_;
}
}
/**
* .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_;
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_;
/**
* .ECP h_rand = 3;
* @return Whether the hRand field is set.
*/
public boolean hasHRand() {
return hRandBuilder_ != null || hRand_ != null;
}
/**
* .ECP h_rand = 3;
* @return The hRand.
*/
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();
}
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .ECP h_rand = 3;
*/
public Builder clearHRand() {
if (hRandBuilder_ == null) {
hRand_ = null;
onChanged();
} else {
hRand_ = null;
hRandBuilder_ = null;
}
return this;
}
/**
* .ECP h_rand = 3;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getHRandBuilder() {
onChanged();
return getHRandFieldBuilder().getBuilder();
}
/**
* .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_;
}
}
/**
* .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_ & 0x00000002) != 0)) {
hAttrs_ = new java.util.ArrayList(hAttrs_);
bitField0_ |= 0x00000002;
}
}
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 extends org.hyperledger.fabric.protos.idemix.Idemix.ECP> 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_ & ~0x00000002);
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 extends org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder>
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_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
hAttrs_ = null;
}
return hAttrsBuilder_;
}
private org.hyperledger.fabric.protos.idemix.Idemix.ECP2 w_;
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_;
/**
* .ECP2 w = 5;
* @return Whether the w field is set.
*/
public boolean hasW() {
return wBuilder_ != null || w_ != null;
}
/**
* .ECP2 w = 5;
* @return The w.
*/
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();
}
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .ECP2 w = 5;
*/
public Builder clearW() {
if (wBuilder_ == null) {
w_ = null;
onChanged();
} else {
w_ = null;
wBuilder_ = null;
}
return this;
}
/**
* .ECP2 w = 5;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP2.Builder getWBuilder() {
onChanged();
return getWFieldBuilder().getBuilder();
}
/**
* .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_;
}
}
/**
* .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_;
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_;
/**
* .ECP bar_g1 = 6;
* @return Whether the barG1 field is set.
*/
public boolean hasBarG1() {
return barG1Builder_ != null || barG1_ != null;
}
/**
* .ECP bar_g1 = 6;
* @return The barG1.
*/
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();
}
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .ECP bar_g1 = 6;
*/
public Builder clearBarG1() {
if (barG1Builder_ == null) {
barG1_ = null;
onChanged();
} else {
barG1_ = null;
barG1Builder_ = null;
}
return this;
}
/**
* .ECP bar_g1 = 6;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getBarG1Builder() {
onChanged();
return getBarG1FieldBuilder().getBuilder();
}
/**
* .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_;
}
}
/**
* .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_;
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_;
/**
* .ECP bar_g2 = 7;
* @return Whether the barG2 field is set.
*/
public boolean hasBarG2() {
return barG2Builder_ != null || barG2_ != null;
}
/**
* .ECP bar_g2 = 7;
* @return The barG2.
*/
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();
}
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .ECP bar_g2 = 7;
*/
public Builder clearBarG2() {
if (barG2Builder_ == null) {
barG2_ = null;
onChanged();
} else {
barG2_ = null;
barG2Builder_ = null;
}
return this;
}
/**
* .ECP bar_g2 = 7;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getBarG2Builder() {
onChanged();
return getBarG2FieldBuilder().getBuilder();
}
/**
* .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_;
}
}
/**
* .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;
/**
* bytes proof_c = 8;
* @return The proofC.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofC() {
return proofC_;
}
/**
* bytes proof_c = 8;
* @param value The proofC to set.
* @return This builder for chaining.
*/
public Builder setProofC(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
proofC_ = value;
onChanged();
return this;
}
/**
* bytes proof_c = 8;
* @return This builder for chaining.
*/
public Builder clearProofC() {
proofC_ = getDefaultInstance().getProofC();
onChanged();
return this;
}
private com.google.protobuf.ByteString proofS_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes proof_s = 9;
* @return The proofS.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofS() {
return proofS_;
}
/**
* bytes proof_s = 9;
* @param value The proofS to set.
* @return This builder for chaining.
*/
public Builder setProofS(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
proofS_ = value;
onChanged();
return this;
}
/**
* bytes proof_s = 9;
* @return This builder for chaining.
*/
public Builder clearProofS() {
proofS_ = getDefaultInstance().getProofS();
onChanged();
return this;
}
private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes hash = 10;
* @return The hash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getHash() {
return hash_;
}
/**
* bytes hash = 10;
* @param value The hash to set.
* @return This builder for chaining.
*/
public Builder setHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
hash_ = value;
onChanged();
return this;
}
/**
* bytes hash = 10;
* @return This builder for chaining.
*/
public Builder clearHash() {
hash_ = getDefaultInstance().getHash();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope: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() {
@java.lang.Override
public IssuerPublicKey parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IssuerKeyOrBuilder extends
// @@protoc_insertion_point(interface_extends:IssuerKey)
com.google.protobuf.MessageOrBuilder {
/**
* bytes isk = 1;
* @return The isk.
*/
com.google.protobuf.ByteString getIsk();
/**
* .IssuerPublicKey ipk = 2;
* @return Whether the ipk field is set.
*/
boolean hasIpk();
/**
* .IssuerPublicKey ipk = 2;
* @return The ipk.
*/
org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey getIpk();
/**
* .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 {
private static final long serialVersionUID = 0L;
// 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
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IssuerKey();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_IssuerKey_descriptor;
}
@java.lang.Override
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_;
/**
* bytes isk = 1;
* @return The isk.
*/
@java.lang.Override
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_;
/**
* .IssuerPublicKey ipk = 2;
* @return Whether the ipk field is set.
*/
@java.lang.Override
public boolean hasIpk() {
return ipk_ != null;
}
/**
* .IssuerPublicKey ipk = 2;
* @return The ipk.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey getIpk() {
return ipk_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey.getDefaultInstance() : ipk_;
}
/**
* .IssuerPublicKey ipk = 2;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKeyOrBuilder getIpkOrBuilder() {
return getIpk();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!isk_.isEmpty()) {
output.writeBytes(1, isk_);
}
if (ipk_ != null) {
output.writeMessage(2, getIpk());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
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());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey other = (org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey) obj;
if (!getIsk()
.equals(other.getIsk())) return false;
if (hasIpk() != other.hasIpk()) return false;
if (hasIpk()) {
if (!getIpk()
.equals(other.getIpk())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ISK_FIELD_NUMBER;
hash = (53 * hash) + getIsk().hashCode();
if (hasIpk()) {
hash = (37 * hash) + IPK_FIELD_NUMBER;
hash = (53 * hash) + getIpk().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.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);
}
@java.lang.Override
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);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* 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;
}
@java.lang.Override
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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
isk_ = com.google.protobuf.ByteString.EMPTY;
if (ipkBuilder_ == null) {
ipk_ = null;
} else {
ipk_ = null;
ipkBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_IssuerKey_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.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());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
isk_ = input.readBytes();
break;
} // case 10
case 18: {
input.readMessage(
getIpkFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private com.google.protobuf.ByteString isk_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes isk = 1;
* @return The isk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIsk() {
return isk_;
}
/**
* bytes isk = 1;
* @param value The isk to set.
* @return This builder for chaining.
*/
public Builder setIsk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
isk_ = value;
onChanged();
return this;
}
/**
* bytes isk = 1;
* @return This builder for chaining.
*/
public Builder clearIsk() {
isk_ = getDefaultInstance().getIsk();
onChanged();
return this;
}
private org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey ipk_;
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_;
/**
* .IssuerPublicKey ipk = 2;
* @return Whether the ipk field is set.
*/
public boolean hasIpk() {
return ipkBuilder_ != null || ipk_ != null;
}
/**
* .IssuerPublicKey ipk = 2;
* @return The ipk.
*/
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();
}
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .IssuerPublicKey ipk = 2;
*/
public Builder clearIpk() {
if (ipkBuilder_ == null) {
ipk_ = null;
onChanged();
} else {
ipk_ = null;
ipkBuilder_ = null;
}
return this;
}
/**
* .IssuerPublicKey ipk = 2;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey.Builder getIpkBuilder() {
onChanged();
return getIpkFieldBuilder().getBuilder();
}
/**
* .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_;
}
}
/**
* .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_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope: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() {
@java.lang.Override
public IssuerKey parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.IssuerKey getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CredentialOrBuilder extends
// @@protoc_insertion_point(interface_extends:Credential)
com.google.protobuf.MessageOrBuilder {
/**
* .ECP a = 1;
* @return Whether the a field is set.
*/
boolean hasA();
/**
* .ECP a = 1;
* @return The a.
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECP getA();
/**
* .ECP a = 1;
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getAOrBuilder();
/**
* .ECP b = 2;
* @return Whether the b field is set.
*/
boolean hasB();
/**
* .ECP b = 2;
* @return The b.
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECP getB();
/**
* .ECP b = 2;
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getBOrBuilder();
/**
* bytes e = 3;
* @return The e.
*/
com.google.protobuf.ByteString getE();
/**
* bytes s = 4;
* @return The s.
*/
com.google.protobuf.ByteString getS();
/**
* repeated bytes attrs = 5;
* @return A list containing the attrs.
*/
java.util.List getAttrsList();
/**
* repeated bytes attrs = 5;
* @return The count of attrs.
*/
int getAttrsCount();
/**
* repeated bytes attrs = 5;
* @param index The index of the element to return.
* @return The attrs at the given index.
*/
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 {
private static final long serialVersionUID = 0L;
// 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
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Credential();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_Credential_descriptor;
}
@java.lang.Override
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);
}
public static final int A_FIELD_NUMBER = 1;
private org.hyperledger.fabric.protos.idemix.Idemix.ECP a_;
/**
* .ECP a = 1;
* @return Whether the a field is set.
*/
@java.lang.Override
public boolean hasA() {
return a_ != null;
}
/**
* .ECP a = 1;
* @return The a.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getA() {
return a_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : a_;
}
/**
* .ECP a = 1;
*/
@java.lang.Override
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_;
/**
* .ECP b = 2;
* @return Whether the b field is set.
*/
@java.lang.Override
public boolean hasB() {
return b_ != null;
}
/**
* .ECP b = 2;
* @return The b.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getB() {
return b_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : b_;
}
/**
* .ECP b = 2;
*/
@java.lang.Override
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_;
/**
* bytes e = 3;
* @return The e.
*/
@java.lang.Override
public com.google.protobuf.ByteString getE() {
return e_;
}
public static final int S_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString s_;
/**
* bytes s = 4;
* @return The s.
*/
@java.lang.Override
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;
* @return A list containing the attrs.
*/
@java.lang.Override
public java.util.List
getAttrsList() {
return attrs_;
}
/**
* repeated bytes attrs = 5;
* @return The count of attrs.
*/
public int getAttrsCount() {
return attrs_.size();
}
/**
* repeated bytes attrs = 5;
* @param index The index of the element to return.
* @return The attrs at the given index.
*/
public com.google.protobuf.ByteString getAttrs(int index) {
return attrs_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (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));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
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();
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.Credential)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.idemix.Idemix.Credential other = (org.hyperledger.fabric.protos.idemix.Idemix.Credential) obj;
if (hasA() != other.hasA()) return false;
if (hasA()) {
if (!getA()
.equals(other.getA())) return false;
}
if (hasB() != other.hasB()) return false;
if (hasB()) {
if (!getB()
.equals(other.getB())) return false;
}
if (!getE()
.equals(other.getE())) return false;
if (!getS()
.equals(other.getS())) return false;
if (!getAttrsList()
.equals(other.getAttrsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.idemix.Idemix.Credential parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.Credential parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.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);
}
@java.lang.Override
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);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* 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;
}
@java.lang.Override
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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
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_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_Credential_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.Credential getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.idemix.Idemix.Credential.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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_;
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_ & 0x00000001) != 0)) {
attrs_ = java.util.Collections.unmodifiableList(attrs_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.attrs_ = attrs_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.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_ & ~0x00000001);
} else {
ensureAttrsIsMutable();
attrs_.addAll(other.attrs_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getAFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
case 18: {
input.readMessage(
getBFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 18
case 26: {
e_ = input.readBytes();
break;
} // case 26
case 34: {
s_ = input.readBytes();
break;
} // case 34
case 42: {
com.google.protobuf.ByteString v = input.readBytes();
ensureAttrsIsMutable();
attrs_.add(v);
break;
} // case 42
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private org.hyperledger.fabric.protos.idemix.Idemix.ECP a_;
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_;
/**
* .ECP a = 1;
* @return Whether the a field is set.
*/
public boolean hasA() {
return aBuilder_ != null || a_ != null;
}
/**
* .ECP a = 1;
* @return The a.
*/
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();
}
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .ECP a = 1;
*/
public Builder clearA() {
if (aBuilder_ == null) {
a_ = null;
onChanged();
} else {
a_ = null;
aBuilder_ = null;
}
return this;
}
/**
* .ECP a = 1;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getABuilder() {
onChanged();
return getAFieldBuilder().getBuilder();
}
/**
* .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_;
}
}
/**
* .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_;
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_;
/**
* .ECP b = 2;
* @return Whether the b field is set.
*/
public boolean hasB() {
return bBuilder_ != null || b_ != null;
}
/**
* .ECP b = 2;
* @return The b.
*/
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();
}
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .ECP b = 2;
*/
public Builder clearB() {
if (bBuilder_ == null) {
b_ = null;
onChanged();
} else {
b_ = null;
bBuilder_ = null;
}
return this;
}
/**
* .ECP b = 2;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getBBuilder() {
onChanged();
return getBFieldBuilder().getBuilder();
}
/**
* .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_;
}
}
/**
* .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;
/**
* bytes e = 3;
* @return The e.
*/
@java.lang.Override
public com.google.protobuf.ByteString getE() {
return e_;
}
/**
* bytes e = 3;
* @param value The e to set.
* @return This builder for chaining.
*/
public Builder setE(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
e_ = value;
onChanged();
return this;
}
/**
* bytes e = 3;
* @return This builder for chaining.
*/
public Builder clearE() {
e_ = getDefaultInstance().getE();
onChanged();
return this;
}
private com.google.protobuf.ByteString s_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes s = 4;
* @return The s.
*/
@java.lang.Override
public com.google.protobuf.ByteString getS() {
return s_;
}
/**
* bytes s = 4;
* @param value The s to set.
* @return This builder for chaining.
*/
public Builder setS(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
s_ = value;
onChanged();
return this;
}
/**
* bytes s = 4;
* @return This builder for chaining.
*/
public Builder clearS() {
s_ = getDefaultInstance().getS();
onChanged();
return this;
}
private java.util.List attrs_ = java.util.Collections.emptyList();
private void ensureAttrsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
attrs_ = new java.util.ArrayList(attrs_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes attrs = 5;
* @return A list containing the attrs.
*/
public java.util.List
getAttrsList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(attrs_) : attrs_;
}
/**
* repeated bytes attrs = 5;
* @return The count of attrs.
*/
public int getAttrsCount() {
return attrs_.size();
}
/**
* repeated bytes attrs = 5;
* @param index The index of the element to return.
* @return The attrs at the given index.
*/
public com.google.protobuf.ByteString getAttrs(int index) {
return attrs_.get(index);
}
/**
* repeated bytes attrs = 5;
* @param index The index to set the value at.
* @param value The attrs to set.
* @return This builder for chaining.
*/
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;
* @param value The attrs to add.
* @return This builder for chaining.
*/
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;
* @param values The attrs to add.
* @return This builder for chaining.
*/
public Builder addAllAttrs(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureAttrsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, attrs_);
onChanged();
return this;
}
/**
* repeated bytes attrs = 5;
* @return This builder for chaining.
*/
public Builder clearAttrs() {
attrs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope: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() {
@java.lang.Override
public Credential parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.Credential getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CredRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:CredRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .ECP nym = 1;
* @return Whether the nym field is set.
*/
boolean hasNym();
/**
* .ECP nym = 1;
* @return The nym.
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECP getNym();
/**
* .ECP nym = 1;
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getNymOrBuilder();
/**
* bytes issuer_nonce = 2;
* @return The issuerNonce.
*/
com.google.protobuf.ByteString getIssuerNonce();
/**
* bytes proof_c = 3;
* @return The proofC.
*/
com.google.protobuf.ByteString getProofC();
/**
* bytes proof_s = 4;
* @return The proofS.
*/
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 {
private static final long serialVersionUID = 0L;
// 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
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CredRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_CredRequest_descriptor;
}
@java.lang.Override
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_;
/**
* .ECP nym = 1;
* @return Whether the nym field is set.
*/
@java.lang.Override
public boolean hasNym() {
return nym_ != null;
}
/**
* .ECP nym = 1;
* @return The nym.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getNym() {
return nym_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : nym_;
}
/**
* .ECP nym = 1;
*/
@java.lang.Override
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_;
/**
* bytes issuer_nonce = 2;
* @return The issuerNonce.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIssuerNonce() {
return issuerNonce_;
}
public static final int PROOF_C_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString proofC_;
/**
* bytes proof_c = 3;
* @return The proofC.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofC() {
return proofC_;
}
public static final int PROOF_S_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString proofS_;
/**
* bytes proof_s = 4;
* @return The proofS.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofS() {
return proofS_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (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_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
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_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.CredRequest)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.idemix.Idemix.CredRequest other = (org.hyperledger.fabric.protos.idemix.Idemix.CredRequest) obj;
if (hasNym() != other.hasNym()) return false;
if (hasNym()) {
if (!getNym()
.equals(other.getNym())) return false;
}
if (!getIssuerNonce()
.equals(other.getIssuerNonce())) return false;
if (!getProofC()
.equals(other.getProofC())) return false;
if (!getProofS()
.equals(other.getProofS())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.idemix.Idemix.CredRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.CredRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.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);
}
@java.lang.Override
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);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* 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;
}
@java.lang.Override
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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
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;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_CredRequest_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.CredRequest getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.idemix.Idemix.CredRequest.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.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());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getNymFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
case 18: {
issuerNonce_ = input.readBytes();
break;
} // case 18
case 26: {
proofC_ = input.readBytes();
break;
} // case 26
case 34: {
proofS_ = input.readBytes();
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private org.hyperledger.fabric.protos.idemix.Idemix.ECP nym_;
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_;
/**
* .ECP nym = 1;
* @return Whether the nym field is set.
*/
public boolean hasNym() {
return nymBuilder_ != null || nym_ != null;
}
/**
* .ECP nym = 1;
* @return The nym.
*/
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();
}
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .ECP nym = 1;
*/
public Builder clearNym() {
if (nymBuilder_ == null) {
nym_ = null;
onChanged();
} else {
nym_ = null;
nymBuilder_ = null;
}
return this;
}
/**
* .ECP nym = 1;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getNymBuilder() {
onChanged();
return getNymFieldBuilder().getBuilder();
}
/**
* .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_;
}
}
/**
* .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;
/**
* bytes issuer_nonce = 2;
* @return The issuerNonce.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIssuerNonce() {
return issuerNonce_;
}
/**
* bytes issuer_nonce = 2;
* @param value The issuerNonce to set.
* @return This builder for chaining.
*/
public Builder setIssuerNonce(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
issuerNonce_ = value;
onChanged();
return this;
}
/**
* bytes issuer_nonce = 2;
* @return This builder for chaining.
*/
public Builder clearIssuerNonce() {
issuerNonce_ = getDefaultInstance().getIssuerNonce();
onChanged();
return this;
}
private com.google.protobuf.ByteString proofC_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes proof_c = 3;
* @return The proofC.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofC() {
return proofC_;
}
/**
* bytes proof_c = 3;
* @param value The proofC to set.
* @return This builder for chaining.
*/
public Builder setProofC(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
proofC_ = value;
onChanged();
return this;
}
/**
* bytes proof_c = 3;
* @return This builder for chaining.
*/
public Builder clearProofC() {
proofC_ = getDefaultInstance().getProofC();
onChanged();
return this;
}
private com.google.protobuf.ByteString proofS_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes proof_s = 4;
* @return The proofS.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofS() {
return proofS_;
}
/**
* bytes proof_s = 4;
* @param value The proofS to set.
* @return This builder for chaining.
*/
public Builder setProofS(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
proofS_ = value;
onChanged();
return this;
}
/**
* bytes proof_s = 4;
* @return This builder for chaining.
*/
public Builder clearProofS() {
proofS_ = getDefaultInstance().getProofS();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope: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() {
@java.lang.Override
public CredRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.CredRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SignatureOrBuilder extends
// @@protoc_insertion_point(interface_extends:Signature)
com.google.protobuf.MessageOrBuilder {
/**
* .ECP a_prime = 1;
* @return Whether the aPrime field is set.
*/
boolean hasAPrime();
/**
* .ECP a_prime = 1;
* @return The aPrime.
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECP getAPrime();
/**
* .ECP a_prime = 1;
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getAPrimeOrBuilder();
/**
* .ECP a_bar = 2;
* @return Whether the aBar field is set.
*/
boolean hasABar();
/**
* .ECP a_bar = 2;
* @return The aBar.
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECP getABar();
/**
* .ECP a_bar = 2;
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getABarOrBuilder();
/**
* .ECP b_prime = 3;
* @return Whether the bPrime field is set.
*/
boolean hasBPrime();
/**
* .ECP b_prime = 3;
* @return The bPrime.
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECP getBPrime();
/**
* .ECP b_prime = 3;
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getBPrimeOrBuilder();
/**
* bytes proof_c = 4;
* @return The proofC.
*/
com.google.protobuf.ByteString getProofC();
/**
* bytes proof_s_sk = 5;
* @return The proofSSk.
*/
com.google.protobuf.ByteString getProofSSk();
/**
* bytes proof_s_e = 6;
* @return The proofSE.
*/
com.google.protobuf.ByteString getProofSE();
/**
* bytes proof_s_r2 = 7;
* @return The proofSR2.
*/
com.google.protobuf.ByteString getProofSR2();
/**
* bytes proof_s_r3 = 8;
* @return The proofSR3.
*/
com.google.protobuf.ByteString getProofSR3();
/**
* bytes proof_s_s_prime = 9;
* @return The proofSSPrime.
*/
com.google.protobuf.ByteString getProofSSPrime();
/**
* repeated bytes proof_s_attrs = 10;
* @return A list containing the proofSAttrs.
*/
java.util.List getProofSAttrsList();
/**
* repeated bytes proof_s_attrs = 10;
* @return The count of proofSAttrs.
*/
int getProofSAttrsCount();
/**
* repeated bytes proof_s_attrs = 10;
* @param index The index of the element to return.
* @return The proofSAttrs at the given index.
*/
com.google.protobuf.ByteString getProofSAttrs(int index);
/**
* bytes nonce = 11;
* @return The nonce.
*/
com.google.protobuf.ByteString getNonce();
/**
* .ECP nym = 12;
* @return Whether the nym field is set.
*/
boolean hasNym();
/**
* .ECP nym = 12;
* @return The nym.
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECP getNym();
/**
* .ECP nym = 12;
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getNymOrBuilder();
/**
* bytes proof_s_r_nym = 13;
* @return The proofSRNym.
*/
com.google.protobuf.ByteString getProofSRNym();
/**
* .ECP2 revocation_epoch_pk = 14;
* @return Whether the revocationEpochPk field is set.
*/
boolean hasRevocationEpochPk();
/**
* .ECP2 revocation_epoch_pk = 14;
* @return The revocationEpochPk.
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECP2 getRevocationEpochPk();
/**
* .ECP2 revocation_epoch_pk = 14;
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECP2OrBuilder getRevocationEpochPkOrBuilder();
/**
* bytes revocation_pk_sig = 15;
* @return The revocationPkSig.
*/
com.google.protobuf.ByteString getRevocationPkSig();
/**
* int64 epoch = 16;
* @return The epoch.
*/
long getEpoch();
/**
* .NonRevocationProof non_revocation_proof = 17;
* @return Whether the nonRevocationProof field is set.
*/
boolean hasNonRevocationProof();
/**
* .NonRevocationProof non_revocation_proof = 17;
* @return The nonRevocationProof.
*/
org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof getNonRevocationProof();
/**
* .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 {
private static final long serialVersionUID = 0L;
// 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;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Signature();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_Signature_descriptor;
}
@java.lang.Override
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);
}
public static final int A_PRIME_FIELD_NUMBER = 1;
private org.hyperledger.fabric.protos.idemix.Idemix.ECP aPrime_;
/**
* .ECP a_prime = 1;
* @return Whether the aPrime field is set.
*/
@java.lang.Override
public boolean hasAPrime() {
return aPrime_ != null;
}
/**
* .ECP a_prime = 1;
* @return The aPrime.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getAPrime() {
return aPrime_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : aPrime_;
}
/**
* .ECP a_prime = 1;
*/
@java.lang.Override
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_;
/**
* .ECP a_bar = 2;
* @return Whether the aBar field is set.
*/
@java.lang.Override
public boolean hasABar() {
return aBar_ != null;
}
/**
* .ECP a_bar = 2;
* @return The aBar.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getABar() {
return aBar_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : aBar_;
}
/**
* .ECP a_bar = 2;
*/
@java.lang.Override
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_;
/**
* .ECP b_prime = 3;
* @return Whether the bPrime field is set.
*/
@java.lang.Override
public boolean hasBPrime() {
return bPrime_ != null;
}
/**
* .ECP b_prime = 3;
* @return The bPrime.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getBPrime() {
return bPrime_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : bPrime_;
}
/**
* .ECP b_prime = 3;
*/
@java.lang.Override
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_;
/**
* bytes proof_c = 4;
* @return The proofC.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofC() {
return proofC_;
}
public static final int PROOF_S_SK_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString proofSSk_;
/**
* bytes proof_s_sk = 5;
* @return The proofSSk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofSSk() {
return proofSSk_;
}
public static final int PROOF_S_E_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString proofSE_;
/**
* bytes proof_s_e = 6;
* @return The proofSE.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofSE() {
return proofSE_;
}
public static final int PROOF_S_R2_FIELD_NUMBER = 7;
private com.google.protobuf.ByteString proofSR2_;
/**
* bytes proof_s_r2 = 7;
* @return The proofSR2.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofSR2() {
return proofSR2_;
}
public static final int PROOF_S_R3_FIELD_NUMBER = 8;
private com.google.protobuf.ByteString proofSR3_;
/**
* bytes proof_s_r3 = 8;
* @return The proofSR3.
*/
@java.lang.Override
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_;
/**
* bytes proof_s_s_prime = 9;
* @return The proofSSPrime.
*/
@java.lang.Override
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;
* @return A list containing the proofSAttrs.
*/
@java.lang.Override
public java.util.List
getProofSAttrsList() {
return proofSAttrs_;
}
/**
* repeated bytes proof_s_attrs = 10;
* @return The count of proofSAttrs.
*/
public int getProofSAttrsCount() {
return proofSAttrs_.size();
}
/**
* repeated bytes proof_s_attrs = 10;
* @param index The index of the element to return.
* @return The proofSAttrs at the given index.
*/
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_;
/**
* bytes nonce = 11;
* @return The nonce.
*/
@java.lang.Override
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_;
/**
* .ECP nym = 12;
* @return Whether the nym field is set.
*/
@java.lang.Override
public boolean hasNym() {
return nym_ != null;
}
/**
* .ECP nym = 12;
* @return The nym.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getNym() {
return nym_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : nym_;
}
/**
* .ECP nym = 12;
*/
@java.lang.Override
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_;
/**
* bytes proof_s_r_nym = 13;
* @return The proofSRNym.
*/
@java.lang.Override
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_;
/**
* .ECP2 revocation_epoch_pk = 14;
* @return Whether the revocationEpochPk field is set.
*/
@java.lang.Override
public boolean hasRevocationEpochPk() {
return revocationEpochPk_ != null;
}
/**
* .ECP2 revocation_epoch_pk = 14;
* @return The revocationEpochPk.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.ECP2 getRevocationEpochPk() {
return revocationEpochPk_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP2.getDefaultInstance() : revocationEpochPk_;
}
/**
* .ECP2 revocation_epoch_pk = 14;
*/
@java.lang.Override
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_;
/**
* bytes revocation_pk_sig = 15;
* @return The revocationPkSig.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRevocationPkSig() {
return revocationPkSig_;
}
public static final int EPOCH_FIELD_NUMBER = 16;
private long epoch_;
/**
* int64 epoch = 16;
* @return The epoch.
*/
@java.lang.Override
public long getEpoch() {
return epoch_;
}
public static final int NON_REVOCATION_PROOF_FIELD_NUMBER = 17;
private org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof nonRevocationProof_;
/**
* .NonRevocationProof non_revocation_proof = 17;
* @return Whether the nonRevocationProof field is set.
*/
@java.lang.Override
public boolean hasNonRevocationProof() {
return nonRevocationProof_ != null;
}
/**
* .NonRevocationProof non_revocation_proof = 17;
* @return The nonRevocationProof.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof getNonRevocationProof() {
return nonRevocationProof_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.getDefaultInstance() : nonRevocationProof_;
}
/**
* .NonRevocationProof non_revocation_proof = 17;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProofOrBuilder getNonRevocationProofOrBuilder() {
return getNonRevocationProof();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (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());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
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());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.Signature)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.idemix.Idemix.Signature other = (org.hyperledger.fabric.protos.idemix.Idemix.Signature) obj;
if (hasAPrime() != other.hasAPrime()) return false;
if (hasAPrime()) {
if (!getAPrime()
.equals(other.getAPrime())) return false;
}
if (hasABar() != other.hasABar()) return false;
if (hasABar()) {
if (!getABar()
.equals(other.getABar())) return false;
}
if (hasBPrime() != other.hasBPrime()) return false;
if (hasBPrime()) {
if (!getBPrime()
.equals(other.getBPrime())) return false;
}
if (!getProofC()
.equals(other.getProofC())) return false;
if (!getProofSSk()
.equals(other.getProofSSk())) return false;
if (!getProofSE()
.equals(other.getProofSE())) return false;
if (!getProofSR2()
.equals(other.getProofSR2())) return false;
if (!getProofSR3()
.equals(other.getProofSR3())) return false;
if (!getProofSSPrime()
.equals(other.getProofSSPrime())) return false;
if (!getProofSAttrsList()
.equals(other.getProofSAttrsList())) return false;
if (!getNonce()
.equals(other.getNonce())) return false;
if (hasNym() != other.hasNym()) return false;
if (hasNym()) {
if (!getNym()
.equals(other.getNym())) return false;
}
if (!getProofSRNym()
.equals(other.getProofSRNym())) return false;
if (hasRevocationEpochPk() != other.hasRevocationEpochPk()) return false;
if (hasRevocationEpochPk()) {
if (!getRevocationEpochPk()
.equals(other.getRevocationEpochPk())) return false;
}
if (!getRevocationPkSig()
.equals(other.getRevocationPkSig())) return false;
if (getEpoch()
!= other.getEpoch()) return false;
if (hasNonRevocationProof() != other.hasNonRevocationProof()) return false;
if (hasNonRevocationProof()) {
if (!getNonRevocationProof()
.equals(other.getNonRevocationProof())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.idemix.Idemix.Signature parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.Signature parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.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);
}
@java.lang.Override
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);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* 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;
}
@java.lang.Override
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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
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_ & ~0x00000001);
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;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_Signature_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.Signature getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.idemix.Idemix.Signature.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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_;
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_ & 0x00000001) != 0)) {
proofSAttrs_ = java.util.Collections.unmodifiableList(proofSAttrs_);
bitField0_ = (bitField0_ & ~0x00000001);
}
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();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.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_ & ~0x00000001);
} 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());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getAPrimeFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
case 18: {
input.readMessage(
getABarFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 18
case 26: {
input.readMessage(
getBPrimeFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 26
case 34: {
proofC_ = input.readBytes();
break;
} // case 34
case 42: {
proofSSk_ = input.readBytes();
break;
} // case 42
case 50: {
proofSE_ = input.readBytes();
break;
} // case 50
case 58: {
proofSR2_ = input.readBytes();
break;
} // case 58
case 66: {
proofSR3_ = input.readBytes();
break;
} // case 66
case 74: {
proofSSPrime_ = input.readBytes();
break;
} // case 74
case 82: {
com.google.protobuf.ByteString v = input.readBytes();
ensureProofSAttrsIsMutable();
proofSAttrs_.add(v);
break;
} // case 82
case 90: {
nonce_ = input.readBytes();
break;
} // case 90
case 98: {
input.readMessage(
getNymFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 98
case 106: {
proofSRNym_ = input.readBytes();
break;
} // case 106
case 114: {
input.readMessage(
getRevocationEpochPkFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 114
case 122: {
revocationPkSig_ = input.readBytes();
break;
} // case 122
case 128: {
epoch_ = input.readInt64();
break;
} // case 128
case 138: {
input.readMessage(
getNonRevocationProofFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 138
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private org.hyperledger.fabric.protos.idemix.Idemix.ECP aPrime_;
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_;
/**
* .ECP a_prime = 1;
* @return Whether the aPrime field is set.
*/
public boolean hasAPrime() {
return aPrimeBuilder_ != null || aPrime_ != null;
}
/**
* .ECP a_prime = 1;
* @return The aPrime.
*/
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();
}
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .ECP a_prime = 1;
*/
public Builder clearAPrime() {
if (aPrimeBuilder_ == null) {
aPrime_ = null;
onChanged();
} else {
aPrime_ = null;
aPrimeBuilder_ = null;
}
return this;
}
/**
* .ECP a_prime = 1;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getAPrimeBuilder() {
onChanged();
return getAPrimeFieldBuilder().getBuilder();
}
/**
* .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_;
}
}
/**
* .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_;
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_;
/**
* .ECP a_bar = 2;
* @return Whether the aBar field is set.
*/
public boolean hasABar() {
return aBarBuilder_ != null || aBar_ != null;
}
/**
* .ECP a_bar = 2;
* @return The aBar.
*/
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();
}
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .ECP a_bar = 2;
*/
public Builder clearABar() {
if (aBarBuilder_ == null) {
aBar_ = null;
onChanged();
} else {
aBar_ = null;
aBarBuilder_ = null;
}
return this;
}
/**
* .ECP a_bar = 2;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getABarBuilder() {
onChanged();
return getABarFieldBuilder().getBuilder();
}
/**
* .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_;
}
}
/**
* .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_;
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_;
/**
* .ECP b_prime = 3;
* @return Whether the bPrime field is set.
*/
public boolean hasBPrime() {
return bPrimeBuilder_ != null || bPrime_ != null;
}
/**
* .ECP b_prime = 3;
* @return The bPrime.
*/
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();
}
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .ECP b_prime = 3;
*/
public Builder clearBPrime() {
if (bPrimeBuilder_ == null) {
bPrime_ = null;
onChanged();
} else {
bPrime_ = null;
bPrimeBuilder_ = null;
}
return this;
}
/**
* .ECP b_prime = 3;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getBPrimeBuilder() {
onChanged();
return getBPrimeFieldBuilder().getBuilder();
}
/**
* .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_;
}
}
/**
* .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;
/**
* bytes proof_c = 4;
* @return The proofC.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofC() {
return proofC_;
}
/**
* bytes proof_c = 4;
* @param value The proofC to set.
* @return This builder for chaining.
*/
public Builder setProofC(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
proofC_ = value;
onChanged();
return this;
}
/**
* bytes proof_c = 4;
* @return This builder for chaining.
*/
public Builder clearProofC() {
proofC_ = getDefaultInstance().getProofC();
onChanged();
return this;
}
private com.google.protobuf.ByteString proofSSk_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes proof_s_sk = 5;
* @return The proofSSk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofSSk() {
return proofSSk_;
}
/**
* bytes proof_s_sk = 5;
* @param value The proofSSk to set.
* @return This builder for chaining.
*/
public Builder setProofSSk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
proofSSk_ = value;
onChanged();
return this;
}
/**
* bytes proof_s_sk = 5;
* @return This builder for chaining.
*/
public Builder clearProofSSk() {
proofSSk_ = getDefaultInstance().getProofSSk();
onChanged();
return this;
}
private com.google.protobuf.ByteString proofSE_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes proof_s_e = 6;
* @return The proofSE.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofSE() {
return proofSE_;
}
/**
* bytes proof_s_e = 6;
* @param value The proofSE to set.
* @return This builder for chaining.
*/
public Builder setProofSE(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
proofSE_ = value;
onChanged();
return this;
}
/**
* bytes proof_s_e = 6;
* @return This builder for chaining.
*/
public Builder clearProofSE() {
proofSE_ = getDefaultInstance().getProofSE();
onChanged();
return this;
}
private com.google.protobuf.ByteString proofSR2_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes proof_s_r2 = 7;
* @return The proofSR2.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofSR2() {
return proofSR2_;
}
/**
* bytes proof_s_r2 = 7;
* @param value The proofSR2 to set.
* @return This builder for chaining.
*/
public Builder setProofSR2(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
proofSR2_ = value;
onChanged();
return this;
}
/**
* bytes proof_s_r2 = 7;
* @return This builder for chaining.
*/
public Builder clearProofSR2() {
proofSR2_ = getDefaultInstance().getProofSR2();
onChanged();
return this;
}
private com.google.protobuf.ByteString proofSR3_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes proof_s_r3 = 8;
* @return The proofSR3.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofSR3() {
return proofSR3_;
}
/**
* bytes proof_s_r3 = 8;
* @param value The proofSR3 to set.
* @return This builder for chaining.
*/
public Builder setProofSR3(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
proofSR3_ = value;
onChanged();
return this;
}
/**
* bytes proof_s_r3 = 8;
* @return This builder for chaining.
*/
public Builder clearProofSR3() {
proofSR3_ = getDefaultInstance().getProofSR3();
onChanged();
return this;
}
private com.google.protobuf.ByteString proofSSPrime_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes proof_s_s_prime = 9;
* @return The proofSSPrime.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofSSPrime() {
return proofSSPrime_;
}
/**
* bytes proof_s_s_prime = 9;
* @param value The proofSSPrime to set.
* @return This builder for chaining.
*/
public Builder setProofSSPrime(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
proofSSPrime_ = value;
onChanged();
return this;
}
/**
* bytes proof_s_s_prime = 9;
* @return This builder for chaining.
*/
public Builder clearProofSSPrime() {
proofSSPrime_ = getDefaultInstance().getProofSSPrime();
onChanged();
return this;
}
private java.util.List proofSAttrs_ = java.util.Collections.emptyList();
private void ensureProofSAttrsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
proofSAttrs_ = new java.util.ArrayList(proofSAttrs_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes proof_s_attrs = 10;
* @return A list containing the proofSAttrs.
*/
public java.util.List
getProofSAttrsList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(proofSAttrs_) : proofSAttrs_;
}
/**
* repeated bytes proof_s_attrs = 10;
* @return The count of proofSAttrs.
*/
public int getProofSAttrsCount() {
return proofSAttrs_.size();
}
/**
* repeated bytes proof_s_attrs = 10;
* @param index The index of the element to return.
* @return The proofSAttrs at the given index.
*/
public com.google.protobuf.ByteString getProofSAttrs(int index) {
return proofSAttrs_.get(index);
}
/**
* repeated bytes proof_s_attrs = 10;
* @param index The index to set the value at.
* @param value The proofSAttrs to set.
* @return This builder for chaining.
*/
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;
* @param value The proofSAttrs to add.
* @return This builder for chaining.
*/
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;
* @param values The proofSAttrs to add.
* @return This builder for chaining.
*/
public Builder addAllProofSAttrs(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureProofSAttrsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, proofSAttrs_);
onChanged();
return this;
}
/**
* repeated bytes proof_s_attrs = 10;
* @return This builder for chaining.
*/
public Builder clearProofSAttrs() {
proofSAttrs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes nonce = 11;
* @return The nonce.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNonce() {
return nonce_;
}
/**
* bytes nonce = 11;
* @param value The nonce to set.
* @return This builder for chaining.
*/
public Builder setNonce(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
nonce_ = value;
onChanged();
return this;
}
/**
* bytes nonce = 11;
* @return This builder for chaining.
*/
public Builder clearNonce() {
nonce_ = getDefaultInstance().getNonce();
onChanged();
return this;
}
private org.hyperledger.fabric.protos.idemix.Idemix.ECP nym_;
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_;
/**
* .ECP nym = 12;
* @return Whether the nym field is set.
*/
public boolean hasNym() {
return nymBuilder_ != null || nym_ != null;
}
/**
* .ECP nym = 12;
* @return The nym.
*/
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();
}
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .ECP nym = 12;
*/
public Builder clearNym() {
if (nymBuilder_ == null) {
nym_ = null;
onChanged();
} else {
nym_ = null;
nymBuilder_ = null;
}
return this;
}
/**
* .ECP nym = 12;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder getNymBuilder() {
onChanged();
return getNymFieldBuilder().getBuilder();
}
/**
* .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_;
}
}
/**
* .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;
/**
* bytes proof_s_r_nym = 13;
* @return The proofSRNym.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofSRNym() {
return proofSRNym_;
}
/**
* bytes proof_s_r_nym = 13;
* @param value The proofSRNym to set.
* @return This builder for chaining.
*/
public Builder setProofSRNym(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
proofSRNym_ = value;
onChanged();
return this;
}
/**
* bytes proof_s_r_nym = 13;
* @return This builder for chaining.
*/
public Builder clearProofSRNym() {
proofSRNym_ = getDefaultInstance().getProofSRNym();
onChanged();
return this;
}
private org.hyperledger.fabric.protos.idemix.Idemix.ECP2 revocationEpochPk_;
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_;
/**
* .ECP2 revocation_epoch_pk = 14;
* @return Whether the revocationEpochPk field is set.
*/
public boolean hasRevocationEpochPk() {
return revocationEpochPkBuilder_ != null || revocationEpochPk_ != null;
}
/**
* .ECP2 revocation_epoch_pk = 14;
* @return The revocationEpochPk.
*/
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();
}
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .ECP2 revocation_epoch_pk = 14;
*/
public Builder clearRevocationEpochPk() {
if (revocationEpochPkBuilder_ == null) {
revocationEpochPk_ = null;
onChanged();
} else {
revocationEpochPk_ = null;
revocationEpochPkBuilder_ = null;
}
return this;
}
/**
* .ECP2 revocation_epoch_pk = 14;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP2.Builder getRevocationEpochPkBuilder() {
onChanged();
return getRevocationEpochPkFieldBuilder().getBuilder();
}
/**
* .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_;
}
}
/**
* .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;
/**
* bytes revocation_pk_sig = 15;
* @return The revocationPkSig.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRevocationPkSig() {
return revocationPkSig_;
}
/**
* bytes revocation_pk_sig = 15;
* @param value The revocationPkSig to set.
* @return This builder for chaining.
*/
public Builder setRevocationPkSig(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
revocationPkSig_ = value;
onChanged();
return this;
}
/**
* bytes revocation_pk_sig = 15;
* @return This builder for chaining.
*/
public Builder clearRevocationPkSig() {
revocationPkSig_ = getDefaultInstance().getRevocationPkSig();
onChanged();
return this;
}
private long epoch_ ;
/**
* int64 epoch = 16;
* @return The epoch.
*/
@java.lang.Override
public long getEpoch() {
return epoch_;
}
/**
* int64 epoch = 16;
* @param value The epoch to set.
* @return This builder for chaining.
*/
public Builder setEpoch(long value) {
epoch_ = value;
onChanged();
return this;
}
/**
* int64 epoch = 16;
* @return This builder for chaining.
*/
public Builder clearEpoch() {
epoch_ = 0L;
onChanged();
return this;
}
private org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof nonRevocationProof_;
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_;
/**
* .NonRevocationProof non_revocation_proof = 17;
* @return Whether the nonRevocationProof field is set.
*/
public boolean hasNonRevocationProof() {
return nonRevocationProofBuilder_ != null || nonRevocationProof_ != null;
}
/**
* .NonRevocationProof non_revocation_proof = 17;
* @return The nonRevocationProof.
*/
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();
}
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .NonRevocationProof non_revocation_proof = 17;
*/
public Builder clearNonRevocationProof() {
if (nonRevocationProofBuilder_ == null) {
nonRevocationProof_ = null;
onChanged();
} else {
nonRevocationProof_ = null;
nonRevocationProofBuilder_ = null;
}
return this;
}
/**
* .NonRevocationProof non_revocation_proof = 17;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.Builder getNonRevocationProofBuilder() {
onChanged();
return getNonRevocationProofFieldBuilder().getBuilder();
}
/**
* .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_;
}
}
/**
* .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_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope: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() {
@java.lang.Override
public Signature parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.Signature getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NonRevocationProofOrBuilder extends
// @@protoc_insertion_point(interface_extends:NonRevocationProof)
com.google.protobuf.MessageOrBuilder {
/**
* int32 revocation_alg = 1;
* @return The revocationAlg.
*/
int getRevocationAlg();
/**
* bytes non_revocation_proof = 2;
* @return The nonRevocationProof.
*/
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 {
private static final long serialVersionUID = 0L;
// Use NonRevocationProof.newBuilder() to construct.
private NonRevocationProof(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NonRevocationProof() {
nonRevocationProof_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NonRevocationProof();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_NonRevocationProof_descriptor;
}
@java.lang.Override
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_;
/**
* int32 revocation_alg = 1;
* @return The revocationAlg.
*/
@java.lang.Override
public int getRevocationAlg() {
return revocationAlg_;
}
public static final int NON_REVOCATION_PROOF_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString nonRevocationProof_;
/**
* bytes non_revocation_proof = 2;
* @return The nonRevocationProof.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNonRevocationProof() {
return nonRevocationProof_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (revocationAlg_ != 0) {
output.writeInt32(1, revocationAlg_);
}
if (!nonRevocationProof_.isEmpty()) {
output.writeBytes(2, nonRevocationProof_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
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_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof other = (org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof) obj;
if (getRevocationAlg()
!= other.getRevocationAlg()) return false;
if (!getNonRevocationProof()
.equals(other.getNonRevocationProof())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REVOCATION_ALG_FIELD_NUMBER;
hash = (53 * hash) + getRevocationAlg();
hash = (37 * hash) + NON_REVOCATION_PROOF_FIELD_NUMBER;
hash = (53 * hash) + getNonRevocationProof().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.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);
}
@java.lang.Override
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);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* 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;
}
@java.lang.Override
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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
revocationAlg_ = 0;
nonRevocationProof_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_NonRevocationProof_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.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());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
revocationAlg_ = input.readInt32();
break;
} // case 8
case 18: {
nonRevocationProof_ = input.readBytes();
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int revocationAlg_ ;
/**
* int32 revocation_alg = 1;
* @return The revocationAlg.
*/
@java.lang.Override
public int getRevocationAlg() {
return revocationAlg_;
}
/**
* int32 revocation_alg = 1;
* @param value The revocationAlg to set.
* @return This builder for chaining.
*/
public Builder setRevocationAlg(int value) {
revocationAlg_ = value;
onChanged();
return this;
}
/**
* int32 revocation_alg = 1;
* @return This builder for chaining.
*/
public Builder clearRevocationAlg() {
revocationAlg_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString nonRevocationProof_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes non_revocation_proof = 2;
* @return The nonRevocationProof.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNonRevocationProof() {
return nonRevocationProof_;
}
/**
* bytes non_revocation_proof = 2;
* @param value The nonRevocationProof to set.
* @return This builder for chaining.
*/
public Builder setNonRevocationProof(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
nonRevocationProof_ = value;
onChanged();
return this;
}
/**
* bytes non_revocation_proof = 2;
* @return This builder for chaining.
*/
public Builder clearNonRevocationProof() {
nonRevocationProof_ = getDefaultInstance().getNonRevocationProof();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope: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() {
@java.lang.Override
public NonRevocationProof parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof 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
*
*
* bytes proof_c = 1;
* @return The proofC.
*/
com.google.protobuf.ByteString getProofC();
/**
*
* proof_s_sk is the s-value proving knowledge of the user secret key
*
*
* bytes proof_s_sk = 2;
* @return The proofSSk.
*/
com.google.protobuf.ByteString getProofSSk();
/**
*
*proof_s_r_nym is the s-value proving knowledge of the pseudonym secret
*
*
* bytes proof_s_r_nym = 3;
* @return The proofSRNym.
*/
com.google.protobuf.ByteString getProofSRNym();
/**
*
* nonce is a fresh nonce used for the signature
*
*
* bytes nonce = 4;
* @return The nonce.
*/
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 {
private static final long serialVersionUID = 0L;
// 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
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NymSignature();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_NymSignature_descriptor;
}
@java.lang.Override
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
*
*
* bytes proof_c = 1;
* @return The proofC.
*/
@java.lang.Override
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
*
*
* bytes proof_s_sk = 2;
* @return The proofSSk.
*/
@java.lang.Override
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
*
*
* bytes proof_s_r_nym = 3;
* @return The proofSRNym.
*/
@java.lang.Override
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
*
*
* bytes nonce = 4;
* @return The nonce.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNonce() {
return nonce_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!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_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
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_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.NymSignature)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.idemix.Idemix.NymSignature other = (org.hyperledger.fabric.protos.idemix.Idemix.NymSignature) obj;
if (!getProofC()
.equals(other.getProofC())) return false;
if (!getProofSSk()
.equals(other.getProofSSk())) return false;
if (!getProofSRNym()
.equals(other.getProofSRNym())) return false;
if (!getNonce()
.equals(other.getNonce())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + 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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.idemix.Idemix.NymSignature parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.NymSignature parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.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);
}
@java.lang.Override
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);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* 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;
}
@java.lang.Override
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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
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;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_NymSignature_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.NymSignature getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.idemix.Idemix.NymSignature.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.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());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
proofC_ = input.readBytes();
break;
} // case 10
case 18: {
proofSSk_ = input.readBytes();
break;
} // case 18
case 26: {
proofSRNym_ = input.readBytes();
break;
} // case 26
case 34: {
nonce_ = input.readBytes();
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private com.google.protobuf.ByteString proofC_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* proof_c is the Fiat-Shamir challenge of the ZKP
*
*
* bytes proof_c = 1;
* @return The proofC.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofC() {
return proofC_;
}
/**
*
* proof_c is the Fiat-Shamir challenge of the ZKP
*
*
* bytes proof_c = 1;
* @param value The proofC to set.
* @return This builder for chaining.
*/
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
*
*
* bytes proof_c = 1;
* @return This builder for chaining.
*/
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
*
*
* bytes proof_s_sk = 2;
* @return The proofSSk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofSSk() {
return proofSSk_;
}
/**
*
* proof_s_sk is the s-value proving knowledge of the user secret key
*
*
* bytes proof_s_sk = 2;
* @param value The proofSSk to set.
* @return This builder for chaining.
*/
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
*
*
* bytes proof_s_sk = 2;
* @return This builder for chaining.
*/
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
*
*
* bytes proof_s_r_nym = 3;
* @return The proofSRNym.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofSRNym() {
return proofSRNym_;
}
/**
*
*proof_s_r_nym is the s-value proving knowledge of the pseudonym secret
*
*
* bytes proof_s_r_nym = 3;
* @param value The proofSRNym to set.
* @return This builder for chaining.
*/
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
*
*
* bytes proof_s_r_nym = 3;
* @return This builder for chaining.
*/
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
*
*
* bytes nonce = 4;
* @return The nonce.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNonce() {
return nonce_;
}
/**
*
* nonce is a fresh nonce used for the signature
*
*
* bytes nonce = 4;
* @param value The nonce to set.
* @return This builder for chaining.
*/
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
*
*
* bytes nonce = 4;
* @return This builder for chaining.
*/
public Builder clearNonce() {
nonce_ = getDefaultInstance().getNonce();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope: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() {
@java.lang.Override
public NymSignature parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.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
*
*
* int64 epoch = 1;
* @return The epoch.
*/
long getEpoch();
/**
*
* epoch_pk is the public key that is used by the revocation authority in this epoch
*
*
* .ECP2 epoch_pk = 2;
* @return Whether the epochPk field is set.
*/
boolean hasEpochPk();
/**
*
* epoch_pk is the public key that is used by the revocation authority in this epoch
*
*
* .ECP2 epoch_pk = 2;
* @return The epochPk.
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECP2 getEpochPk();
/**
*
* epoch_pk is the public key that is used by the revocation authority in this epoch
*
*
* .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
*
*
* bytes epoch_pk_sig = 3;
* @return The epochPkSig.
*/
com.google.protobuf.ByteString getEpochPkSig();
/**
*
* revocation_alg denotes which revocation algorithm is used
*
*
* int32 revocation_alg = 4;
* @return The revocationAlg.
*/
int getRevocationAlg();
/**
*
* revocation_data contains data specific to the revocation algorithm used
*
*
* bytes revocation_data = 5;
* @return The revocationData.
*/
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 {
private static final long serialVersionUID = 0L;
// Use CredentialRevocationInformation.newBuilder() to construct.
private CredentialRevocationInformation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CredentialRevocationInformation() {
epochPkSig_ = com.google.protobuf.ByteString.EMPTY;
revocationData_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CredentialRevocationInformation();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_CredentialRevocationInformation_descriptor;
}
@java.lang.Override
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
*
*
* int64 epoch = 1;
* @return The epoch.
*/
@java.lang.Override
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
*
*
* .ECP2 epoch_pk = 2;
* @return Whether the epochPk field is set.
*/
@java.lang.Override
public boolean hasEpochPk() {
return epochPk_ != null;
}
/**
*
* epoch_pk is the public key that is used by the revocation authority in this epoch
*
*
* .ECP2 epoch_pk = 2;
* @return The epochPk.
*/
@java.lang.Override
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
*
*
* .ECP2 epoch_pk = 2;
*/
@java.lang.Override
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
*
*
* bytes epoch_pk_sig = 3;
* @return The epochPkSig.
*/
@java.lang.Override
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
*
*
* int32 revocation_alg = 4;
* @return The revocationAlg.
*/
@java.lang.Override
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
*
*
* bytes revocation_data = 5;
* @return The revocationData.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRevocationData() {
return revocationData_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (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_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
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_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation other = (org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation) obj;
if (getEpoch()
!= other.getEpoch()) return false;
if (hasEpochPk() != other.hasEpochPk()) return false;
if (hasEpochPk()) {
if (!getEpochPk()
.equals(other.getEpochPk())) return false;
}
if (!getEpochPkSig()
.equals(other.getEpochPkSig())) return false;
if (getRevocationAlg()
!= other.getRevocationAlg()) return false;
if (!getRevocationData()
.equals(other.getRevocationData())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + 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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.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);
}
@java.lang.Override
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);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* 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;
}
@java.lang.Override
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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
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;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_CredentialRevocationInformation_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.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());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
epoch_ = input.readInt64();
break;
} // case 8
case 18: {
input.readMessage(
getEpochPkFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 18
case 26: {
epochPkSig_ = input.readBytes();
break;
} // case 26
case 32: {
revocationAlg_ = input.readInt32();
break;
} // case 32
case 42: {
revocationData_ = input.readBytes();
break;
} // case 42
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private long epoch_ ;
/**
*
* epoch contains the epoch (time window) in which this CRI is valid
*
*
* int64 epoch = 1;
* @return The epoch.
*/
@java.lang.Override
public long getEpoch() {
return epoch_;
}
/**
*
* epoch contains the epoch (time window) in which this CRI is valid
*
*
* int64 epoch = 1;
* @param value The epoch to set.
* @return This builder for chaining.
*/
public Builder setEpoch(long value) {
epoch_ = value;
onChanged();
return this;
}
/**
*
* epoch contains the epoch (time window) in which this CRI is valid
*
*
* int64 epoch = 1;
* @return This builder for chaining.
*/
public Builder clearEpoch() {
epoch_ = 0L;
onChanged();
return this;
}
private org.hyperledger.fabric.protos.idemix.Idemix.ECP2 epochPk_;
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
*
*
* .ECP2 epoch_pk = 2;
* @return Whether the epochPk field is set.
*/
public boolean hasEpochPk() {
return epochPkBuilder_ != null || epochPk_ != null;
}
/**
*
* epoch_pk is the public key that is used by the revocation authority in this epoch
*
*
* .ECP2 epoch_pk = 2;
* @return The epochPk.
*/
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
*
*
* .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
*
*
* .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
*
*
* .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
*
*
* .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
*
*
* .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
*
*
* .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
*
*
* .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
*
*
* bytes epoch_pk_sig = 3;
* @return The epochPkSig.
*/
@java.lang.Override
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
*
*
* bytes epoch_pk_sig = 3;
* @param value The epochPkSig to set.
* @return This builder for chaining.
*/
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
*
*
* bytes epoch_pk_sig = 3;
* @return This builder for chaining.
*/
public Builder clearEpochPkSig() {
epochPkSig_ = getDefaultInstance().getEpochPkSig();
onChanged();
return this;
}
private int revocationAlg_ ;
/**
*
* revocation_alg denotes which revocation algorithm is used
*
*
* int32 revocation_alg = 4;
* @return The revocationAlg.
*/
@java.lang.Override
public int getRevocationAlg() {
return revocationAlg_;
}
/**
*
* revocation_alg denotes which revocation algorithm is used
*
*
* int32 revocation_alg = 4;
* @param value The revocationAlg to set.
* @return This builder for chaining.
*/
public Builder setRevocationAlg(int value) {
revocationAlg_ = value;
onChanged();
return this;
}
/**
*
* revocation_alg denotes which revocation algorithm is used
*
*
* int32 revocation_alg = 4;
* @return This builder for chaining.
*/
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
*
*
* bytes revocation_data = 5;
* @return The revocationData.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRevocationData() {
return revocationData_;
}
/**
*
* revocation_data contains data specific to the revocation algorithm used
*
*
* bytes revocation_data = 5;
* @param value The revocationData to set.
* @return This builder for chaining.
*/
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
*
*
* bytes revocation_data = 5;
* @return This builder for chaining.
*/
public Builder clearRevocationData() {
revocationData_ = getDefaultInstance().getRevocationData();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope: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() {
@java.lang.Override
public CredentialRevocationInformation parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation 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_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;
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\"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\rproof_s_r_nym\030\003 \001(" +
"\014\022\r\n\005nonce\030\004 \001(\014\"\220\001\n\037CredentialRevocatio" +
"nInformation\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\016re" +
"vocation_alg\030\004 \001(\005\022\027\n\017revocation_data\030\005 " +
"\001(\014BL\n$org.hyperledger.fabric.protos.ide" +
"mixZ$github.com/hyperledger/fabric/idemi" +
"xb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
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_NymSignature_descriptor =
getDescriptor().getMessageTypes().get(8);
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(9);
internal_static_CredentialRevocationInformation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_CredentialRevocationInformation_descriptor,
new java.lang.String[] { "Epoch", "EpochPk", "EpochPkSig", "RevocationAlg", "RevocationData", });
}
// @@protoc_insertion_point(outer_class_scope)
}