org.hyperledger.protos.Ca Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fabric-java-sdk Show documentation
Show all versions of fabric-java-sdk Show documentation
This is a fork of Hyperledger Fabric fabric-sdk-java
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ca/ca.proto
package org.hyperledger.protos;
public final class Ca {
private Ca() {}
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/private keys.
*
*
* Protobuf enum {@code protos.CryptoType}
*/
public enum CryptoType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* ECDSA = 0;
*/
ECDSA(0),
/**
* RSA = 1;
*/
RSA(1),
/**
* DSA = 2;
*/
DSA(2),
UNRECOGNIZED(-1),
;
/**
* ECDSA = 0;
*/
public static final int ECDSA_VALUE = 0;
/**
* RSA = 1;
*/
public static final int RSA_VALUE = 1;
/**
* DSA = 2;
*/
public static final int DSA_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static CryptoType valueOf(int value) {
return forNumber(value);
}
public static CryptoType forNumber(int value) {
switch (value) {
case 0: return ECDSA;
case 1: return RSA;
case 2: return DSA;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
CryptoType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public CryptoType findValueByNumber(int number) {
return CryptoType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.hyperledger.protos.Ca.getDescriptor().getEnumTypes().get(0);
}
private static final CryptoType[] VALUES = values();
public static CryptoType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private CryptoType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:protos.CryptoType)
}
/**
*
* User registration.
*
*
* Protobuf enum {@code protos.Role}
*/
public enum Role
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NONE = 0;
*/
NONE(0),
/**
*
* powers of 2 to | different roles
*
*
* CLIENT = 1;
*/
CLIENT(1),
/**
* PEER = 2;
*/
PEER(2),
/**
* VALIDATOR = 4;
*/
VALIDATOR(4),
/**
* AUDITOR = 8;
*/
AUDITOR(8),
/**
* ALL = 65535;
*/
ALL(65535),
UNRECOGNIZED(-1),
;
/**
* NONE = 0;
*/
public static final int NONE_VALUE = 0;
/**
*
* powers of 2 to | different roles
*
*
* CLIENT = 1;
*/
public static final int CLIENT_VALUE = 1;
/**
* PEER = 2;
*/
public static final int PEER_VALUE = 2;
/**
* VALIDATOR = 4;
*/
public static final int VALIDATOR_VALUE = 4;
/**
* AUDITOR = 8;
*/
public static final int AUDITOR_VALUE = 8;
/**
* ALL = 65535;
*/
public static final int ALL_VALUE = 65535;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Role valueOf(int value) {
return forNumber(value);
}
public static Role forNumber(int value) {
switch (value) {
case 0: return NONE;
case 1: return CLIENT;
case 2: return PEER;
case 4: return VALIDATOR;
case 8: return AUDITOR;
case 65535: return ALL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Role> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Role findValueByNumber(int number) {
return Role.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.hyperledger.protos.Ca.getDescriptor().getEnumTypes().get(1);
}
private static final Role[] VALUES = values();
public static Role valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Role(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:protos.Role)
}
public interface CAStatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.CAStatus)
com.google.protobuf.MessageOrBuilder {
/**
* optional .protos.CAStatus.StatusCode status = 1;
*/
int getStatusValue();
/**
* optional .protos.CAStatus.StatusCode status = 1;
*/
org.hyperledger.protos.Ca.CAStatus.StatusCode getStatus();
}
/**
*
* Status codes shared by both CAs.
*
*
* Protobuf type {@code protos.CAStatus}
*/
public static final class CAStatus extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.CAStatus)
CAStatusOrBuilder {
// Use CAStatus.newBuilder() to construct.
private CAStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CAStatus() {
status_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private CAStatus(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_CAStatus_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_CAStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.CAStatus.class, org.hyperledger.protos.Ca.CAStatus.Builder.class);
}
/**
* Protobuf enum {@code protos.CAStatus.StatusCode}
*/
public enum StatusCode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* OK = 0;
*/
OK(0),
/**
* UNKNOWN_ERROR = 1;
*/
UNKNOWN_ERROR(1),
UNRECOGNIZED(-1),
;
/**
* OK = 0;
*/
public static final int OK_VALUE = 0;
/**
* UNKNOWN_ERROR = 1;
*/
public static final int UNKNOWN_ERROR_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static StatusCode valueOf(int value) {
return forNumber(value);
}
public static StatusCode forNumber(int value) {
switch (value) {
case 0: return OK;
case 1: return UNKNOWN_ERROR;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
StatusCode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public StatusCode findValueByNumber(int number) {
return StatusCode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.hyperledger.protos.Ca.CAStatus.getDescriptor().getEnumTypes().get(0);
}
private static final StatusCode[] VALUES = values();
public static StatusCode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private StatusCode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:protos.CAStatus.StatusCode)
}
public static final int STATUS_FIELD_NUMBER = 1;
private int status_;
/**
* optional .protos.CAStatus.StatusCode status = 1;
*/
public int getStatusValue() {
return status_;
}
/**
* optional .protos.CAStatus.StatusCode status = 1;
*/
public org.hyperledger.protos.Ca.CAStatus.StatusCode getStatus() {
org.hyperledger.protos.Ca.CAStatus.StatusCode result = org.hyperledger.protos.Ca.CAStatus.StatusCode.valueOf(status_);
return result == null ? org.hyperledger.protos.Ca.CAStatus.StatusCode.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (status_ != org.hyperledger.protos.Ca.CAStatus.StatusCode.OK.getNumber()) {
output.writeEnum(1, status_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != org.hyperledger.protos.Ca.CAStatus.StatusCode.OK.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, status_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.CAStatus)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.CAStatus other = (org.hyperledger.protos.Ca.CAStatus) obj;
boolean result = true;
result = result && status_ == other.status_;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.CAStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.CAStatus 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.protos.Ca.CAStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.CAStatus parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.CAStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.CAStatus 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.protos.Ca.CAStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.CAStatus 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.protos.Ca.CAStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.CAStatus parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.CAStatus prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Status codes shared by both CAs.
*
*
* Protobuf type {@code protos.CAStatus}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.CAStatus)
org.hyperledger.protos.Ca.CAStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_CAStatus_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_CAStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.CAStatus.class, org.hyperledger.protos.Ca.CAStatus.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.CAStatus.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
status_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_CAStatus_descriptor;
}
public org.hyperledger.protos.Ca.CAStatus getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.CAStatus.getDefaultInstance();
}
public org.hyperledger.protos.Ca.CAStatus build() {
org.hyperledger.protos.Ca.CAStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.CAStatus buildPartial() {
org.hyperledger.protos.Ca.CAStatus result = new org.hyperledger.protos.Ca.CAStatus(this);
result.status_ = status_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.CAStatus) {
return mergeFrom((org.hyperledger.protos.Ca.CAStatus)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.CAStatus other) {
if (other == org.hyperledger.protos.Ca.CAStatus.getDefaultInstance()) return this;
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.CAStatus parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.CAStatus) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int status_ = 0;
/**
* optional .protos.CAStatus.StatusCode status = 1;
*/
public int getStatusValue() {
return status_;
}
/**
* optional .protos.CAStatus.StatusCode status = 1;
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
* optional .protos.CAStatus.StatusCode status = 1;
*/
public org.hyperledger.protos.Ca.CAStatus.StatusCode getStatus() {
org.hyperledger.protos.Ca.CAStatus.StatusCode result = org.hyperledger.protos.Ca.CAStatus.StatusCode.valueOf(status_);
return result == null ? org.hyperledger.protos.Ca.CAStatus.StatusCode.UNRECOGNIZED : result;
}
/**
* optional .protos.CAStatus.StatusCode status = 1;
*/
public Builder setStatus(org.hyperledger.protos.Ca.CAStatus.StatusCode value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .protos.CAStatus.StatusCode status = 1;
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.CAStatus)
}
// @@protoc_insertion_point(class_scope:protos.CAStatus)
private static final org.hyperledger.protos.Ca.CAStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.CAStatus();
}
public static org.hyperledger.protos.Ca.CAStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CAStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CAStatus(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.CAStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EmptyOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.Empty)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* Empty message.
*
*
* Protobuf type {@code protos.Empty}
*/
public static final class Empty extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.Empty)
EmptyOrBuilder {
// Use Empty.newBuilder() to construct.
private Empty(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Empty() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Empty(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_Empty_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_Empty_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.Empty.class, org.hyperledger.protos.Ca.Empty.Builder.class);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.Empty)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.Empty other = (org.hyperledger.protos.Ca.Empty) obj;
boolean result = true;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.Empty parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.Empty 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.protos.Ca.Empty parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.Empty parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.Empty parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.Empty 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.protos.Ca.Empty parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.Empty 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.protos.Ca.Empty parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.Empty parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.Empty prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Empty message.
*
*
* Protobuf type {@code protos.Empty}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.Empty)
org.hyperledger.protos.Ca.EmptyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_Empty_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_Empty_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.Empty.class, org.hyperledger.protos.Ca.Empty.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.Empty.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_Empty_descriptor;
}
public org.hyperledger.protos.Ca.Empty getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.Empty.getDefaultInstance();
}
public org.hyperledger.protos.Ca.Empty build() {
org.hyperledger.protos.Ca.Empty result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.Empty buildPartial() {
org.hyperledger.protos.Ca.Empty result = new org.hyperledger.protos.Ca.Empty(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.Empty) {
return mergeFrom((org.hyperledger.protos.Ca.Empty)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.Empty other) {
if (other == org.hyperledger.protos.Ca.Empty.getDefaultInstance()) return this;
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.Empty parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.Empty) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.Empty)
}
// @@protoc_insertion_point(class_scope:protos.Empty)
private static final org.hyperledger.protos.Ca.Empty DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.Empty();
}
public static org.hyperledger.protos.Ca.Empty getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Empty parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Empty(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.Empty getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IdentityOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.Identity)
com.google.protobuf.MessageOrBuilder {
/**
* optional string id = 1;
*/
java.lang.String getId();
/**
* optional string id = 1;
*/
com.google.protobuf.ByteString
getIdBytes();
}
/**
*
* Uniquely identifies a user towards either CA.
*
*
* Protobuf type {@code protos.Identity}
*/
public static final class Identity extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.Identity)
IdentityOrBuilder {
// Use Identity.newBuilder() to construct.
private Identity(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Identity() {
id_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Identity(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_Identity_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_Identity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.Identity.class, org.hyperledger.protos.Ca.Identity.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
* optional string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
* optional string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.Identity)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.Identity other = (org.hyperledger.protos.Ca.Identity) obj;
boolean result = true;
result = result && getId()
.equals(other.getId());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.Identity parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.Identity 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.protos.Ca.Identity parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.Identity parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.Identity parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.Identity 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.protos.Ca.Identity parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.Identity 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.protos.Ca.Identity parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.Identity parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.Identity prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Uniquely identifies a user towards either CA.
*
*
* Protobuf type {@code protos.Identity}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.Identity)
org.hyperledger.protos.Ca.IdentityOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_Identity_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_Identity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.Identity.class, org.hyperledger.protos.Ca.Identity.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.Identity.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
id_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_Identity_descriptor;
}
public org.hyperledger.protos.Ca.Identity getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.Identity.getDefaultInstance();
}
public org.hyperledger.protos.Ca.Identity build() {
org.hyperledger.protos.Ca.Identity result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.Identity buildPartial() {
org.hyperledger.protos.Ca.Identity result = new org.hyperledger.protos.Ca.Identity(this);
result.id_ = id_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.Identity) {
return mergeFrom((org.hyperledger.protos.Ca.Identity)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.Identity other) {
if (other == org.hyperledger.protos.Ca.Identity.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.Identity parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.Identity) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object id_ = "";
/**
* optional string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string id = 1;
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
* optional string id = 1;
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* optional string id = 1;
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.Identity)
}
// @@protoc_insertion_point(class_scope:protos.Identity)
private static final org.hyperledger.protos.Ca.Identity DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.Identity();
}
public static org.hyperledger.protos.Ca.Identity getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Identity parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Identity(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.Identity getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TokenOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.Token)
com.google.protobuf.MessageOrBuilder {
/**
* optional bytes tok = 1;
*/
com.google.protobuf.ByteString getTok();
}
/**
* Protobuf type {@code protos.Token}
*/
public static final class Token extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.Token)
TokenOrBuilder {
// Use Token.newBuilder() to construct.
private Token(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Token() {
tok_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Token(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
tok_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_Token_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_Token_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.Token.class, org.hyperledger.protos.Ca.Token.Builder.class);
}
public static final int TOK_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString tok_;
/**
* optional bytes tok = 1;
*/
public com.google.protobuf.ByteString getTok() {
return tok_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!tok_.isEmpty()) {
output.writeBytes(1, tok_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!tok_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, tok_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.Token)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.Token other = (org.hyperledger.protos.Ca.Token) obj;
boolean result = true;
result = result && getTok()
.equals(other.getTok());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + TOK_FIELD_NUMBER;
hash = (53 * hash) + getTok().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.Token parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.Token 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.protos.Ca.Token parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.Token parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.Token parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.Token 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.protos.Ca.Token parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.Token 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.protos.Ca.Token parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.Token parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.Token prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.Token}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.Token)
org.hyperledger.protos.Ca.TokenOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_Token_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_Token_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.Token.class, org.hyperledger.protos.Ca.Token.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.Token.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
tok_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_Token_descriptor;
}
public org.hyperledger.protos.Ca.Token getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.Token.getDefaultInstance();
}
public org.hyperledger.protos.Ca.Token build() {
org.hyperledger.protos.Ca.Token result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.Token buildPartial() {
org.hyperledger.protos.Ca.Token result = new org.hyperledger.protos.Ca.Token(this);
result.tok_ = tok_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.Token) {
return mergeFrom((org.hyperledger.protos.Ca.Token)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.Token other) {
if (other == org.hyperledger.protos.Ca.Token.getDefaultInstance()) return this;
if (other.getTok() != com.google.protobuf.ByteString.EMPTY) {
setTok(other.getTok());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.Token parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.Token) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString tok_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes tok = 1;
*/
public com.google.protobuf.ByteString getTok() {
return tok_;
}
/**
* optional bytes tok = 1;
*/
public Builder setTok(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
tok_ = value;
onChanged();
return this;
}
/**
* optional bytes tok = 1;
*/
public Builder clearTok() {
tok_ = getDefaultInstance().getTok();
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.Token)
}
// @@protoc_insertion_point(class_scope:protos.Token)
private static final org.hyperledger.protos.Ca.Token DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.Token();
}
public static org.hyperledger.protos.Ca.Token getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Token parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Token(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.Token getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface HashOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.Hash)
com.google.protobuf.MessageOrBuilder {
/**
* optional bytes hash = 1;
*/
com.google.protobuf.ByteString getHash();
}
/**
* Protobuf type {@code protos.Hash}
*/
public static final class Hash extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.Hash)
HashOrBuilder {
// Use Hash.newBuilder() to construct.
private Hash(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Hash() {
hash_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Hash(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
hash_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_Hash_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_Hash_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.Hash.class, org.hyperledger.protos.Ca.Hash.Builder.class);
}
public static final int HASH_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString hash_;
/**
* optional bytes hash = 1;
*/
public com.google.protobuf.ByteString getHash() {
return hash_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!hash_.isEmpty()) {
output.writeBytes(1, hash_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!hash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, hash_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.Hash)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.Hash other = (org.hyperledger.protos.Ca.Hash) obj;
boolean result = true;
result = result && getHash()
.equals(other.getHash());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + HASH_FIELD_NUMBER;
hash = (53 * hash) + getHash().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.Hash parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.Hash 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.protos.Ca.Hash parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.Hash parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.Hash parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.Hash 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.protos.Ca.Hash parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.Hash 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.protos.Ca.Hash parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.Hash parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.Hash prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.Hash}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.Hash)
org.hyperledger.protos.Ca.HashOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_Hash_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_Hash_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.Hash.class, org.hyperledger.protos.Ca.Hash.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.Hash.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
hash_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_Hash_descriptor;
}
public org.hyperledger.protos.Ca.Hash getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.Hash.getDefaultInstance();
}
public org.hyperledger.protos.Ca.Hash build() {
org.hyperledger.protos.Ca.Hash result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.Hash buildPartial() {
org.hyperledger.protos.Ca.Hash result = new org.hyperledger.protos.Ca.Hash(this);
result.hash_ = hash_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.Hash) {
return mergeFrom((org.hyperledger.protos.Ca.Hash)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.Hash other) {
if (other == org.hyperledger.protos.Ca.Hash.getDefaultInstance()) return this;
if (other.getHash() != com.google.protobuf.ByteString.EMPTY) {
setHash(other.getHash());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.Hash parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.Hash) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes hash = 1;
*/
public com.google.protobuf.ByteString getHash() {
return hash_;
}
/**
* optional bytes hash = 1;
*/
public Builder setHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
hash_ = value;
onChanged();
return this;
}
/**
* optional bytes hash = 1;
*/
public Builder clearHash() {
hash_ = getDefaultInstance().getHash();
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.Hash)
}
// @@protoc_insertion_point(class_scope:protos.Hash)
private static final org.hyperledger.protos.Ca.Hash DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.Hash();
}
public static org.hyperledger.protos.Ca.Hash getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Hash parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Hash(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.Hash getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PublicKeyOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.PublicKey)
com.google.protobuf.MessageOrBuilder {
/**
* optional .protos.CryptoType type = 1;
*/
int getTypeValue();
/**
* optional .protos.CryptoType type = 1;
*/
org.hyperledger.protos.Ca.CryptoType getType();
/**
*
* DER / ASN.1
*
*
* optional bytes key = 2;
*/
com.google.protobuf.ByteString getKey();
}
/**
* Protobuf type {@code protos.PublicKey}
*/
public static final class PublicKey extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.PublicKey)
PublicKeyOrBuilder {
// Use PublicKey.newBuilder() to construct.
private PublicKey(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PublicKey() {
type_ = 0;
key_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private PublicKey(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 18: {
key_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_PublicKey_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_PublicKey_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.PublicKey.class, org.hyperledger.protos.Ca.PublicKey.Builder.class);
}
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
* optional .protos.CryptoType type = 1;
*/
public int getTypeValue() {
return type_;
}
/**
* optional .protos.CryptoType type = 1;
*/
public org.hyperledger.protos.Ca.CryptoType getType() {
org.hyperledger.protos.Ca.CryptoType result = org.hyperledger.protos.Ca.CryptoType.valueOf(type_);
return result == null ? org.hyperledger.protos.Ca.CryptoType.UNRECOGNIZED : result;
}
public static final int KEY_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString key_;
/**
*
* DER / ASN.1
*
*
* optional bytes key = 2;
*/
public com.google.protobuf.ByteString getKey() {
return key_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (type_ != org.hyperledger.protos.Ca.CryptoType.ECDSA.getNumber()) {
output.writeEnum(1, type_);
}
if (!key_.isEmpty()) {
output.writeBytes(2, key_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (type_ != org.hyperledger.protos.Ca.CryptoType.ECDSA.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_);
}
if (!key_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, key_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.PublicKey)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.PublicKey other = (org.hyperledger.protos.Ca.PublicKey) obj;
boolean result = true;
result = result && type_ == other.type_;
result = result && getKey()
.equals(other.getKey());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.PublicKey parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.PublicKey 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.protos.Ca.PublicKey parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.PublicKey parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.PublicKey parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.PublicKey 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.protos.Ca.PublicKey parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.PublicKey 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.protos.Ca.PublicKey parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.PublicKey parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.PublicKey prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.PublicKey}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.PublicKey)
org.hyperledger.protos.Ca.PublicKeyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_PublicKey_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_PublicKey_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.PublicKey.class, org.hyperledger.protos.Ca.PublicKey.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.PublicKey.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
type_ = 0;
key_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_PublicKey_descriptor;
}
public org.hyperledger.protos.Ca.PublicKey getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.PublicKey.getDefaultInstance();
}
public org.hyperledger.protos.Ca.PublicKey build() {
org.hyperledger.protos.Ca.PublicKey result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.PublicKey buildPartial() {
org.hyperledger.protos.Ca.PublicKey result = new org.hyperledger.protos.Ca.PublicKey(this);
result.type_ = type_;
result.key_ = key_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.PublicKey) {
return mergeFrom((org.hyperledger.protos.Ca.PublicKey)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.PublicKey other) {
if (other == org.hyperledger.protos.Ca.PublicKey.getDefaultInstance()) return this;
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.getKey() != com.google.protobuf.ByteString.EMPTY) {
setKey(other.getKey());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.PublicKey parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.PublicKey) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int type_ = 0;
/**
* optional .protos.CryptoType type = 1;
*/
public int getTypeValue() {
return type_;
}
/**
* optional .protos.CryptoType type = 1;
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
* optional .protos.CryptoType type = 1;
*/
public org.hyperledger.protos.Ca.CryptoType getType() {
org.hyperledger.protos.Ca.CryptoType result = org.hyperledger.protos.Ca.CryptoType.valueOf(type_);
return result == null ? org.hyperledger.protos.Ca.CryptoType.UNRECOGNIZED : result;
}
/**
* optional .protos.CryptoType type = 1;
*/
public Builder setType(org.hyperledger.protos.Ca.CryptoType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .protos.CryptoType type = 1;
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* DER / ASN.1
*
*
* optional bytes key = 2;
*/
public com.google.protobuf.ByteString getKey() {
return key_;
}
/**
*
* DER / ASN.1
*
*
* optional bytes key = 2;
*/
public Builder setKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
return this;
}
/**
*
* DER / ASN.1
*
*
* optional bytes key = 2;
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.PublicKey)
}
// @@protoc_insertion_point(class_scope:protos.PublicKey)
private static final org.hyperledger.protos.Ca.PublicKey DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.PublicKey();
}
public static org.hyperledger.protos.Ca.PublicKey getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public PublicKey parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PublicKey(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.PublicKey getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PrivateKeyOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.PrivateKey)
com.google.protobuf.MessageOrBuilder {
/**
* optional .protos.CryptoType type = 1;
*/
int getTypeValue();
/**
* optional .protos.CryptoType type = 1;
*/
org.hyperledger.protos.Ca.CryptoType getType();
/**
*
* DER / ASN.1
*
*
* optional bytes key = 2;
*/
com.google.protobuf.ByteString getKey();
}
/**
* Protobuf type {@code protos.PrivateKey}
*/
public static final class PrivateKey extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.PrivateKey)
PrivateKeyOrBuilder {
// Use PrivateKey.newBuilder() to construct.
private PrivateKey(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PrivateKey() {
type_ = 0;
key_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private PrivateKey(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 18: {
key_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_PrivateKey_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_PrivateKey_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.PrivateKey.class, org.hyperledger.protos.Ca.PrivateKey.Builder.class);
}
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
* optional .protos.CryptoType type = 1;
*/
public int getTypeValue() {
return type_;
}
/**
* optional .protos.CryptoType type = 1;
*/
public org.hyperledger.protos.Ca.CryptoType getType() {
org.hyperledger.protos.Ca.CryptoType result = org.hyperledger.protos.Ca.CryptoType.valueOf(type_);
return result == null ? org.hyperledger.protos.Ca.CryptoType.UNRECOGNIZED : result;
}
public static final int KEY_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString key_;
/**
*
* DER / ASN.1
*
*
* optional bytes key = 2;
*/
public com.google.protobuf.ByteString getKey() {
return key_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (type_ != org.hyperledger.protos.Ca.CryptoType.ECDSA.getNumber()) {
output.writeEnum(1, type_);
}
if (!key_.isEmpty()) {
output.writeBytes(2, key_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (type_ != org.hyperledger.protos.Ca.CryptoType.ECDSA.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_);
}
if (!key_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, key_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.PrivateKey)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.PrivateKey other = (org.hyperledger.protos.Ca.PrivateKey) obj;
boolean result = true;
result = result && type_ == other.type_;
result = result && getKey()
.equals(other.getKey());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.PrivateKey parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.PrivateKey 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.protos.Ca.PrivateKey parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.PrivateKey parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.PrivateKey parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.PrivateKey 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.protos.Ca.PrivateKey parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.PrivateKey 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.protos.Ca.PrivateKey parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.PrivateKey parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.PrivateKey prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.PrivateKey}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.PrivateKey)
org.hyperledger.protos.Ca.PrivateKeyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_PrivateKey_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_PrivateKey_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.PrivateKey.class, org.hyperledger.protos.Ca.PrivateKey.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.PrivateKey.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
type_ = 0;
key_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_PrivateKey_descriptor;
}
public org.hyperledger.protos.Ca.PrivateKey getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.PrivateKey.getDefaultInstance();
}
public org.hyperledger.protos.Ca.PrivateKey build() {
org.hyperledger.protos.Ca.PrivateKey result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.PrivateKey buildPartial() {
org.hyperledger.protos.Ca.PrivateKey result = new org.hyperledger.protos.Ca.PrivateKey(this);
result.type_ = type_;
result.key_ = key_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.PrivateKey) {
return mergeFrom((org.hyperledger.protos.Ca.PrivateKey)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.PrivateKey other) {
if (other == org.hyperledger.protos.Ca.PrivateKey.getDefaultInstance()) return this;
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.getKey() != com.google.protobuf.ByteString.EMPTY) {
setKey(other.getKey());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.PrivateKey parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.PrivateKey) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int type_ = 0;
/**
* optional .protos.CryptoType type = 1;
*/
public int getTypeValue() {
return type_;
}
/**
* optional .protos.CryptoType type = 1;
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
* optional .protos.CryptoType type = 1;
*/
public org.hyperledger.protos.Ca.CryptoType getType() {
org.hyperledger.protos.Ca.CryptoType result = org.hyperledger.protos.Ca.CryptoType.valueOf(type_);
return result == null ? org.hyperledger.protos.Ca.CryptoType.UNRECOGNIZED : result;
}
/**
* optional .protos.CryptoType type = 1;
*/
public Builder setType(org.hyperledger.protos.Ca.CryptoType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .protos.CryptoType type = 1;
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* DER / ASN.1
*
*
* optional bytes key = 2;
*/
public com.google.protobuf.ByteString getKey() {
return key_;
}
/**
*
* DER / ASN.1
*
*
* optional bytes key = 2;
*/
public Builder setKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
return this;
}
/**
*
* DER / ASN.1
*
*
* optional bytes key = 2;
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.PrivateKey)
}
// @@protoc_insertion_point(class_scope:protos.PrivateKey)
private static final org.hyperledger.protos.Ca.PrivateKey DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.PrivateKey();
}
public static org.hyperledger.protos.Ca.PrivateKey getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public PrivateKey parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PrivateKey(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.PrivateKey getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SignatureOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.Signature)
com.google.protobuf.MessageOrBuilder {
/**
* optional .protos.CryptoType type = 1;
*/
int getTypeValue();
/**
* optional .protos.CryptoType type = 1;
*/
org.hyperledger.protos.Ca.CryptoType getType();
/**
* optional bytes r = 2;
*/
com.google.protobuf.ByteString getR();
/**
* optional bytes s = 3;
*/
com.google.protobuf.ByteString getS();
}
/**
*
* Signature.
*
*
* Protobuf type {@code protos.Signature}
*/
public static final class Signature extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.Signature)
SignatureOrBuilder {
// Use Signature.newBuilder() to construct.
private Signature(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Signature() {
type_ = 0;
r_ = com.google.protobuf.ByteString.EMPTY;
s_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Signature(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 18: {
r_ = input.readBytes();
break;
}
case 26: {
s_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_Signature_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_Signature_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.Signature.class, org.hyperledger.protos.Ca.Signature.Builder.class);
}
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
* optional .protos.CryptoType type = 1;
*/
public int getTypeValue() {
return type_;
}
/**
* optional .protos.CryptoType type = 1;
*/
public org.hyperledger.protos.Ca.CryptoType getType() {
org.hyperledger.protos.Ca.CryptoType result = org.hyperledger.protos.Ca.CryptoType.valueOf(type_);
return result == null ? org.hyperledger.protos.Ca.CryptoType.UNRECOGNIZED : result;
}
public static final int R_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString r_;
/**
* optional bytes r = 2;
*/
public com.google.protobuf.ByteString getR() {
return r_;
}
public static final int S_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString s_;
/**
* optional bytes s = 3;
*/
public com.google.protobuf.ByteString getS() {
return s_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (type_ != org.hyperledger.protos.Ca.CryptoType.ECDSA.getNumber()) {
output.writeEnum(1, type_);
}
if (!r_.isEmpty()) {
output.writeBytes(2, r_);
}
if (!s_.isEmpty()) {
output.writeBytes(3, s_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (type_ != org.hyperledger.protos.Ca.CryptoType.ECDSA.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_);
}
if (!r_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, r_);
}
if (!s_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, s_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.Signature)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.Signature other = (org.hyperledger.protos.Ca.Signature) obj;
boolean result = true;
result = result && type_ == other.type_;
result = result && getR()
.equals(other.getR());
result = result && getS()
.equals(other.getS());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + R_FIELD_NUMBER;
hash = (53 * hash) + getR().hashCode();
hash = (37 * hash) + S_FIELD_NUMBER;
hash = (53 * hash) + getS().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.Signature parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.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.protos.Ca.Signature parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.Signature parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.Signature parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.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.protos.Ca.Signature parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.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.protos.Ca.Signature parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.Signature parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.Signature prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Signature.
*
*
* Protobuf type {@code protos.Signature}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.Signature)
org.hyperledger.protos.Ca.SignatureOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_Signature_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_Signature_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.Signature.class, org.hyperledger.protos.Ca.Signature.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.Signature.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
type_ = 0;
r_ = com.google.protobuf.ByteString.EMPTY;
s_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_Signature_descriptor;
}
public org.hyperledger.protos.Ca.Signature getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.Signature.getDefaultInstance();
}
public org.hyperledger.protos.Ca.Signature build() {
org.hyperledger.protos.Ca.Signature result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.Signature buildPartial() {
org.hyperledger.protos.Ca.Signature result = new org.hyperledger.protos.Ca.Signature(this);
result.type_ = type_;
result.r_ = r_;
result.s_ = s_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.Signature) {
return mergeFrom((org.hyperledger.protos.Ca.Signature)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.Signature other) {
if (other == org.hyperledger.protos.Ca.Signature.getDefaultInstance()) return this;
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.getR() != com.google.protobuf.ByteString.EMPTY) {
setR(other.getR());
}
if (other.getS() != com.google.protobuf.ByteString.EMPTY) {
setS(other.getS());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.Signature parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.Signature) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int type_ = 0;
/**
* optional .protos.CryptoType type = 1;
*/
public int getTypeValue() {
return type_;
}
/**
* optional .protos.CryptoType type = 1;
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
* optional .protos.CryptoType type = 1;
*/
public org.hyperledger.protos.Ca.CryptoType getType() {
org.hyperledger.protos.Ca.CryptoType result = org.hyperledger.protos.Ca.CryptoType.valueOf(type_);
return result == null ? org.hyperledger.protos.Ca.CryptoType.UNRECOGNIZED : result;
}
/**
* optional .protos.CryptoType type = 1;
*/
public Builder setType(org.hyperledger.protos.Ca.CryptoType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .protos.CryptoType type = 1;
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString r_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes r = 2;
*/
public com.google.protobuf.ByteString getR() {
return r_;
}
/**
* optional bytes r = 2;
*/
public Builder setR(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
r_ = value;
onChanged();
return this;
}
/**
* optional bytes r = 2;
*/
public Builder clearR() {
r_ = getDefaultInstance().getR();
onChanged();
return this;
}
private com.google.protobuf.ByteString s_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes s = 3;
*/
public com.google.protobuf.ByteString getS() {
return s_;
}
/**
* optional bytes s = 3;
*/
public Builder setS(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
s_ = value;
onChanged();
return this;
}
/**
* optional bytes s = 3;
*/
public Builder clearS() {
s_ = getDefaultInstance().getS();
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.Signature)
}
// @@protoc_insertion_point(class_scope:protos.Signature)
private static final org.hyperledger.protos.Ca.Signature DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.Signature();
}
public static org.hyperledger.protos.Ca.Signature getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Signature parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Signature(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.Signature getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RegistrarOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.Registrar)
com.google.protobuf.MessageOrBuilder {
/**
*
* The identity of the registrar
*
*
* optional .protos.Identity id = 1;
*/
boolean hasId();
/**
*
* The identity of the registrar
*
*
* optional .protos.Identity id = 1;
*/
org.hyperledger.protos.Ca.Identity getId();
/**
*
* The identity of the registrar
*
*
* optional .protos.Identity id = 1;
*/
org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder();
/**
*
* Roles that the registrar can register
*
*
* repeated string roles = 2;
*/
java.util.List
getRolesList();
/**
*
* Roles that the registrar can register
*
*
* repeated string roles = 2;
*/
int getRolesCount();
/**
*
* Roles that the registrar can register
*
*
* repeated string roles = 2;
*/
java.lang.String getRoles(int index);
/**
*
* Roles that the registrar can register
*
*
* repeated string roles = 2;
*/
com.google.protobuf.ByteString
getRolesBytes(int index);
/**
*
* Roles that the registrar can give to another to register
*
*
* repeated string delegateRoles = 3;
*/
java.util.List
getDelegateRolesList();
/**
*
* Roles that the registrar can give to another to register
*
*
* repeated string delegateRoles = 3;
*/
int getDelegateRolesCount();
/**
*
* Roles that the registrar can give to another to register
*
*
* repeated string delegateRoles = 3;
*/
java.lang.String getDelegateRoles(int index);
/**
*
* Roles that the registrar can give to another to register
*
*
* repeated string delegateRoles = 3;
*/
com.google.protobuf.ByteString
getDelegateRolesBytes(int index);
}
/**
* Protobuf type {@code protos.Registrar}
*/
public static final class Registrar extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.Registrar)
RegistrarOrBuilder {
// Use Registrar.newBuilder() to construct.
private Registrar(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Registrar() {
roles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
delegateRoles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Registrar(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
org.hyperledger.protos.Ca.Identity.Builder subBuilder = null;
if (id_ != null) {
subBuilder = id_.toBuilder();
}
id_ = input.readMessage(org.hyperledger.protos.Ca.Identity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(id_);
id_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
roles_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
roles_.add(s);
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
delegateRoles_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
delegateRoles_.add(s);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
roles_ = roles_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
delegateRoles_ = delegateRoles_.getUnmodifiableView();
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_Registrar_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_Registrar_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.Registrar.class, org.hyperledger.protos.Ca.Registrar.Builder.class);
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private org.hyperledger.protos.Ca.Identity id_;
/**
*
* The identity of the registrar
*
*
* optional .protos.Identity id = 1;
*/
public boolean hasId() {
return id_ != null;
}
/**
*
* The identity of the registrar
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity getId() {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
/**
*
* The identity of the registrar
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
return getId();
}
public static final int ROLES_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList roles_;
/**
*
* Roles that the registrar can register
*
*
* repeated string roles = 2;
*/
public com.google.protobuf.ProtocolStringList
getRolesList() {
return roles_;
}
/**
*
* Roles that the registrar can register
*
*
* repeated string roles = 2;
*/
public int getRolesCount() {
return roles_.size();
}
/**
*
* Roles that the registrar can register
*
*
* repeated string roles = 2;
*/
public java.lang.String getRoles(int index) {
return roles_.get(index);
}
/**
*
* Roles that the registrar can register
*
*
* repeated string roles = 2;
*/
public com.google.protobuf.ByteString
getRolesBytes(int index) {
return roles_.getByteString(index);
}
public static final int DELEGATEROLES_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList delegateRoles_;
/**
*
* Roles that the registrar can give to another to register
*
*
* repeated string delegateRoles = 3;
*/
public com.google.protobuf.ProtocolStringList
getDelegateRolesList() {
return delegateRoles_;
}
/**
*
* Roles that the registrar can give to another to register
*
*
* repeated string delegateRoles = 3;
*/
public int getDelegateRolesCount() {
return delegateRoles_.size();
}
/**
*
* Roles that the registrar can give to another to register
*
*
* repeated string delegateRoles = 3;
*/
public java.lang.String getDelegateRoles(int index) {
return delegateRoles_.get(index);
}
/**
*
* Roles that the registrar can give to another to register
*
*
* repeated string delegateRoles = 3;
*/
public com.google.protobuf.ByteString
getDelegateRolesBytes(int index) {
return delegateRoles_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (id_ != null) {
output.writeMessage(1, getId());
}
for (int i = 0; i < roles_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, roles_.getRaw(i));
}
for (int i = 0; i < delegateRoles_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, delegateRoles_.getRaw(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getId());
}
{
int dataSize = 0;
for (int i = 0; i < roles_.size(); i++) {
dataSize += computeStringSizeNoTag(roles_.getRaw(i));
}
size += dataSize;
size += 1 * getRolesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < delegateRoles_.size(); i++) {
dataSize += computeStringSizeNoTag(delegateRoles_.getRaw(i));
}
size += dataSize;
size += 1 * getDelegateRolesList().size();
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.Registrar)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.Registrar other = (org.hyperledger.protos.Ca.Registrar) obj;
boolean result = true;
result = result && (hasId() == other.hasId());
if (hasId()) {
result = result && getId()
.equals(other.getId());
}
result = result && getRolesList()
.equals(other.getRolesList());
result = result && getDelegateRolesList()
.equals(other.getDelegateRolesList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
if (getRolesCount() > 0) {
hash = (37 * hash) + ROLES_FIELD_NUMBER;
hash = (53 * hash) + getRolesList().hashCode();
}
if (getDelegateRolesCount() > 0) {
hash = (37 * hash) + DELEGATEROLES_FIELD_NUMBER;
hash = (53 * hash) + getDelegateRolesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.Registrar parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.Registrar 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.protos.Ca.Registrar parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.Registrar parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.Registrar parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.Registrar 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.protos.Ca.Registrar parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.Registrar 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.protos.Ca.Registrar parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.Registrar parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.Registrar prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.Registrar}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.Registrar)
org.hyperledger.protos.Ca.RegistrarOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_Registrar_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_Registrar_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.Registrar.class, org.hyperledger.protos.Ca.Registrar.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.Registrar.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (idBuilder_ == null) {
id_ = null;
} else {
id_ = null;
idBuilder_ = null;
}
roles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
delegateRoles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_Registrar_descriptor;
}
public org.hyperledger.protos.Ca.Registrar getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.Registrar.getDefaultInstance();
}
public org.hyperledger.protos.Ca.Registrar build() {
org.hyperledger.protos.Ca.Registrar result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.Registrar buildPartial() {
org.hyperledger.protos.Ca.Registrar result = new org.hyperledger.protos.Ca.Registrar(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (idBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
roles_ = roles_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.roles_ = roles_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
delegateRoles_ = delegateRoles_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.delegateRoles_ = delegateRoles_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.Registrar) {
return mergeFrom((org.hyperledger.protos.Ca.Registrar)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.Registrar other) {
if (other == org.hyperledger.protos.Ca.Registrar.getDefaultInstance()) return this;
if (other.hasId()) {
mergeId(other.getId());
}
if (!other.roles_.isEmpty()) {
if (roles_.isEmpty()) {
roles_ = other.roles_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRolesIsMutable();
roles_.addAll(other.roles_);
}
onChanged();
}
if (!other.delegateRoles_.isEmpty()) {
if (delegateRoles_.isEmpty()) {
delegateRoles_ = other.delegateRoles_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureDelegateRolesIsMutable();
delegateRoles_.addAll(other.delegateRoles_);
}
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.Registrar parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.Registrar) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.hyperledger.protos.Ca.Identity id_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder> idBuilder_;
/**
*
* The identity of the registrar
*
*
* optional .protos.Identity id = 1;
*/
public boolean hasId() {
return idBuilder_ != null || id_ != null;
}
/**
*
* The identity of the registrar
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity getId() {
if (idBuilder_ == null) {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
} else {
return idBuilder_.getMessage();
}
}
/**
*
* The identity of the registrar
*
*
* optional .protos.Identity id = 1;
*/
public Builder setId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
idBuilder_.setMessage(value);
}
return this;
}
/**
*
* The identity of the registrar
*
*
* optional .protos.Identity id = 1;
*/
public Builder setId(
org.hyperledger.protos.Ca.Identity.Builder builderForValue) {
if (idBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
idBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The identity of the registrar
*
*
* optional .protos.Identity id = 1;
*/
public Builder mergeId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (id_ != null) {
id_ =
org.hyperledger.protos.Ca.Identity.newBuilder(id_).mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
idBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The identity of the registrar
*
*
* optional .protos.Identity id = 1;
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = null;
onChanged();
} else {
id_ = null;
idBuilder_ = null;
}
return this;
}
/**
*
* The identity of the registrar
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity.Builder getIdBuilder() {
onChanged();
return getIdFieldBuilder().getBuilder();
}
/**
*
* The identity of the registrar
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
return id_ == null ?
org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
}
/**
*
* The identity of the registrar
*
*
* optional .protos.Identity id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>(
getId(),
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
private com.google.protobuf.LazyStringList roles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureRolesIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
roles_ = new com.google.protobuf.LazyStringArrayList(roles_);
bitField0_ |= 0x00000002;
}
}
/**
*
* Roles that the registrar can register
*
*
* repeated string roles = 2;
*/
public com.google.protobuf.ProtocolStringList
getRolesList() {
return roles_.getUnmodifiableView();
}
/**
*
* Roles that the registrar can register
*
*
* repeated string roles = 2;
*/
public int getRolesCount() {
return roles_.size();
}
/**
*
* Roles that the registrar can register
*
*
* repeated string roles = 2;
*/
public java.lang.String getRoles(int index) {
return roles_.get(index);
}
/**
*
* Roles that the registrar can register
*
*
* repeated string roles = 2;
*/
public com.google.protobuf.ByteString
getRolesBytes(int index) {
return roles_.getByteString(index);
}
/**
*
* Roles that the registrar can register
*
*
* repeated string roles = 2;
*/
public Builder setRoles(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRolesIsMutable();
roles_.set(index, value);
onChanged();
return this;
}
/**
*
* Roles that the registrar can register
*
*
* repeated string roles = 2;
*/
public Builder addRoles(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRolesIsMutable();
roles_.add(value);
onChanged();
return this;
}
/**
*
* Roles that the registrar can register
*
*
* repeated string roles = 2;
*/
public Builder addAllRoles(
java.lang.Iterable values) {
ensureRolesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, roles_);
onChanged();
return this;
}
/**
*
* Roles that the registrar can register
*
*
* repeated string roles = 2;
*/
public Builder clearRoles() {
roles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Roles that the registrar can register
*
*
* repeated string roles = 2;
*/
public Builder addRolesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureRolesIsMutable();
roles_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList delegateRoles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureDelegateRolesIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
delegateRoles_ = new com.google.protobuf.LazyStringArrayList(delegateRoles_);
bitField0_ |= 0x00000004;
}
}
/**
*
* Roles that the registrar can give to another to register
*
*
* repeated string delegateRoles = 3;
*/
public com.google.protobuf.ProtocolStringList
getDelegateRolesList() {
return delegateRoles_.getUnmodifiableView();
}
/**
*
* Roles that the registrar can give to another to register
*
*
* repeated string delegateRoles = 3;
*/
public int getDelegateRolesCount() {
return delegateRoles_.size();
}
/**
*
* Roles that the registrar can give to another to register
*
*
* repeated string delegateRoles = 3;
*/
public java.lang.String getDelegateRoles(int index) {
return delegateRoles_.get(index);
}
/**
*
* Roles that the registrar can give to another to register
*
*
* repeated string delegateRoles = 3;
*/
public com.google.protobuf.ByteString
getDelegateRolesBytes(int index) {
return delegateRoles_.getByteString(index);
}
/**
*
* Roles that the registrar can give to another to register
*
*
* repeated string delegateRoles = 3;
*/
public Builder setDelegateRoles(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDelegateRolesIsMutable();
delegateRoles_.set(index, value);
onChanged();
return this;
}
/**
*
* Roles that the registrar can give to another to register
*
*
* repeated string delegateRoles = 3;
*/
public Builder addDelegateRoles(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDelegateRolesIsMutable();
delegateRoles_.add(value);
onChanged();
return this;
}
/**
*
* Roles that the registrar can give to another to register
*
*
* repeated string delegateRoles = 3;
*/
public Builder addAllDelegateRoles(
java.lang.Iterable values) {
ensureDelegateRolesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, delegateRoles_);
onChanged();
return this;
}
/**
*
* Roles that the registrar can give to another to register
*
*
* repeated string delegateRoles = 3;
*/
public Builder clearDelegateRoles() {
delegateRoles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Roles that the registrar can give to another to register
*
*
* repeated string delegateRoles = 3;
*/
public Builder addDelegateRolesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureDelegateRolesIsMutable();
delegateRoles_.add(value);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.Registrar)
}
// @@protoc_insertion_point(class_scope:protos.Registrar)
private static final org.hyperledger.protos.Ca.Registrar DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.Registrar();
}
public static org.hyperledger.protos.Ca.Registrar getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Registrar parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Registrar(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.Registrar getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RegisterUserReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.RegisterUserReq)
com.google.protobuf.MessageOrBuilder {
/**
* optional .protos.Identity id = 1;
*/
boolean hasId();
/**
* optional .protos.Identity id = 1;
*/
org.hyperledger.protos.Ca.Identity getId();
/**
* optional .protos.Identity id = 1;
*/
org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder();
/**
* optional .protos.Role role = 2;
*/
int getRoleValue();
/**
* optional .protos.Role role = 2;
*/
org.hyperledger.protos.Ca.Role getRole();
/**
*
* Skipping field number 3 to maintain backward compatibility. It was used before for the primary account.
*
*
* optional string affiliation = 4;
*/
java.lang.String getAffiliation();
/**
*
* Skipping field number 3 to maintain backward compatibility. It was used before for the primary account.
*
*
* optional string affiliation = 4;
*/
com.google.protobuf.ByteString
getAffiliationBytes();
/**
* optional .protos.Registrar registrar = 5;
*/
boolean hasRegistrar();
/**
* optional .protos.Registrar registrar = 5;
*/
org.hyperledger.protos.Ca.Registrar getRegistrar();
/**
* optional .protos.Registrar registrar = 5;
*/
org.hyperledger.protos.Ca.RegistrarOrBuilder getRegistrarOrBuilder();
/**
* optional .protos.Signature sig = 6;
*/
boolean hasSig();
/**
* optional .protos.Signature sig = 6;
*/
org.hyperledger.protos.Ca.Signature getSig();
/**
* optional .protos.Signature sig = 6;
*/
org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder();
}
/**
* Protobuf type {@code protos.RegisterUserReq}
*/
public static final class RegisterUserReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.RegisterUserReq)
RegisterUserReqOrBuilder {
// Use RegisterUserReq.newBuilder() to construct.
private RegisterUserReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RegisterUserReq() {
role_ = 0;
affiliation_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private RegisterUserReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
org.hyperledger.protos.Ca.Identity.Builder subBuilder = null;
if (id_ != null) {
subBuilder = id_.toBuilder();
}
id_ = input.readMessage(org.hyperledger.protos.Ca.Identity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(id_);
id_ = subBuilder.buildPartial();
}
break;
}
case 16: {
int rawValue = input.readEnum();
role_ = rawValue;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
affiliation_ = s;
break;
}
case 42: {
org.hyperledger.protos.Ca.Registrar.Builder subBuilder = null;
if (registrar_ != null) {
subBuilder = registrar_.toBuilder();
}
registrar_ = input.readMessage(org.hyperledger.protos.Ca.Registrar.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(registrar_);
registrar_ = subBuilder.buildPartial();
}
break;
}
case 50: {
org.hyperledger.protos.Ca.Signature.Builder subBuilder = null;
if (sig_ != null) {
subBuilder = sig_.toBuilder();
}
sig_ = input.readMessage(org.hyperledger.protos.Ca.Signature.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sig_);
sig_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_RegisterUserReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_RegisterUserReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.RegisterUserReq.class, org.hyperledger.protos.Ca.RegisterUserReq.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private org.hyperledger.protos.Ca.Identity id_;
/**
* optional .protos.Identity id = 1;
*/
public boolean hasId() {
return id_ != null;
}
/**
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity getId() {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
/**
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
return getId();
}
public static final int ROLE_FIELD_NUMBER = 2;
private int role_;
/**
* optional .protos.Role role = 2;
*/
public int getRoleValue() {
return role_;
}
/**
* optional .protos.Role role = 2;
*/
public org.hyperledger.protos.Ca.Role getRole() {
org.hyperledger.protos.Ca.Role result = org.hyperledger.protos.Ca.Role.valueOf(role_);
return result == null ? org.hyperledger.protos.Ca.Role.UNRECOGNIZED : result;
}
public static final int AFFILIATION_FIELD_NUMBER = 4;
private volatile java.lang.Object affiliation_;
/**
*
* Skipping field number 3 to maintain backward compatibility. It was used before for the primary account.
*
*
* optional string affiliation = 4;
*/
public java.lang.String getAffiliation() {
java.lang.Object ref = affiliation_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
affiliation_ = s;
return s;
}
}
/**
*
* Skipping field number 3 to maintain backward compatibility. It was used before for the primary account.
*
*
* optional string affiliation = 4;
*/
public com.google.protobuf.ByteString
getAffiliationBytes() {
java.lang.Object ref = affiliation_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
affiliation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REGISTRAR_FIELD_NUMBER = 5;
private org.hyperledger.protos.Ca.Registrar registrar_;
/**
* optional .protos.Registrar registrar = 5;
*/
public boolean hasRegistrar() {
return registrar_ != null;
}
/**
* optional .protos.Registrar registrar = 5;
*/
public org.hyperledger.protos.Ca.Registrar getRegistrar() {
return registrar_ == null ? org.hyperledger.protos.Ca.Registrar.getDefaultInstance() : registrar_;
}
/**
* optional .protos.Registrar registrar = 5;
*/
public org.hyperledger.protos.Ca.RegistrarOrBuilder getRegistrarOrBuilder() {
return getRegistrar();
}
public static final int SIG_FIELD_NUMBER = 6;
private org.hyperledger.protos.Ca.Signature sig_;
/**
* optional .protos.Signature sig = 6;
*/
public boolean hasSig() {
return sig_ != null;
}
/**
* optional .protos.Signature sig = 6;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
/**
* optional .protos.Signature sig = 6;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
return getSig();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (id_ != null) {
output.writeMessage(1, getId());
}
if (role_ != org.hyperledger.protos.Ca.Role.NONE.getNumber()) {
output.writeEnum(2, role_);
}
if (!getAffiliationBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, affiliation_);
}
if (registrar_ != null) {
output.writeMessage(5, getRegistrar());
}
if (sig_ != null) {
output.writeMessage(6, getSig());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getId());
}
if (role_ != org.hyperledger.protos.Ca.Role.NONE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, role_);
}
if (!getAffiliationBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, affiliation_);
}
if (registrar_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getRegistrar());
}
if (sig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getSig());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.RegisterUserReq)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.RegisterUserReq other = (org.hyperledger.protos.Ca.RegisterUserReq) obj;
boolean result = true;
result = result && (hasId() == other.hasId());
if (hasId()) {
result = result && getId()
.equals(other.getId());
}
result = result && role_ == other.role_;
result = result && getAffiliation()
.equals(other.getAffiliation());
result = result && (hasRegistrar() == other.hasRegistrar());
if (hasRegistrar()) {
result = result && getRegistrar()
.equals(other.getRegistrar());
}
result = result && (hasSig() == other.hasSig());
if (hasSig()) {
result = result && getSig()
.equals(other.getSig());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
hash = (37 * hash) + ROLE_FIELD_NUMBER;
hash = (53 * hash) + role_;
hash = (37 * hash) + AFFILIATION_FIELD_NUMBER;
hash = (53 * hash) + getAffiliation().hashCode();
if (hasRegistrar()) {
hash = (37 * hash) + REGISTRAR_FIELD_NUMBER;
hash = (53 * hash) + getRegistrar().hashCode();
}
if (hasSig()) {
hash = (37 * hash) + SIG_FIELD_NUMBER;
hash = (53 * hash) + getSig().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.RegisterUserReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.RegisterUserReq 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.protos.Ca.RegisterUserReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.RegisterUserReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.RegisterUserReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.RegisterUserReq 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.protos.Ca.RegisterUserReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.RegisterUserReq 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.protos.Ca.RegisterUserReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.RegisterUserReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.RegisterUserReq prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.RegisterUserReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.RegisterUserReq)
org.hyperledger.protos.Ca.RegisterUserReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_RegisterUserReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_RegisterUserReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.RegisterUserReq.class, org.hyperledger.protos.Ca.RegisterUserReq.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.RegisterUserReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (idBuilder_ == null) {
id_ = null;
} else {
id_ = null;
idBuilder_ = null;
}
role_ = 0;
affiliation_ = "";
if (registrarBuilder_ == null) {
registrar_ = null;
} else {
registrar_ = null;
registrarBuilder_ = null;
}
if (sigBuilder_ == null) {
sig_ = null;
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_RegisterUserReq_descriptor;
}
public org.hyperledger.protos.Ca.RegisterUserReq getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.RegisterUserReq.getDefaultInstance();
}
public org.hyperledger.protos.Ca.RegisterUserReq build() {
org.hyperledger.protos.Ca.RegisterUserReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.RegisterUserReq buildPartial() {
org.hyperledger.protos.Ca.RegisterUserReq result = new org.hyperledger.protos.Ca.RegisterUserReq(this);
if (idBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
result.role_ = role_;
result.affiliation_ = affiliation_;
if (registrarBuilder_ == null) {
result.registrar_ = registrar_;
} else {
result.registrar_ = registrarBuilder_.build();
}
if (sigBuilder_ == null) {
result.sig_ = sig_;
} else {
result.sig_ = sigBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.RegisterUserReq) {
return mergeFrom((org.hyperledger.protos.Ca.RegisterUserReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.RegisterUserReq other) {
if (other == org.hyperledger.protos.Ca.RegisterUserReq.getDefaultInstance()) return this;
if (other.hasId()) {
mergeId(other.getId());
}
if (other.role_ != 0) {
setRoleValue(other.getRoleValue());
}
if (!other.getAffiliation().isEmpty()) {
affiliation_ = other.affiliation_;
onChanged();
}
if (other.hasRegistrar()) {
mergeRegistrar(other.getRegistrar());
}
if (other.hasSig()) {
mergeSig(other.getSig());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.RegisterUserReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.RegisterUserReq) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.hyperledger.protos.Ca.Identity id_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder> idBuilder_;
/**
* optional .protos.Identity id = 1;
*/
public boolean hasId() {
return idBuilder_ != null || id_ != null;
}
/**
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity getId() {
if (idBuilder_ == null) {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
} else {
return idBuilder_.getMessage();
}
}
/**
* optional .protos.Identity id = 1;
*/
public Builder setId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
idBuilder_.setMessage(value);
}
return this;
}
/**
* optional .protos.Identity id = 1;
*/
public Builder setId(
org.hyperledger.protos.Ca.Identity.Builder builderForValue) {
if (idBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
idBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .protos.Identity id = 1;
*/
public Builder mergeId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (id_ != null) {
id_ =
org.hyperledger.protos.Ca.Identity.newBuilder(id_).mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
idBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .protos.Identity id = 1;
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = null;
onChanged();
} else {
id_ = null;
idBuilder_ = null;
}
return this;
}
/**
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity.Builder getIdBuilder() {
onChanged();
return getIdFieldBuilder().getBuilder();
}
/**
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
return id_ == null ?
org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
}
/**
* optional .protos.Identity id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>(
getId(),
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
private int role_ = 0;
/**
* optional .protos.Role role = 2;
*/
public int getRoleValue() {
return role_;
}
/**
* optional .protos.Role role = 2;
*/
public Builder setRoleValue(int value) {
role_ = value;
onChanged();
return this;
}
/**
* optional .protos.Role role = 2;
*/
public org.hyperledger.protos.Ca.Role getRole() {
org.hyperledger.protos.Ca.Role result = org.hyperledger.protos.Ca.Role.valueOf(role_);
return result == null ? org.hyperledger.protos.Ca.Role.UNRECOGNIZED : result;
}
/**
* optional .protos.Role role = 2;
*/
public Builder setRole(org.hyperledger.protos.Ca.Role value) {
if (value == null) {
throw new NullPointerException();
}
role_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .protos.Role role = 2;
*/
public Builder clearRole() {
role_ = 0;
onChanged();
return this;
}
private java.lang.Object affiliation_ = "";
/**
*
* Skipping field number 3 to maintain backward compatibility. It was used before for the primary account.
*
*
* optional string affiliation = 4;
*/
public java.lang.String getAffiliation() {
java.lang.Object ref = affiliation_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
affiliation_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Skipping field number 3 to maintain backward compatibility. It was used before for the primary account.
*
*
* optional string affiliation = 4;
*/
public com.google.protobuf.ByteString
getAffiliationBytes() {
java.lang.Object ref = affiliation_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
affiliation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Skipping field number 3 to maintain backward compatibility. It was used before for the primary account.
*
*
* optional string affiliation = 4;
*/
public Builder setAffiliation(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
affiliation_ = value;
onChanged();
return this;
}
/**
*
* Skipping field number 3 to maintain backward compatibility. It was used before for the primary account.
*
*
* optional string affiliation = 4;
*/
public Builder clearAffiliation() {
affiliation_ = getDefaultInstance().getAffiliation();
onChanged();
return this;
}
/**
*
* Skipping field number 3 to maintain backward compatibility. It was used before for the primary account.
*
*
* optional string affiliation = 4;
*/
public Builder setAffiliationBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
affiliation_ = value;
onChanged();
return this;
}
private org.hyperledger.protos.Ca.Registrar registrar_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Registrar, org.hyperledger.protos.Ca.Registrar.Builder, org.hyperledger.protos.Ca.RegistrarOrBuilder> registrarBuilder_;
/**
* optional .protos.Registrar registrar = 5;
*/
public boolean hasRegistrar() {
return registrarBuilder_ != null || registrar_ != null;
}
/**
* optional .protos.Registrar registrar = 5;
*/
public org.hyperledger.protos.Ca.Registrar getRegistrar() {
if (registrarBuilder_ == null) {
return registrar_ == null ? org.hyperledger.protos.Ca.Registrar.getDefaultInstance() : registrar_;
} else {
return registrarBuilder_.getMessage();
}
}
/**
* optional .protos.Registrar registrar = 5;
*/
public Builder setRegistrar(org.hyperledger.protos.Ca.Registrar value) {
if (registrarBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
registrar_ = value;
onChanged();
} else {
registrarBuilder_.setMessage(value);
}
return this;
}
/**
* optional .protos.Registrar registrar = 5;
*/
public Builder setRegistrar(
org.hyperledger.protos.Ca.Registrar.Builder builderForValue) {
if (registrarBuilder_ == null) {
registrar_ = builderForValue.build();
onChanged();
} else {
registrarBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .protos.Registrar registrar = 5;
*/
public Builder mergeRegistrar(org.hyperledger.protos.Ca.Registrar value) {
if (registrarBuilder_ == null) {
if (registrar_ != null) {
registrar_ =
org.hyperledger.protos.Ca.Registrar.newBuilder(registrar_).mergeFrom(value).buildPartial();
} else {
registrar_ = value;
}
onChanged();
} else {
registrarBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .protos.Registrar registrar = 5;
*/
public Builder clearRegistrar() {
if (registrarBuilder_ == null) {
registrar_ = null;
onChanged();
} else {
registrar_ = null;
registrarBuilder_ = null;
}
return this;
}
/**
* optional .protos.Registrar registrar = 5;
*/
public org.hyperledger.protos.Ca.Registrar.Builder getRegistrarBuilder() {
onChanged();
return getRegistrarFieldBuilder().getBuilder();
}
/**
* optional .protos.Registrar registrar = 5;
*/
public org.hyperledger.protos.Ca.RegistrarOrBuilder getRegistrarOrBuilder() {
if (registrarBuilder_ != null) {
return registrarBuilder_.getMessageOrBuilder();
} else {
return registrar_ == null ?
org.hyperledger.protos.Ca.Registrar.getDefaultInstance() : registrar_;
}
}
/**
* optional .protos.Registrar registrar = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Registrar, org.hyperledger.protos.Ca.Registrar.Builder, org.hyperledger.protos.Ca.RegistrarOrBuilder>
getRegistrarFieldBuilder() {
if (registrarBuilder_ == null) {
registrarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Registrar, org.hyperledger.protos.Ca.Registrar.Builder, org.hyperledger.protos.Ca.RegistrarOrBuilder>(
getRegistrar(),
getParentForChildren(),
isClean());
registrar_ = null;
}
return registrarBuilder_;
}
private org.hyperledger.protos.Ca.Signature sig_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder> sigBuilder_;
/**
* optional .protos.Signature sig = 6;
*/
public boolean hasSig() {
return sigBuilder_ != null || sig_ != null;
}
/**
* optional .protos.Signature sig = 6;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
if (sigBuilder_ == null) {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
} else {
return sigBuilder_.getMessage();
}
}
/**
* optional .protos.Signature sig = 6;
*/
public Builder setSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sig_ = value;
onChanged();
} else {
sigBuilder_.setMessage(value);
}
return this;
}
/**
* optional .protos.Signature sig = 6;
*/
public Builder setSig(
org.hyperledger.protos.Ca.Signature.Builder builderForValue) {
if (sigBuilder_ == null) {
sig_ = builderForValue.build();
onChanged();
} else {
sigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .protos.Signature sig = 6;
*/
public Builder mergeSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (sig_ != null) {
sig_ =
org.hyperledger.protos.Ca.Signature.newBuilder(sig_).mergeFrom(value).buildPartial();
} else {
sig_ = value;
}
onChanged();
} else {
sigBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .protos.Signature sig = 6;
*/
public Builder clearSig() {
if (sigBuilder_ == null) {
sig_ = null;
onChanged();
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
/**
* optional .protos.Signature sig = 6;
*/
public org.hyperledger.protos.Ca.Signature.Builder getSigBuilder() {
onChanged();
return getSigFieldBuilder().getBuilder();
}
/**
* optional .protos.Signature sig = 6;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
if (sigBuilder_ != null) {
return sigBuilder_.getMessageOrBuilder();
} else {
return sig_ == null ?
org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
}
/**
* optional .protos.Signature sig = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>
getSigFieldBuilder() {
if (sigBuilder_ == null) {
sigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>(
getSig(),
getParentForChildren(),
isClean());
sig_ = null;
}
return sigBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.RegisterUserReq)
}
// @@protoc_insertion_point(class_scope:protos.RegisterUserReq)
private static final org.hyperledger.protos.Ca.RegisterUserReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.RegisterUserReq();
}
public static org.hyperledger.protos.Ca.RegisterUserReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public RegisterUserReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RegisterUserReq(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.RegisterUserReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ReadUserSetReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.ReadUserSetReq)
com.google.protobuf.MessageOrBuilder {
/**
* optional .protos.Identity req = 1;
*/
boolean hasReq();
/**
* optional .protos.Identity req = 1;
*/
org.hyperledger.protos.Ca.Identity getReq();
/**
* optional .protos.Identity req = 1;
*/
org.hyperledger.protos.Ca.IdentityOrBuilder getReqOrBuilder();
/**
*
* bitmask
*
*
* optional .protos.Role role = 2;
*/
int getRoleValue();
/**
*
* bitmask
*
*
* optional .protos.Role role = 2;
*/
org.hyperledger.protos.Ca.Role getRole();
/**
*
* sign(priv, req | id | role)
*
*
* optional .protos.Signature sig = 3;
*/
boolean hasSig();
/**
*
* sign(priv, req | id | role)
*
*
* optional .protos.Signature sig = 3;
*/
org.hyperledger.protos.Ca.Signature getSig();
/**
*
* sign(priv, req | id | role)
*
*
* optional .protos.Signature sig = 3;
*/
org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder();
}
/**
* Protobuf type {@code protos.ReadUserSetReq}
*/
public static final class ReadUserSetReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.ReadUserSetReq)
ReadUserSetReqOrBuilder {
// Use ReadUserSetReq.newBuilder() to construct.
private ReadUserSetReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReadUserSetReq() {
role_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ReadUserSetReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
org.hyperledger.protos.Ca.Identity.Builder subBuilder = null;
if (req_ != null) {
subBuilder = req_.toBuilder();
}
req_ = input.readMessage(org.hyperledger.protos.Ca.Identity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(req_);
req_ = subBuilder.buildPartial();
}
break;
}
case 16: {
int rawValue = input.readEnum();
role_ = rawValue;
break;
}
case 26: {
org.hyperledger.protos.Ca.Signature.Builder subBuilder = null;
if (sig_ != null) {
subBuilder = sig_.toBuilder();
}
sig_ = input.readMessage(org.hyperledger.protos.Ca.Signature.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sig_);
sig_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_ReadUserSetReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_ReadUserSetReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.ReadUserSetReq.class, org.hyperledger.protos.Ca.ReadUserSetReq.Builder.class);
}
public static final int REQ_FIELD_NUMBER = 1;
private org.hyperledger.protos.Ca.Identity req_;
/**
* optional .protos.Identity req = 1;
*/
public boolean hasReq() {
return req_ != null;
}
/**
* optional .protos.Identity req = 1;
*/
public org.hyperledger.protos.Ca.Identity getReq() {
return req_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : req_;
}
/**
* optional .protos.Identity req = 1;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getReqOrBuilder() {
return getReq();
}
public static final int ROLE_FIELD_NUMBER = 2;
private int role_;
/**
*
* bitmask
*
*
* optional .protos.Role role = 2;
*/
public int getRoleValue() {
return role_;
}
/**
*
* bitmask
*
*
* optional .protos.Role role = 2;
*/
public org.hyperledger.protos.Ca.Role getRole() {
org.hyperledger.protos.Ca.Role result = org.hyperledger.protos.Ca.Role.valueOf(role_);
return result == null ? org.hyperledger.protos.Ca.Role.UNRECOGNIZED : result;
}
public static final int SIG_FIELD_NUMBER = 3;
private org.hyperledger.protos.Ca.Signature sig_;
/**
*
* sign(priv, req | id | role)
*
*
* optional .protos.Signature sig = 3;
*/
public boolean hasSig() {
return sig_ != null;
}
/**
*
* sign(priv, req | id | role)
*
*
* optional .protos.Signature sig = 3;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
/**
*
* sign(priv, req | id | role)
*
*
* optional .protos.Signature sig = 3;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
return getSig();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (req_ != null) {
output.writeMessage(1, getReq());
}
if (role_ != org.hyperledger.protos.Ca.Role.NONE.getNumber()) {
output.writeEnum(2, role_);
}
if (sig_ != null) {
output.writeMessage(3, getSig());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (req_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getReq());
}
if (role_ != org.hyperledger.protos.Ca.Role.NONE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, role_);
}
if (sig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getSig());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.ReadUserSetReq)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.ReadUserSetReq other = (org.hyperledger.protos.Ca.ReadUserSetReq) obj;
boolean result = true;
result = result && (hasReq() == other.hasReq());
if (hasReq()) {
result = result && getReq()
.equals(other.getReq());
}
result = result && role_ == other.role_;
result = result && (hasSig() == other.hasSig());
if (hasSig()) {
result = result && getSig()
.equals(other.getSig());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasReq()) {
hash = (37 * hash) + REQ_FIELD_NUMBER;
hash = (53 * hash) + getReq().hashCode();
}
hash = (37 * hash) + ROLE_FIELD_NUMBER;
hash = (53 * hash) + role_;
if (hasSig()) {
hash = (37 * hash) + SIG_FIELD_NUMBER;
hash = (53 * hash) + getSig().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.ReadUserSetReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.ReadUserSetReq 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.protos.Ca.ReadUserSetReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.ReadUserSetReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.ReadUserSetReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ReadUserSetReq 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.protos.Ca.ReadUserSetReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ReadUserSetReq 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.protos.Ca.ReadUserSetReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ReadUserSetReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.ReadUserSetReq prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.ReadUserSetReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.ReadUserSetReq)
org.hyperledger.protos.Ca.ReadUserSetReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_ReadUserSetReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_ReadUserSetReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.ReadUserSetReq.class, org.hyperledger.protos.Ca.ReadUserSetReq.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.ReadUserSetReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (reqBuilder_ == null) {
req_ = null;
} else {
req_ = null;
reqBuilder_ = null;
}
role_ = 0;
if (sigBuilder_ == null) {
sig_ = null;
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_ReadUserSetReq_descriptor;
}
public org.hyperledger.protos.Ca.ReadUserSetReq getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.ReadUserSetReq.getDefaultInstance();
}
public org.hyperledger.protos.Ca.ReadUserSetReq build() {
org.hyperledger.protos.Ca.ReadUserSetReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.ReadUserSetReq buildPartial() {
org.hyperledger.protos.Ca.ReadUserSetReq result = new org.hyperledger.protos.Ca.ReadUserSetReq(this);
if (reqBuilder_ == null) {
result.req_ = req_;
} else {
result.req_ = reqBuilder_.build();
}
result.role_ = role_;
if (sigBuilder_ == null) {
result.sig_ = sig_;
} else {
result.sig_ = sigBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.ReadUserSetReq) {
return mergeFrom((org.hyperledger.protos.Ca.ReadUserSetReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.ReadUserSetReq other) {
if (other == org.hyperledger.protos.Ca.ReadUserSetReq.getDefaultInstance()) return this;
if (other.hasReq()) {
mergeReq(other.getReq());
}
if (other.role_ != 0) {
setRoleValue(other.getRoleValue());
}
if (other.hasSig()) {
mergeSig(other.getSig());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.ReadUserSetReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.ReadUserSetReq) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.hyperledger.protos.Ca.Identity req_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder> reqBuilder_;
/**
* optional .protos.Identity req = 1;
*/
public boolean hasReq() {
return reqBuilder_ != null || req_ != null;
}
/**
* optional .protos.Identity req = 1;
*/
public org.hyperledger.protos.Ca.Identity getReq() {
if (reqBuilder_ == null) {
return req_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : req_;
} else {
return reqBuilder_.getMessage();
}
}
/**
* optional .protos.Identity req = 1;
*/
public Builder setReq(org.hyperledger.protos.Ca.Identity value) {
if (reqBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
req_ = value;
onChanged();
} else {
reqBuilder_.setMessage(value);
}
return this;
}
/**
* optional .protos.Identity req = 1;
*/
public Builder setReq(
org.hyperledger.protos.Ca.Identity.Builder builderForValue) {
if (reqBuilder_ == null) {
req_ = builderForValue.build();
onChanged();
} else {
reqBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .protos.Identity req = 1;
*/
public Builder mergeReq(org.hyperledger.protos.Ca.Identity value) {
if (reqBuilder_ == null) {
if (req_ != null) {
req_ =
org.hyperledger.protos.Ca.Identity.newBuilder(req_).mergeFrom(value).buildPartial();
} else {
req_ = value;
}
onChanged();
} else {
reqBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .protos.Identity req = 1;
*/
public Builder clearReq() {
if (reqBuilder_ == null) {
req_ = null;
onChanged();
} else {
req_ = null;
reqBuilder_ = null;
}
return this;
}
/**
* optional .protos.Identity req = 1;
*/
public org.hyperledger.protos.Ca.Identity.Builder getReqBuilder() {
onChanged();
return getReqFieldBuilder().getBuilder();
}
/**
* optional .protos.Identity req = 1;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getReqOrBuilder() {
if (reqBuilder_ != null) {
return reqBuilder_.getMessageOrBuilder();
} else {
return req_ == null ?
org.hyperledger.protos.Ca.Identity.getDefaultInstance() : req_;
}
}
/**
* optional .protos.Identity req = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>
getReqFieldBuilder() {
if (reqBuilder_ == null) {
reqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>(
getReq(),
getParentForChildren(),
isClean());
req_ = null;
}
return reqBuilder_;
}
private int role_ = 0;
/**
*
* bitmask
*
*
* optional .protos.Role role = 2;
*/
public int getRoleValue() {
return role_;
}
/**
*
* bitmask
*
*
* optional .protos.Role role = 2;
*/
public Builder setRoleValue(int value) {
role_ = value;
onChanged();
return this;
}
/**
*
* bitmask
*
*
* optional .protos.Role role = 2;
*/
public org.hyperledger.protos.Ca.Role getRole() {
org.hyperledger.protos.Ca.Role result = org.hyperledger.protos.Ca.Role.valueOf(role_);
return result == null ? org.hyperledger.protos.Ca.Role.UNRECOGNIZED : result;
}
/**
*
* bitmask
*
*
* optional .protos.Role role = 2;
*/
public Builder setRole(org.hyperledger.protos.Ca.Role value) {
if (value == null) {
throw new NullPointerException();
}
role_ = value.getNumber();
onChanged();
return this;
}
/**
*
* bitmask
*
*
* optional .protos.Role role = 2;
*/
public Builder clearRole() {
role_ = 0;
onChanged();
return this;
}
private org.hyperledger.protos.Ca.Signature sig_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder> sigBuilder_;
/**
*
* sign(priv, req | id | role)
*
*
* optional .protos.Signature sig = 3;
*/
public boolean hasSig() {
return sigBuilder_ != null || sig_ != null;
}
/**
*
* sign(priv, req | id | role)
*
*
* optional .protos.Signature sig = 3;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
if (sigBuilder_ == null) {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
} else {
return sigBuilder_.getMessage();
}
}
/**
*
* sign(priv, req | id | role)
*
*
* optional .protos.Signature sig = 3;
*/
public Builder setSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sig_ = value;
onChanged();
} else {
sigBuilder_.setMessage(value);
}
return this;
}
/**
*
* sign(priv, req | id | role)
*
*
* optional .protos.Signature sig = 3;
*/
public Builder setSig(
org.hyperledger.protos.Ca.Signature.Builder builderForValue) {
if (sigBuilder_ == null) {
sig_ = builderForValue.build();
onChanged();
} else {
sigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* sign(priv, req | id | role)
*
*
* optional .protos.Signature sig = 3;
*/
public Builder mergeSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (sig_ != null) {
sig_ =
org.hyperledger.protos.Ca.Signature.newBuilder(sig_).mergeFrom(value).buildPartial();
} else {
sig_ = value;
}
onChanged();
} else {
sigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* sign(priv, req | id | role)
*
*
* optional .protos.Signature sig = 3;
*/
public Builder clearSig() {
if (sigBuilder_ == null) {
sig_ = null;
onChanged();
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
/**
*
* sign(priv, req | id | role)
*
*
* optional .protos.Signature sig = 3;
*/
public org.hyperledger.protos.Ca.Signature.Builder getSigBuilder() {
onChanged();
return getSigFieldBuilder().getBuilder();
}
/**
*
* sign(priv, req | id | role)
*
*
* optional .protos.Signature sig = 3;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
if (sigBuilder_ != null) {
return sigBuilder_.getMessageOrBuilder();
} else {
return sig_ == null ?
org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
}
/**
*
* sign(priv, req | id | role)
*
*
* optional .protos.Signature sig = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>
getSigFieldBuilder() {
if (sigBuilder_ == null) {
sigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>(
getSig(),
getParentForChildren(),
isClean());
sig_ = null;
}
return sigBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.ReadUserSetReq)
}
// @@protoc_insertion_point(class_scope:protos.ReadUserSetReq)
private static final org.hyperledger.protos.Ca.ReadUserSetReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.ReadUserSetReq();
}
public static org.hyperledger.protos.Ca.ReadUserSetReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ReadUserSetReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ReadUserSetReq(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.ReadUserSetReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UserOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.User)
com.google.protobuf.MessageOrBuilder {
/**
* optional .protos.Identity id = 1;
*/
boolean hasId();
/**
* optional .protos.Identity id = 1;
*/
org.hyperledger.protos.Ca.Identity getId();
/**
* optional .protos.Identity id = 1;
*/
org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder();
/**
* optional .protos.Role role = 2;
*/
int getRoleValue();
/**
* optional .protos.Role role = 2;
*/
org.hyperledger.protos.Ca.Role getRole();
}
/**
* Protobuf type {@code protos.User}
*/
public static final class User extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.User)
UserOrBuilder {
// Use User.newBuilder() to construct.
private User(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private User() {
role_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private User(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
org.hyperledger.protos.Ca.Identity.Builder subBuilder = null;
if (id_ != null) {
subBuilder = id_.toBuilder();
}
id_ = input.readMessage(org.hyperledger.protos.Ca.Identity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(id_);
id_ = subBuilder.buildPartial();
}
break;
}
case 16: {
int rawValue = input.readEnum();
role_ = rawValue;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_User_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_User_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.User.class, org.hyperledger.protos.Ca.User.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private org.hyperledger.protos.Ca.Identity id_;
/**
* optional .protos.Identity id = 1;
*/
public boolean hasId() {
return id_ != null;
}
/**
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity getId() {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
/**
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
return getId();
}
public static final int ROLE_FIELD_NUMBER = 2;
private int role_;
/**
* optional .protos.Role role = 2;
*/
public int getRoleValue() {
return role_;
}
/**
* optional .protos.Role role = 2;
*/
public org.hyperledger.protos.Ca.Role getRole() {
org.hyperledger.protos.Ca.Role result = org.hyperledger.protos.Ca.Role.valueOf(role_);
return result == null ? org.hyperledger.protos.Ca.Role.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (id_ != null) {
output.writeMessage(1, getId());
}
if (role_ != org.hyperledger.protos.Ca.Role.NONE.getNumber()) {
output.writeEnum(2, role_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getId());
}
if (role_ != org.hyperledger.protos.Ca.Role.NONE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, role_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.User)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.User other = (org.hyperledger.protos.Ca.User) obj;
boolean result = true;
result = result && (hasId() == other.hasId());
if (hasId()) {
result = result && getId()
.equals(other.getId());
}
result = result && role_ == other.role_;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
hash = (37 * hash) + ROLE_FIELD_NUMBER;
hash = (53 * hash) + role_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.User parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.User 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.protos.Ca.User parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.User parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.User parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.User 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.protos.Ca.User parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.User 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.protos.Ca.User parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.User parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.User prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.User}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.User)
org.hyperledger.protos.Ca.UserOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_User_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_User_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.User.class, org.hyperledger.protos.Ca.User.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.User.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (idBuilder_ == null) {
id_ = null;
} else {
id_ = null;
idBuilder_ = null;
}
role_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_User_descriptor;
}
public org.hyperledger.protos.Ca.User getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.User.getDefaultInstance();
}
public org.hyperledger.protos.Ca.User build() {
org.hyperledger.protos.Ca.User result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.User buildPartial() {
org.hyperledger.protos.Ca.User result = new org.hyperledger.protos.Ca.User(this);
if (idBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
result.role_ = role_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.User) {
return mergeFrom((org.hyperledger.protos.Ca.User)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.User other) {
if (other == org.hyperledger.protos.Ca.User.getDefaultInstance()) return this;
if (other.hasId()) {
mergeId(other.getId());
}
if (other.role_ != 0) {
setRoleValue(other.getRoleValue());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.User parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.User) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.hyperledger.protos.Ca.Identity id_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder> idBuilder_;
/**
* optional .protos.Identity id = 1;
*/
public boolean hasId() {
return idBuilder_ != null || id_ != null;
}
/**
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity getId() {
if (idBuilder_ == null) {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
} else {
return idBuilder_.getMessage();
}
}
/**
* optional .protos.Identity id = 1;
*/
public Builder setId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
idBuilder_.setMessage(value);
}
return this;
}
/**
* optional .protos.Identity id = 1;
*/
public Builder setId(
org.hyperledger.protos.Ca.Identity.Builder builderForValue) {
if (idBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
idBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .protos.Identity id = 1;
*/
public Builder mergeId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (id_ != null) {
id_ =
org.hyperledger.protos.Ca.Identity.newBuilder(id_).mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
idBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .protos.Identity id = 1;
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = null;
onChanged();
} else {
id_ = null;
idBuilder_ = null;
}
return this;
}
/**
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity.Builder getIdBuilder() {
onChanged();
return getIdFieldBuilder().getBuilder();
}
/**
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
return id_ == null ?
org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
}
/**
* optional .protos.Identity id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>(
getId(),
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
private int role_ = 0;
/**
* optional .protos.Role role = 2;
*/
public int getRoleValue() {
return role_;
}
/**
* optional .protos.Role role = 2;
*/
public Builder setRoleValue(int value) {
role_ = value;
onChanged();
return this;
}
/**
* optional .protos.Role role = 2;
*/
public org.hyperledger.protos.Ca.Role getRole() {
org.hyperledger.protos.Ca.Role result = org.hyperledger.protos.Ca.Role.valueOf(role_);
return result == null ? org.hyperledger.protos.Ca.Role.UNRECOGNIZED : result;
}
/**
* optional .protos.Role role = 2;
*/
public Builder setRole(org.hyperledger.protos.Ca.Role value) {
if (value == null) {
throw new NullPointerException();
}
role_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .protos.Role role = 2;
*/
public Builder clearRole() {
role_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.User)
}
// @@protoc_insertion_point(class_scope:protos.User)
private static final org.hyperledger.protos.Ca.User DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.User();
}
public static org.hyperledger.protos.Ca.User getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public User parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new User(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.User getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UserSetOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.UserSet)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .protos.User users = 1;
*/
java.util.List
getUsersList();
/**
* repeated .protos.User users = 1;
*/
org.hyperledger.protos.Ca.User getUsers(int index);
/**
* repeated .protos.User users = 1;
*/
int getUsersCount();
/**
* repeated .protos.User users = 1;
*/
java.util.List extends org.hyperledger.protos.Ca.UserOrBuilder>
getUsersOrBuilderList();
/**
* repeated .protos.User users = 1;
*/
org.hyperledger.protos.Ca.UserOrBuilder getUsersOrBuilder(
int index);
}
/**
* Protobuf type {@code protos.UserSet}
*/
public static final class UserSet extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.UserSet)
UserSetOrBuilder {
// Use UserSet.newBuilder() to construct.
private UserSet(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UserSet() {
users_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private UserSet(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
users_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
users_.add(
input.readMessage(org.hyperledger.protos.Ca.User.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
users_ = java.util.Collections.unmodifiableList(users_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_UserSet_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_UserSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.UserSet.class, org.hyperledger.protos.Ca.UserSet.Builder.class);
}
public static final int USERS_FIELD_NUMBER = 1;
private java.util.List users_;
/**
* repeated .protos.User users = 1;
*/
public java.util.List getUsersList() {
return users_;
}
/**
* repeated .protos.User users = 1;
*/
public java.util.List extends org.hyperledger.protos.Ca.UserOrBuilder>
getUsersOrBuilderList() {
return users_;
}
/**
* repeated .protos.User users = 1;
*/
public int getUsersCount() {
return users_.size();
}
/**
* repeated .protos.User users = 1;
*/
public org.hyperledger.protos.Ca.User getUsers(int index) {
return users_.get(index);
}
/**
* repeated .protos.User users = 1;
*/
public org.hyperledger.protos.Ca.UserOrBuilder getUsersOrBuilder(
int index) {
return users_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < users_.size(); i++) {
output.writeMessage(1, users_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < users_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, users_.get(i));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.UserSet)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.UserSet other = (org.hyperledger.protos.Ca.UserSet) obj;
boolean result = true;
result = result && getUsersList()
.equals(other.getUsersList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getUsersCount() > 0) {
hash = (37 * hash) + USERS_FIELD_NUMBER;
hash = (53 * hash) + getUsersList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.UserSet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.UserSet 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.protos.Ca.UserSet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.UserSet parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.UserSet parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.UserSet 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.protos.Ca.UserSet parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.UserSet 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.protos.Ca.UserSet parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.UserSet parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.UserSet prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.UserSet}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.UserSet)
org.hyperledger.protos.Ca.UserSetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_UserSet_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_UserSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.UserSet.class, org.hyperledger.protos.Ca.UserSet.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.UserSet.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getUsersFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (usersBuilder_ == null) {
users_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
usersBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_UserSet_descriptor;
}
public org.hyperledger.protos.Ca.UserSet getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.UserSet.getDefaultInstance();
}
public org.hyperledger.protos.Ca.UserSet build() {
org.hyperledger.protos.Ca.UserSet result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.UserSet buildPartial() {
org.hyperledger.protos.Ca.UserSet result = new org.hyperledger.protos.Ca.UserSet(this);
int from_bitField0_ = bitField0_;
if (usersBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
users_ = java.util.Collections.unmodifiableList(users_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.users_ = users_;
} else {
result.users_ = usersBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.UserSet) {
return mergeFrom((org.hyperledger.protos.Ca.UserSet)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.UserSet other) {
if (other == org.hyperledger.protos.Ca.UserSet.getDefaultInstance()) return this;
if (usersBuilder_ == null) {
if (!other.users_.isEmpty()) {
if (users_.isEmpty()) {
users_ = other.users_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureUsersIsMutable();
users_.addAll(other.users_);
}
onChanged();
}
} else {
if (!other.users_.isEmpty()) {
if (usersBuilder_.isEmpty()) {
usersBuilder_.dispose();
usersBuilder_ = null;
users_ = other.users_;
bitField0_ = (bitField0_ & ~0x00000001);
usersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUsersFieldBuilder() : null;
} else {
usersBuilder_.addAllMessages(other.users_);
}
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.UserSet parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.UserSet) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List users_ =
java.util.Collections.emptyList();
private void ensureUsersIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
users_ = new java.util.ArrayList(users_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.hyperledger.protos.Ca.User, org.hyperledger.protos.Ca.User.Builder, org.hyperledger.protos.Ca.UserOrBuilder> usersBuilder_;
/**
* repeated .protos.User users = 1;
*/
public java.util.List getUsersList() {
if (usersBuilder_ == null) {
return java.util.Collections.unmodifiableList(users_);
} else {
return usersBuilder_.getMessageList();
}
}
/**
* repeated .protos.User users = 1;
*/
public int getUsersCount() {
if (usersBuilder_ == null) {
return users_.size();
} else {
return usersBuilder_.getCount();
}
}
/**
* repeated .protos.User users = 1;
*/
public org.hyperledger.protos.Ca.User getUsers(int index) {
if (usersBuilder_ == null) {
return users_.get(index);
} else {
return usersBuilder_.getMessage(index);
}
}
/**
* repeated .protos.User users = 1;
*/
public Builder setUsers(
int index, org.hyperledger.protos.Ca.User value) {
if (usersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUsersIsMutable();
users_.set(index, value);
onChanged();
} else {
usersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protos.User users = 1;
*/
public Builder setUsers(
int index, org.hyperledger.protos.Ca.User.Builder builderForValue) {
if (usersBuilder_ == null) {
ensureUsersIsMutable();
users_.set(index, builderForValue.build());
onChanged();
} else {
usersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protos.User users = 1;
*/
public Builder addUsers(org.hyperledger.protos.Ca.User value) {
if (usersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUsersIsMutable();
users_.add(value);
onChanged();
} else {
usersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protos.User users = 1;
*/
public Builder addUsers(
int index, org.hyperledger.protos.Ca.User value) {
if (usersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUsersIsMutable();
users_.add(index, value);
onChanged();
} else {
usersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protos.User users = 1;
*/
public Builder addUsers(
org.hyperledger.protos.Ca.User.Builder builderForValue) {
if (usersBuilder_ == null) {
ensureUsersIsMutable();
users_.add(builderForValue.build());
onChanged();
} else {
usersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protos.User users = 1;
*/
public Builder addUsers(
int index, org.hyperledger.protos.Ca.User.Builder builderForValue) {
if (usersBuilder_ == null) {
ensureUsersIsMutable();
users_.add(index, builderForValue.build());
onChanged();
} else {
usersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protos.User users = 1;
*/
public Builder addAllUsers(
java.lang.Iterable extends org.hyperledger.protos.Ca.User> values) {
if (usersBuilder_ == null) {
ensureUsersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, users_);
onChanged();
} else {
usersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protos.User users = 1;
*/
public Builder clearUsers() {
if (usersBuilder_ == null) {
users_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
usersBuilder_.clear();
}
return this;
}
/**
* repeated .protos.User users = 1;
*/
public Builder removeUsers(int index) {
if (usersBuilder_ == null) {
ensureUsersIsMutable();
users_.remove(index);
onChanged();
} else {
usersBuilder_.remove(index);
}
return this;
}
/**
* repeated .protos.User users = 1;
*/
public org.hyperledger.protos.Ca.User.Builder getUsersBuilder(
int index) {
return getUsersFieldBuilder().getBuilder(index);
}
/**
* repeated .protos.User users = 1;
*/
public org.hyperledger.protos.Ca.UserOrBuilder getUsersOrBuilder(
int index) {
if (usersBuilder_ == null) {
return users_.get(index); } else {
return usersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protos.User users = 1;
*/
public java.util.List extends org.hyperledger.protos.Ca.UserOrBuilder>
getUsersOrBuilderList() {
if (usersBuilder_ != null) {
return usersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(users_);
}
}
/**
* repeated .protos.User users = 1;
*/
public org.hyperledger.protos.Ca.User.Builder addUsersBuilder() {
return getUsersFieldBuilder().addBuilder(
org.hyperledger.protos.Ca.User.getDefaultInstance());
}
/**
* repeated .protos.User users = 1;
*/
public org.hyperledger.protos.Ca.User.Builder addUsersBuilder(
int index) {
return getUsersFieldBuilder().addBuilder(
index, org.hyperledger.protos.Ca.User.getDefaultInstance());
}
/**
* repeated .protos.User users = 1;
*/
public java.util.List
getUsersBuilderList() {
return getUsersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.hyperledger.protos.Ca.User, org.hyperledger.protos.Ca.User.Builder, org.hyperledger.protos.Ca.UserOrBuilder>
getUsersFieldBuilder() {
if (usersBuilder_ == null) {
usersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.hyperledger.protos.Ca.User, org.hyperledger.protos.Ca.User.Builder, org.hyperledger.protos.Ca.UserOrBuilder>(
users_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
users_ = null;
}
return usersBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.UserSet)
}
// @@protoc_insertion_point(class_scope:protos.UserSet)
private static final org.hyperledger.protos.Ca.UserSet DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.UserSet();
}
public static org.hyperledger.protos.Ca.UserSet getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public UserSet parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UserSet(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.UserSet getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ECertCreateReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.ECertCreateReq)
com.google.protobuf.MessageOrBuilder {
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
boolean hasTs();
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
com.google.protobuf.Timestamp getTs();
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
com.google.protobuf.TimestampOrBuilder getTsOrBuilder();
/**
* optional .protos.Identity id = 2;
*/
boolean hasId();
/**
* optional .protos.Identity id = 2;
*/
org.hyperledger.protos.Ca.Identity getId();
/**
* optional .protos.Identity id = 2;
*/
org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder();
/**
* optional .protos.Token tok = 3;
*/
boolean hasTok();
/**
* optional .protos.Token tok = 3;
*/
org.hyperledger.protos.Ca.Token getTok();
/**
* optional .protos.Token tok = 3;
*/
org.hyperledger.protos.Ca.TokenOrBuilder getTokOrBuilder();
/**
* optional .protos.PublicKey sign = 4;
*/
boolean hasSign();
/**
* optional .protos.PublicKey sign = 4;
*/
org.hyperledger.protos.Ca.PublicKey getSign();
/**
* optional .protos.PublicKey sign = 4;
*/
org.hyperledger.protos.Ca.PublicKeyOrBuilder getSignOrBuilder();
/**
* optional .protos.PublicKey enc = 5;
*/
boolean hasEnc();
/**
* optional .protos.PublicKey enc = 5;
*/
org.hyperledger.protos.Ca.PublicKey getEnc();
/**
* optional .protos.PublicKey enc = 5;
*/
org.hyperledger.protos.Ca.PublicKeyOrBuilder getEncOrBuilder();
/**
*
* sign(priv, ts | id | tok | sign | enc)
*
*
* optional .protos.Signature sig = 6;
*/
boolean hasSig();
/**
*
* sign(priv, ts | id | tok | sign | enc)
*
*
* optional .protos.Signature sig = 6;
*/
org.hyperledger.protos.Ca.Signature getSig();
/**
*
* sign(priv, ts | id | tok | sign | enc)
*
*
* optional .protos.Signature sig = 6;
*/
org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder();
}
/**
*
* Certificate requests.
*
*
* Protobuf type {@code protos.ECertCreateReq}
*/
public static final class ECertCreateReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.ECertCreateReq)
ECertCreateReqOrBuilder {
// Use ECertCreateReq.newBuilder() to construct.
private ECertCreateReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ECertCreateReq() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ECertCreateReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (ts_ != null) {
subBuilder = ts_.toBuilder();
}
ts_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ts_);
ts_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.hyperledger.protos.Ca.Identity.Builder subBuilder = null;
if (id_ != null) {
subBuilder = id_.toBuilder();
}
id_ = input.readMessage(org.hyperledger.protos.Ca.Identity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(id_);
id_ = subBuilder.buildPartial();
}
break;
}
case 26: {
org.hyperledger.protos.Ca.Token.Builder subBuilder = null;
if (tok_ != null) {
subBuilder = tok_.toBuilder();
}
tok_ = input.readMessage(org.hyperledger.protos.Ca.Token.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tok_);
tok_ = subBuilder.buildPartial();
}
break;
}
case 34: {
org.hyperledger.protos.Ca.PublicKey.Builder subBuilder = null;
if (sign_ != null) {
subBuilder = sign_.toBuilder();
}
sign_ = input.readMessage(org.hyperledger.protos.Ca.PublicKey.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sign_);
sign_ = subBuilder.buildPartial();
}
break;
}
case 42: {
org.hyperledger.protos.Ca.PublicKey.Builder subBuilder = null;
if (enc_ != null) {
subBuilder = enc_.toBuilder();
}
enc_ = input.readMessage(org.hyperledger.protos.Ca.PublicKey.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(enc_);
enc_ = subBuilder.buildPartial();
}
break;
}
case 50: {
org.hyperledger.protos.Ca.Signature.Builder subBuilder = null;
if (sig_ != null) {
subBuilder = sig_.toBuilder();
}
sig_ = input.readMessage(org.hyperledger.protos.Ca.Signature.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sig_);
sig_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_ECertCreateReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_ECertCreateReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.ECertCreateReq.class, org.hyperledger.protos.Ca.ECertCreateReq.Builder.class);
}
public static final int TS_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp ts_;
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public boolean hasTs() {
return ts_ != null;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.Timestamp getTs() {
return ts_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.TimestampOrBuilder getTsOrBuilder() {
return getTs();
}
public static final int ID_FIELD_NUMBER = 2;
private org.hyperledger.protos.Ca.Identity id_;
/**
* optional .protos.Identity id = 2;
*/
public boolean hasId() {
return id_ != null;
}
/**
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.Identity getId() {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
/**
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
return getId();
}
public static final int TOK_FIELD_NUMBER = 3;
private org.hyperledger.protos.Ca.Token tok_;
/**
* optional .protos.Token tok = 3;
*/
public boolean hasTok() {
return tok_ != null;
}
/**
* optional .protos.Token tok = 3;
*/
public org.hyperledger.protos.Ca.Token getTok() {
return tok_ == null ? org.hyperledger.protos.Ca.Token.getDefaultInstance() : tok_;
}
/**
* optional .protos.Token tok = 3;
*/
public org.hyperledger.protos.Ca.TokenOrBuilder getTokOrBuilder() {
return getTok();
}
public static final int SIGN_FIELD_NUMBER = 4;
private org.hyperledger.protos.Ca.PublicKey sign_;
/**
* optional .protos.PublicKey sign = 4;
*/
public boolean hasSign() {
return sign_ != null;
}
/**
* optional .protos.PublicKey sign = 4;
*/
public org.hyperledger.protos.Ca.PublicKey getSign() {
return sign_ == null ? org.hyperledger.protos.Ca.PublicKey.getDefaultInstance() : sign_;
}
/**
* optional .protos.PublicKey sign = 4;
*/
public org.hyperledger.protos.Ca.PublicKeyOrBuilder getSignOrBuilder() {
return getSign();
}
public static final int ENC_FIELD_NUMBER = 5;
private org.hyperledger.protos.Ca.PublicKey enc_;
/**
* optional .protos.PublicKey enc = 5;
*/
public boolean hasEnc() {
return enc_ != null;
}
/**
* optional .protos.PublicKey enc = 5;
*/
public org.hyperledger.protos.Ca.PublicKey getEnc() {
return enc_ == null ? org.hyperledger.protos.Ca.PublicKey.getDefaultInstance() : enc_;
}
/**
* optional .protos.PublicKey enc = 5;
*/
public org.hyperledger.protos.Ca.PublicKeyOrBuilder getEncOrBuilder() {
return getEnc();
}
public static final int SIG_FIELD_NUMBER = 6;
private org.hyperledger.protos.Ca.Signature sig_;
/**
*
* sign(priv, ts | id | tok | sign | enc)
*
*
* optional .protos.Signature sig = 6;
*/
public boolean hasSig() {
return sig_ != null;
}
/**
*
* sign(priv, ts | id | tok | sign | enc)
*
*
* optional .protos.Signature sig = 6;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
/**
*
* sign(priv, ts | id | tok | sign | enc)
*
*
* optional .protos.Signature sig = 6;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
return getSig();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (ts_ != null) {
output.writeMessage(1, getTs());
}
if (id_ != null) {
output.writeMessage(2, getId());
}
if (tok_ != null) {
output.writeMessage(3, getTok());
}
if (sign_ != null) {
output.writeMessage(4, getSign());
}
if (enc_ != null) {
output.writeMessage(5, getEnc());
}
if (sig_ != null) {
output.writeMessage(6, getSig());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (ts_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTs());
}
if (id_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getId());
}
if (tok_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTok());
}
if (sign_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getSign());
}
if (enc_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getEnc());
}
if (sig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getSig());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.ECertCreateReq)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.ECertCreateReq other = (org.hyperledger.protos.Ca.ECertCreateReq) obj;
boolean result = true;
result = result && (hasTs() == other.hasTs());
if (hasTs()) {
result = result && getTs()
.equals(other.getTs());
}
result = result && (hasId() == other.hasId());
if (hasId()) {
result = result && getId()
.equals(other.getId());
}
result = result && (hasTok() == other.hasTok());
if (hasTok()) {
result = result && getTok()
.equals(other.getTok());
}
result = result && (hasSign() == other.hasSign());
if (hasSign()) {
result = result && getSign()
.equals(other.getSign());
}
result = result && (hasEnc() == other.hasEnc());
if (hasEnc()) {
result = result && getEnc()
.equals(other.getEnc());
}
result = result && (hasSig() == other.hasSig());
if (hasSig()) {
result = result && getSig()
.equals(other.getSig());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasTs()) {
hash = (37 * hash) + TS_FIELD_NUMBER;
hash = (53 * hash) + getTs().hashCode();
}
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
if (hasTok()) {
hash = (37 * hash) + TOK_FIELD_NUMBER;
hash = (53 * hash) + getTok().hashCode();
}
if (hasSign()) {
hash = (37 * hash) + SIGN_FIELD_NUMBER;
hash = (53 * hash) + getSign().hashCode();
}
if (hasEnc()) {
hash = (37 * hash) + ENC_FIELD_NUMBER;
hash = (53 * hash) + getEnc().hashCode();
}
if (hasSig()) {
hash = (37 * hash) + SIG_FIELD_NUMBER;
hash = (53 * hash) + getSig().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.ECertCreateReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.ECertCreateReq 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.protos.Ca.ECertCreateReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.ECertCreateReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.ECertCreateReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ECertCreateReq 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.protos.Ca.ECertCreateReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ECertCreateReq 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.protos.Ca.ECertCreateReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ECertCreateReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.ECertCreateReq prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Certificate requests.
*
*
* Protobuf type {@code protos.ECertCreateReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.ECertCreateReq)
org.hyperledger.protos.Ca.ECertCreateReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_ECertCreateReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_ECertCreateReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.ECertCreateReq.class, org.hyperledger.protos.Ca.ECertCreateReq.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.ECertCreateReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (tsBuilder_ == null) {
ts_ = null;
} else {
ts_ = null;
tsBuilder_ = null;
}
if (idBuilder_ == null) {
id_ = null;
} else {
id_ = null;
idBuilder_ = null;
}
if (tokBuilder_ == null) {
tok_ = null;
} else {
tok_ = null;
tokBuilder_ = null;
}
if (signBuilder_ == null) {
sign_ = null;
} else {
sign_ = null;
signBuilder_ = null;
}
if (encBuilder_ == null) {
enc_ = null;
} else {
enc_ = null;
encBuilder_ = null;
}
if (sigBuilder_ == null) {
sig_ = null;
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_ECertCreateReq_descriptor;
}
public org.hyperledger.protos.Ca.ECertCreateReq getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.ECertCreateReq.getDefaultInstance();
}
public org.hyperledger.protos.Ca.ECertCreateReq build() {
org.hyperledger.protos.Ca.ECertCreateReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.ECertCreateReq buildPartial() {
org.hyperledger.protos.Ca.ECertCreateReq result = new org.hyperledger.protos.Ca.ECertCreateReq(this);
if (tsBuilder_ == null) {
result.ts_ = ts_;
} else {
result.ts_ = tsBuilder_.build();
}
if (idBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
if (tokBuilder_ == null) {
result.tok_ = tok_;
} else {
result.tok_ = tokBuilder_.build();
}
if (signBuilder_ == null) {
result.sign_ = sign_;
} else {
result.sign_ = signBuilder_.build();
}
if (encBuilder_ == null) {
result.enc_ = enc_;
} else {
result.enc_ = encBuilder_.build();
}
if (sigBuilder_ == null) {
result.sig_ = sig_;
} else {
result.sig_ = sigBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.ECertCreateReq) {
return mergeFrom((org.hyperledger.protos.Ca.ECertCreateReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.ECertCreateReq other) {
if (other == org.hyperledger.protos.Ca.ECertCreateReq.getDefaultInstance()) return this;
if (other.hasTs()) {
mergeTs(other.getTs());
}
if (other.hasId()) {
mergeId(other.getId());
}
if (other.hasTok()) {
mergeTok(other.getTok());
}
if (other.hasSign()) {
mergeSign(other.getSign());
}
if (other.hasEnc()) {
mergeEnc(other.getEnc());
}
if (other.hasSig()) {
mergeSig(other.getSig());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.ECertCreateReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.ECertCreateReq) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.Timestamp ts_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> tsBuilder_;
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public boolean hasTs() {
return tsBuilder_ != null || ts_ != null;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.Timestamp getTs() {
if (tsBuilder_ == null) {
return ts_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
} else {
return tsBuilder_.getMessage();
}
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder setTs(com.google.protobuf.Timestamp value) {
if (tsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ts_ = value;
onChanged();
} else {
tsBuilder_.setMessage(value);
}
return this;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder setTs(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (tsBuilder_ == null) {
ts_ = builderForValue.build();
onChanged();
} else {
tsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder mergeTs(com.google.protobuf.Timestamp value) {
if (tsBuilder_ == null) {
if (ts_ != null) {
ts_ =
com.google.protobuf.Timestamp.newBuilder(ts_).mergeFrom(value).buildPartial();
} else {
ts_ = value;
}
onChanged();
} else {
tsBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder clearTs() {
if (tsBuilder_ == null) {
ts_ = null;
onChanged();
} else {
ts_ = null;
tsBuilder_ = null;
}
return this;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.Timestamp.Builder getTsBuilder() {
onChanged();
return getTsFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.TimestampOrBuilder getTsOrBuilder() {
if (tsBuilder_ != null) {
return tsBuilder_.getMessageOrBuilder();
} else {
return ts_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
}
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getTsFieldBuilder() {
if (tsBuilder_ == null) {
tsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getTs(),
getParentForChildren(),
isClean());
ts_ = null;
}
return tsBuilder_;
}
private org.hyperledger.protos.Ca.Identity id_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder> idBuilder_;
/**
* optional .protos.Identity id = 2;
*/
public boolean hasId() {
return idBuilder_ != null || id_ != null;
}
/**
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.Identity getId() {
if (idBuilder_ == null) {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
} else {
return idBuilder_.getMessage();
}
}
/**
* optional .protos.Identity id = 2;
*/
public Builder setId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
idBuilder_.setMessage(value);
}
return this;
}
/**
* optional .protos.Identity id = 2;
*/
public Builder setId(
org.hyperledger.protos.Ca.Identity.Builder builderForValue) {
if (idBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
idBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .protos.Identity id = 2;
*/
public Builder mergeId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (id_ != null) {
id_ =
org.hyperledger.protos.Ca.Identity.newBuilder(id_).mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
idBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .protos.Identity id = 2;
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = null;
onChanged();
} else {
id_ = null;
idBuilder_ = null;
}
return this;
}
/**
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.Identity.Builder getIdBuilder() {
onChanged();
return getIdFieldBuilder().getBuilder();
}
/**
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
return id_ == null ?
org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
}
/**
* optional .protos.Identity id = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>(
getId(),
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
private org.hyperledger.protos.Ca.Token tok_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Token, org.hyperledger.protos.Ca.Token.Builder, org.hyperledger.protos.Ca.TokenOrBuilder> tokBuilder_;
/**
* optional .protos.Token tok = 3;
*/
public boolean hasTok() {
return tokBuilder_ != null || tok_ != null;
}
/**
* optional .protos.Token tok = 3;
*/
public org.hyperledger.protos.Ca.Token getTok() {
if (tokBuilder_ == null) {
return tok_ == null ? org.hyperledger.protos.Ca.Token.getDefaultInstance() : tok_;
} else {
return tokBuilder_.getMessage();
}
}
/**
* optional .protos.Token tok = 3;
*/
public Builder setTok(org.hyperledger.protos.Ca.Token value) {
if (tokBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tok_ = value;
onChanged();
} else {
tokBuilder_.setMessage(value);
}
return this;
}
/**
* optional .protos.Token tok = 3;
*/
public Builder setTok(
org.hyperledger.protos.Ca.Token.Builder builderForValue) {
if (tokBuilder_ == null) {
tok_ = builderForValue.build();
onChanged();
} else {
tokBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .protos.Token tok = 3;
*/
public Builder mergeTok(org.hyperledger.protos.Ca.Token value) {
if (tokBuilder_ == null) {
if (tok_ != null) {
tok_ =
org.hyperledger.protos.Ca.Token.newBuilder(tok_).mergeFrom(value).buildPartial();
} else {
tok_ = value;
}
onChanged();
} else {
tokBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .protos.Token tok = 3;
*/
public Builder clearTok() {
if (tokBuilder_ == null) {
tok_ = null;
onChanged();
} else {
tok_ = null;
tokBuilder_ = null;
}
return this;
}
/**
* optional .protos.Token tok = 3;
*/
public org.hyperledger.protos.Ca.Token.Builder getTokBuilder() {
onChanged();
return getTokFieldBuilder().getBuilder();
}
/**
* optional .protos.Token tok = 3;
*/
public org.hyperledger.protos.Ca.TokenOrBuilder getTokOrBuilder() {
if (tokBuilder_ != null) {
return tokBuilder_.getMessageOrBuilder();
} else {
return tok_ == null ?
org.hyperledger.protos.Ca.Token.getDefaultInstance() : tok_;
}
}
/**
* optional .protos.Token tok = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Token, org.hyperledger.protos.Ca.Token.Builder, org.hyperledger.protos.Ca.TokenOrBuilder>
getTokFieldBuilder() {
if (tokBuilder_ == null) {
tokBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Token, org.hyperledger.protos.Ca.Token.Builder, org.hyperledger.protos.Ca.TokenOrBuilder>(
getTok(),
getParentForChildren(),
isClean());
tok_ = null;
}
return tokBuilder_;
}
private org.hyperledger.protos.Ca.PublicKey sign_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.PublicKey, org.hyperledger.protos.Ca.PublicKey.Builder, org.hyperledger.protos.Ca.PublicKeyOrBuilder> signBuilder_;
/**
* optional .protos.PublicKey sign = 4;
*/
public boolean hasSign() {
return signBuilder_ != null || sign_ != null;
}
/**
* optional .protos.PublicKey sign = 4;
*/
public org.hyperledger.protos.Ca.PublicKey getSign() {
if (signBuilder_ == null) {
return sign_ == null ? org.hyperledger.protos.Ca.PublicKey.getDefaultInstance() : sign_;
} else {
return signBuilder_.getMessage();
}
}
/**
* optional .protos.PublicKey sign = 4;
*/
public Builder setSign(org.hyperledger.protos.Ca.PublicKey value) {
if (signBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sign_ = value;
onChanged();
} else {
signBuilder_.setMessage(value);
}
return this;
}
/**
* optional .protos.PublicKey sign = 4;
*/
public Builder setSign(
org.hyperledger.protos.Ca.PublicKey.Builder builderForValue) {
if (signBuilder_ == null) {
sign_ = builderForValue.build();
onChanged();
} else {
signBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .protos.PublicKey sign = 4;
*/
public Builder mergeSign(org.hyperledger.protos.Ca.PublicKey value) {
if (signBuilder_ == null) {
if (sign_ != null) {
sign_ =
org.hyperledger.protos.Ca.PublicKey.newBuilder(sign_).mergeFrom(value).buildPartial();
} else {
sign_ = value;
}
onChanged();
} else {
signBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .protos.PublicKey sign = 4;
*/
public Builder clearSign() {
if (signBuilder_ == null) {
sign_ = null;
onChanged();
} else {
sign_ = null;
signBuilder_ = null;
}
return this;
}
/**
* optional .protos.PublicKey sign = 4;
*/
public org.hyperledger.protos.Ca.PublicKey.Builder getSignBuilder() {
onChanged();
return getSignFieldBuilder().getBuilder();
}
/**
* optional .protos.PublicKey sign = 4;
*/
public org.hyperledger.protos.Ca.PublicKeyOrBuilder getSignOrBuilder() {
if (signBuilder_ != null) {
return signBuilder_.getMessageOrBuilder();
} else {
return sign_ == null ?
org.hyperledger.protos.Ca.PublicKey.getDefaultInstance() : sign_;
}
}
/**
* optional .protos.PublicKey sign = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.PublicKey, org.hyperledger.protos.Ca.PublicKey.Builder, org.hyperledger.protos.Ca.PublicKeyOrBuilder>
getSignFieldBuilder() {
if (signBuilder_ == null) {
signBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.PublicKey, org.hyperledger.protos.Ca.PublicKey.Builder, org.hyperledger.protos.Ca.PublicKeyOrBuilder>(
getSign(),
getParentForChildren(),
isClean());
sign_ = null;
}
return signBuilder_;
}
private org.hyperledger.protos.Ca.PublicKey enc_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.PublicKey, org.hyperledger.protos.Ca.PublicKey.Builder, org.hyperledger.protos.Ca.PublicKeyOrBuilder> encBuilder_;
/**
* optional .protos.PublicKey enc = 5;
*/
public boolean hasEnc() {
return encBuilder_ != null || enc_ != null;
}
/**
* optional .protos.PublicKey enc = 5;
*/
public org.hyperledger.protos.Ca.PublicKey getEnc() {
if (encBuilder_ == null) {
return enc_ == null ? org.hyperledger.protos.Ca.PublicKey.getDefaultInstance() : enc_;
} else {
return encBuilder_.getMessage();
}
}
/**
* optional .protos.PublicKey enc = 5;
*/
public Builder setEnc(org.hyperledger.protos.Ca.PublicKey value) {
if (encBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
enc_ = value;
onChanged();
} else {
encBuilder_.setMessage(value);
}
return this;
}
/**
* optional .protos.PublicKey enc = 5;
*/
public Builder setEnc(
org.hyperledger.protos.Ca.PublicKey.Builder builderForValue) {
if (encBuilder_ == null) {
enc_ = builderForValue.build();
onChanged();
} else {
encBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .protos.PublicKey enc = 5;
*/
public Builder mergeEnc(org.hyperledger.protos.Ca.PublicKey value) {
if (encBuilder_ == null) {
if (enc_ != null) {
enc_ =
org.hyperledger.protos.Ca.PublicKey.newBuilder(enc_).mergeFrom(value).buildPartial();
} else {
enc_ = value;
}
onChanged();
} else {
encBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .protos.PublicKey enc = 5;
*/
public Builder clearEnc() {
if (encBuilder_ == null) {
enc_ = null;
onChanged();
} else {
enc_ = null;
encBuilder_ = null;
}
return this;
}
/**
* optional .protos.PublicKey enc = 5;
*/
public org.hyperledger.protos.Ca.PublicKey.Builder getEncBuilder() {
onChanged();
return getEncFieldBuilder().getBuilder();
}
/**
* optional .protos.PublicKey enc = 5;
*/
public org.hyperledger.protos.Ca.PublicKeyOrBuilder getEncOrBuilder() {
if (encBuilder_ != null) {
return encBuilder_.getMessageOrBuilder();
} else {
return enc_ == null ?
org.hyperledger.protos.Ca.PublicKey.getDefaultInstance() : enc_;
}
}
/**
* optional .protos.PublicKey enc = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.PublicKey, org.hyperledger.protos.Ca.PublicKey.Builder, org.hyperledger.protos.Ca.PublicKeyOrBuilder>
getEncFieldBuilder() {
if (encBuilder_ == null) {
encBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.PublicKey, org.hyperledger.protos.Ca.PublicKey.Builder, org.hyperledger.protos.Ca.PublicKeyOrBuilder>(
getEnc(),
getParentForChildren(),
isClean());
enc_ = null;
}
return encBuilder_;
}
private org.hyperledger.protos.Ca.Signature sig_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder> sigBuilder_;
/**
*
* sign(priv, ts | id | tok | sign | enc)
*
*
* optional .protos.Signature sig = 6;
*/
public boolean hasSig() {
return sigBuilder_ != null || sig_ != null;
}
/**
*
* sign(priv, ts | id | tok | sign | enc)
*
*
* optional .protos.Signature sig = 6;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
if (sigBuilder_ == null) {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
} else {
return sigBuilder_.getMessage();
}
}
/**
*
* sign(priv, ts | id | tok | sign | enc)
*
*
* optional .protos.Signature sig = 6;
*/
public Builder setSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sig_ = value;
onChanged();
} else {
sigBuilder_.setMessage(value);
}
return this;
}
/**
*
* sign(priv, ts | id | tok | sign | enc)
*
*
* optional .protos.Signature sig = 6;
*/
public Builder setSig(
org.hyperledger.protos.Ca.Signature.Builder builderForValue) {
if (sigBuilder_ == null) {
sig_ = builderForValue.build();
onChanged();
} else {
sigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* sign(priv, ts | id | tok | sign | enc)
*
*
* optional .protos.Signature sig = 6;
*/
public Builder mergeSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (sig_ != null) {
sig_ =
org.hyperledger.protos.Ca.Signature.newBuilder(sig_).mergeFrom(value).buildPartial();
} else {
sig_ = value;
}
onChanged();
} else {
sigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* sign(priv, ts | id | tok | sign | enc)
*
*
* optional .protos.Signature sig = 6;
*/
public Builder clearSig() {
if (sigBuilder_ == null) {
sig_ = null;
onChanged();
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
/**
*
* sign(priv, ts | id | tok | sign | enc)
*
*
* optional .protos.Signature sig = 6;
*/
public org.hyperledger.protos.Ca.Signature.Builder getSigBuilder() {
onChanged();
return getSigFieldBuilder().getBuilder();
}
/**
*
* sign(priv, ts | id | tok | sign | enc)
*
*
* optional .protos.Signature sig = 6;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
if (sigBuilder_ != null) {
return sigBuilder_.getMessageOrBuilder();
} else {
return sig_ == null ?
org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
}
/**
*
* sign(priv, ts | id | tok | sign | enc)
*
*
* optional .protos.Signature sig = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>
getSigFieldBuilder() {
if (sigBuilder_ == null) {
sigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>(
getSig(),
getParentForChildren(),
isClean());
sig_ = null;
}
return sigBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.ECertCreateReq)
}
// @@protoc_insertion_point(class_scope:protos.ECertCreateReq)
private static final org.hyperledger.protos.Ca.ECertCreateReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.ECertCreateReq();
}
public static org.hyperledger.protos.Ca.ECertCreateReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ECertCreateReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ECertCreateReq(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.ECertCreateReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ECertCreateRespOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.ECertCreateResp)
com.google.protobuf.MessageOrBuilder {
/**
* optional .protos.CertPair certs = 1;
*/
boolean hasCerts();
/**
* optional .protos.CertPair certs = 1;
*/
org.hyperledger.protos.Ca.CertPair getCerts();
/**
* optional .protos.CertPair certs = 1;
*/
org.hyperledger.protos.Ca.CertPairOrBuilder getCertsOrBuilder();
/**
* optional .protos.Token chain = 2;
*/
boolean hasChain();
/**
* optional .protos.Token chain = 2;
*/
org.hyperledger.protos.Ca.Token getChain();
/**
* optional .protos.Token chain = 2;
*/
org.hyperledger.protos.Ca.TokenOrBuilder getChainOrBuilder();
/**
* optional bytes pkchain = 5;
*/
com.google.protobuf.ByteString getPkchain();
/**
* optional .protos.Token tok = 3;
*/
boolean hasTok();
/**
* optional .protos.Token tok = 3;
*/
org.hyperledger.protos.Ca.Token getTok();
/**
* optional .protos.Token tok = 3;
*/
org.hyperledger.protos.Ca.TokenOrBuilder getTokOrBuilder();
/**
* optional .protos.FetchAttrsResult fetchResult = 4;
*/
boolean hasFetchResult();
/**
* optional .protos.FetchAttrsResult fetchResult = 4;
*/
org.hyperledger.protos.Ca.FetchAttrsResult getFetchResult();
/**
* optional .protos.FetchAttrsResult fetchResult = 4;
*/
org.hyperledger.protos.Ca.FetchAttrsResultOrBuilder getFetchResultOrBuilder();
}
/**
* Protobuf type {@code protos.ECertCreateResp}
*/
public static final class ECertCreateResp extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.ECertCreateResp)
ECertCreateRespOrBuilder {
// Use ECertCreateResp.newBuilder() to construct.
private ECertCreateResp(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ECertCreateResp() {
pkchain_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ECertCreateResp(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
org.hyperledger.protos.Ca.CertPair.Builder subBuilder = null;
if (certs_ != null) {
subBuilder = certs_.toBuilder();
}
certs_ = input.readMessage(org.hyperledger.protos.Ca.CertPair.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(certs_);
certs_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.hyperledger.protos.Ca.Token.Builder subBuilder = null;
if (chain_ != null) {
subBuilder = chain_.toBuilder();
}
chain_ = input.readMessage(org.hyperledger.protos.Ca.Token.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(chain_);
chain_ = subBuilder.buildPartial();
}
break;
}
case 26: {
org.hyperledger.protos.Ca.Token.Builder subBuilder = null;
if (tok_ != null) {
subBuilder = tok_.toBuilder();
}
tok_ = input.readMessage(org.hyperledger.protos.Ca.Token.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tok_);
tok_ = subBuilder.buildPartial();
}
break;
}
case 34: {
org.hyperledger.protos.Ca.FetchAttrsResult.Builder subBuilder = null;
if (fetchResult_ != null) {
subBuilder = fetchResult_.toBuilder();
}
fetchResult_ = input.readMessage(org.hyperledger.protos.Ca.FetchAttrsResult.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(fetchResult_);
fetchResult_ = subBuilder.buildPartial();
}
break;
}
case 42: {
pkchain_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_ECertCreateResp_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_ECertCreateResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.ECertCreateResp.class, org.hyperledger.protos.Ca.ECertCreateResp.Builder.class);
}
public static final int CERTS_FIELD_NUMBER = 1;
private org.hyperledger.protos.Ca.CertPair certs_;
/**
* optional .protos.CertPair certs = 1;
*/
public boolean hasCerts() {
return certs_ != null;
}
/**
* optional .protos.CertPair certs = 1;
*/
public org.hyperledger.protos.Ca.CertPair getCerts() {
return certs_ == null ? org.hyperledger.protos.Ca.CertPair.getDefaultInstance() : certs_;
}
/**
* optional .protos.CertPair certs = 1;
*/
public org.hyperledger.protos.Ca.CertPairOrBuilder getCertsOrBuilder() {
return getCerts();
}
public static final int CHAIN_FIELD_NUMBER = 2;
private org.hyperledger.protos.Ca.Token chain_;
/**
* optional .protos.Token chain = 2;
*/
public boolean hasChain() {
return chain_ != null;
}
/**
* optional .protos.Token chain = 2;
*/
public org.hyperledger.protos.Ca.Token getChain() {
return chain_ == null ? org.hyperledger.protos.Ca.Token.getDefaultInstance() : chain_;
}
/**
* optional .protos.Token chain = 2;
*/
public org.hyperledger.protos.Ca.TokenOrBuilder getChainOrBuilder() {
return getChain();
}
public static final int PKCHAIN_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString pkchain_;
/**
* optional bytes pkchain = 5;
*/
public com.google.protobuf.ByteString getPkchain() {
return pkchain_;
}
public static final int TOK_FIELD_NUMBER = 3;
private org.hyperledger.protos.Ca.Token tok_;
/**
* optional .protos.Token tok = 3;
*/
public boolean hasTok() {
return tok_ != null;
}
/**
* optional .protos.Token tok = 3;
*/
public org.hyperledger.protos.Ca.Token getTok() {
return tok_ == null ? org.hyperledger.protos.Ca.Token.getDefaultInstance() : tok_;
}
/**
* optional .protos.Token tok = 3;
*/
public org.hyperledger.protos.Ca.TokenOrBuilder getTokOrBuilder() {
return getTok();
}
public static final int FETCHRESULT_FIELD_NUMBER = 4;
private org.hyperledger.protos.Ca.FetchAttrsResult fetchResult_;
/**
* optional .protos.FetchAttrsResult fetchResult = 4;
*/
public boolean hasFetchResult() {
return fetchResult_ != null;
}
/**
* optional .protos.FetchAttrsResult fetchResult = 4;
*/
public org.hyperledger.protos.Ca.FetchAttrsResult getFetchResult() {
return fetchResult_ == null ? org.hyperledger.protos.Ca.FetchAttrsResult.getDefaultInstance() : fetchResult_;
}
/**
* optional .protos.FetchAttrsResult fetchResult = 4;
*/
public org.hyperledger.protos.Ca.FetchAttrsResultOrBuilder getFetchResultOrBuilder() {
return getFetchResult();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (certs_ != null) {
output.writeMessage(1, getCerts());
}
if (chain_ != null) {
output.writeMessage(2, getChain());
}
if (tok_ != null) {
output.writeMessage(3, getTok());
}
if (fetchResult_ != null) {
output.writeMessage(4, getFetchResult());
}
if (!pkchain_.isEmpty()) {
output.writeBytes(5, pkchain_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (certs_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCerts());
}
if (chain_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getChain());
}
if (tok_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTok());
}
if (fetchResult_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getFetchResult());
}
if (!pkchain_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, pkchain_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.ECertCreateResp)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.ECertCreateResp other = (org.hyperledger.protos.Ca.ECertCreateResp) obj;
boolean result = true;
result = result && (hasCerts() == other.hasCerts());
if (hasCerts()) {
result = result && getCerts()
.equals(other.getCerts());
}
result = result && (hasChain() == other.hasChain());
if (hasChain()) {
result = result && getChain()
.equals(other.getChain());
}
result = result && getPkchain()
.equals(other.getPkchain());
result = result && (hasTok() == other.hasTok());
if (hasTok()) {
result = result && getTok()
.equals(other.getTok());
}
result = result && (hasFetchResult() == other.hasFetchResult());
if (hasFetchResult()) {
result = result && getFetchResult()
.equals(other.getFetchResult());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasCerts()) {
hash = (37 * hash) + CERTS_FIELD_NUMBER;
hash = (53 * hash) + getCerts().hashCode();
}
if (hasChain()) {
hash = (37 * hash) + CHAIN_FIELD_NUMBER;
hash = (53 * hash) + getChain().hashCode();
}
hash = (37 * hash) + PKCHAIN_FIELD_NUMBER;
hash = (53 * hash) + getPkchain().hashCode();
if (hasTok()) {
hash = (37 * hash) + TOK_FIELD_NUMBER;
hash = (53 * hash) + getTok().hashCode();
}
if (hasFetchResult()) {
hash = (37 * hash) + FETCHRESULT_FIELD_NUMBER;
hash = (53 * hash) + getFetchResult().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.ECertCreateResp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.ECertCreateResp 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.protos.Ca.ECertCreateResp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.ECertCreateResp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.ECertCreateResp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ECertCreateResp 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.protos.Ca.ECertCreateResp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ECertCreateResp 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.protos.Ca.ECertCreateResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ECertCreateResp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.ECertCreateResp prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.ECertCreateResp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.ECertCreateResp)
org.hyperledger.protos.Ca.ECertCreateRespOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_ECertCreateResp_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_ECertCreateResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.ECertCreateResp.class, org.hyperledger.protos.Ca.ECertCreateResp.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.ECertCreateResp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (certsBuilder_ == null) {
certs_ = null;
} else {
certs_ = null;
certsBuilder_ = null;
}
if (chainBuilder_ == null) {
chain_ = null;
} else {
chain_ = null;
chainBuilder_ = null;
}
pkchain_ = com.google.protobuf.ByteString.EMPTY;
if (tokBuilder_ == null) {
tok_ = null;
} else {
tok_ = null;
tokBuilder_ = null;
}
if (fetchResultBuilder_ == null) {
fetchResult_ = null;
} else {
fetchResult_ = null;
fetchResultBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_ECertCreateResp_descriptor;
}
public org.hyperledger.protos.Ca.ECertCreateResp getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.ECertCreateResp.getDefaultInstance();
}
public org.hyperledger.protos.Ca.ECertCreateResp build() {
org.hyperledger.protos.Ca.ECertCreateResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.ECertCreateResp buildPartial() {
org.hyperledger.protos.Ca.ECertCreateResp result = new org.hyperledger.protos.Ca.ECertCreateResp(this);
if (certsBuilder_ == null) {
result.certs_ = certs_;
} else {
result.certs_ = certsBuilder_.build();
}
if (chainBuilder_ == null) {
result.chain_ = chain_;
} else {
result.chain_ = chainBuilder_.build();
}
result.pkchain_ = pkchain_;
if (tokBuilder_ == null) {
result.tok_ = tok_;
} else {
result.tok_ = tokBuilder_.build();
}
if (fetchResultBuilder_ == null) {
result.fetchResult_ = fetchResult_;
} else {
result.fetchResult_ = fetchResultBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.ECertCreateResp) {
return mergeFrom((org.hyperledger.protos.Ca.ECertCreateResp)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.ECertCreateResp other) {
if (other == org.hyperledger.protos.Ca.ECertCreateResp.getDefaultInstance()) return this;
if (other.hasCerts()) {
mergeCerts(other.getCerts());
}
if (other.hasChain()) {
mergeChain(other.getChain());
}
if (other.getPkchain() != com.google.protobuf.ByteString.EMPTY) {
setPkchain(other.getPkchain());
}
if (other.hasTok()) {
mergeTok(other.getTok());
}
if (other.hasFetchResult()) {
mergeFetchResult(other.getFetchResult());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.ECertCreateResp parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.ECertCreateResp) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.hyperledger.protos.Ca.CertPair certs_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.CertPair, org.hyperledger.protos.Ca.CertPair.Builder, org.hyperledger.protos.Ca.CertPairOrBuilder> certsBuilder_;
/**
* optional .protos.CertPair certs = 1;
*/
public boolean hasCerts() {
return certsBuilder_ != null || certs_ != null;
}
/**
* optional .protos.CertPair certs = 1;
*/
public org.hyperledger.protos.Ca.CertPair getCerts() {
if (certsBuilder_ == null) {
return certs_ == null ? org.hyperledger.protos.Ca.CertPair.getDefaultInstance() : certs_;
} else {
return certsBuilder_.getMessage();
}
}
/**
* optional .protos.CertPair certs = 1;
*/
public Builder setCerts(org.hyperledger.protos.Ca.CertPair value) {
if (certsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
certs_ = value;
onChanged();
} else {
certsBuilder_.setMessage(value);
}
return this;
}
/**
* optional .protos.CertPair certs = 1;
*/
public Builder setCerts(
org.hyperledger.protos.Ca.CertPair.Builder builderForValue) {
if (certsBuilder_ == null) {
certs_ = builderForValue.build();
onChanged();
} else {
certsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .protos.CertPair certs = 1;
*/
public Builder mergeCerts(org.hyperledger.protos.Ca.CertPair value) {
if (certsBuilder_ == null) {
if (certs_ != null) {
certs_ =
org.hyperledger.protos.Ca.CertPair.newBuilder(certs_).mergeFrom(value).buildPartial();
} else {
certs_ = value;
}
onChanged();
} else {
certsBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .protos.CertPair certs = 1;
*/
public Builder clearCerts() {
if (certsBuilder_ == null) {
certs_ = null;
onChanged();
} else {
certs_ = null;
certsBuilder_ = null;
}
return this;
}
/**
* optional .protos.CertPair certs = 1;
*/
public org.hyperledger.protos.Ca.CertPair.Builder getCertsBuilder() {
onChanged();
return getCertsFieldBuilder().getBuilder();
}
/**
* optional .protos.CertPair certs = 1;
*/
public org.hyperledger.protos.Ca.CertPairOrBuilder getCertsOrBuilder() {
if (certsBuilder_ != null) {
return certsBuilder_.getMessageOrBuilder();
} else {
return certs_ == null ?
org.hyperledger.protos.Ca.CertPair.getDefaultInstance() : certs_;
}
}
/**
* optional .protos.CertPair certs = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.CertPair, org.hyperledger.protos.Ca.CertPair.Builder, org.hyperledger.protos.Ca.CertPairOrBuilder>
getCertsFieldBuilder() {
if (certsBuilder_ == null) {
certsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.CertPair, org.hyperledger.protos.Ca.CertPair.Builder, org.hyperledger.protos.Ca.CertPairOrBuilder>(
getCerts(),
getParentForChildren(),
isClean());
certs_ = null;
}
return certsBuilder_;
}
private org.hyperledger.protos.Ca.Token chain_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Token, org.hyperledger.protos.Ca.Token.Builder, org.hyperledger.protos.Ca.TokenOrBuilder> chainBuilder_;
/**
* optional .protos.Token chain = 2;
*/
public boolean hasChain() {
return chainBuilder_ != null || chain_ != null;
}
/**
* optional .protos.Token chain = 2;
*/
public org.hyperledger.protos.Ca.Token getChain() {
if (chainBuilder_ == null) {
return chain_ == null ? org.hyperledger.protos.Ca.Token.getDefaultInstance() : chain_;
} else {
return chainBuilder_.getMessage();
}
}
/**
* optional .protos.Token chain = 2;
*/
public Builder setChain(org.hyperledger.protos.Ca.Token value) {
if (chainBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
chain_ = value;
onChanged();
} else {
chainBuilder_.setMessage(value);
}
return this;
}
/**
* optional .protos.Token chain = 2;
*/
public Builder setChain(
org.hyperledger.protos.Ca.Token.Builder builderForValue) {
if (chainBuilder_ == null) {
chain_ = builderForValue.build();
onChanged();
} else {
chainBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .protos.Token chain = 2;
*/
public Builder mergeChain(org.hyperledger.protos.Ca.Token value) {
if (chainBuilder_ == null) {
if (chain_ != null) {
chain_ =
org.hyperledger.protos.Ca.Token.newBuilder(chain_).mergeFrom(value).buildPartial();
} else {
chain_ = value;
}
onChanged();
} else {
chainBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .protos.Token chain = 2;
*/
public Builder clearChain() {
if (chainBuilder_ == null) {
chain_ = null;
onChanged();
} else {
chain_ = null;
chainBuilder_ = null;
}
return this;
}
/**
* optional .protos.Token chain = 2;
*/
public org.hyperledger.protos.Ca.Token.Builder getChainBuilder() {
onChanged();
return getChainFieldBuilder().getBuilder();
}
/**
* optional .protos.Token chain = 2;
*/
public org.hyperledger.protos.Ca.TokenOrBuilder getChainOrBuilder() {
if (chainBuilder_ != null) {
return chainBuilder_.getMessageOrBuilder();
} else {
return chain_ == null ?
org.hyperledger.protos.Ca.Token.getDefaultInstance() : chain_;
}
}
/**
* optional .protos.Token chain = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Token, org.hyperledger.protos.Ca.Token.Builder, org.hyperledger.protos.Ca.TokenOrBuilder>
getChainFieldBuilder() {
if (chainBuilder_ == null) {
chainBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Token, org.hyperledger.protos.Ca.Token.Builder, org.hyperledger.protos.Ca.TokenOrBuilder>(
getChain(),
getParentForChildren(),
isClean());
chain_ = null;
}
return chainBuilder_;
}
private com.google.protobuf.ByteString pkchain_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes pkchain = 5;
*/
public com.google.protobuf.ByteString getPkchain() {
return pkchain_;
}
/**
* optional bytes pkchain = 5;
*/
public Builder setPkchain(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
pkchain_ = value;
onChanged();
return this;
}
/**
* optional bytes pkchain = 5;
*/
public Builder clearPkchain() {
pkchain_ = getDefaultInstance().getPkchain();
onChanged();
return this;
}
private org.hyperledger.protos.Ca.Token tok_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Token, org.hyperledger.protos.Ca.Token.Builder, org.hyperledger.protos.Ca.TokenOrBuilder> tokBuilder_;
/**
* optional .protos.Token tok = 3;
*/
public boolean hasTok() {
return tokBuilder_ != null || tok_ != null;
}
/**
* optional .protos.Token tok = 3;
*/
public org.hyperledger.protos.Ca.Token getTok() {
if (tokBuilder_ == null) {
return tok_ == null ? org.hyperledger.protos.Ca.Token.getDefaultInstance() : tok_;
} else {
return tokBuilder_.getMessage();
}
}
/**
* optional .protos.Token tok = 3;
*/
public Builder setTok(org.hyperledger.protos.Ca.Token value) {
if (tokBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tok_ = value;
onChanged();
} else {
tokBuilder_.setMessage(value);
}
return this;
}
/**
* optional .protos.Token tok = 3;
*/
public Builder setTok(
org.hyperledger.protos.Ca.Token.Builder builderForValue) {
if (tokBuilder_ == null) {
tok_ = builderForValue.build();
onChanged();
} else {
tokBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .protos.Token tok = 3;
*/
public Builder mergeTok(org.hyperledger.protos.Ca.Token value) {
if (tokBuilder_ == null) {
if (tok_ != null) {
tok_ =
org.hyperledger.protos.Ca.Token.newBuilder(tok_).mergeFrom(value).buildPartial();
} else {
tok_ = value;
}
onChanged();
} else {
tokBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .protos.Token tok = 3;
*/
public Builder clearTok() {
if (tokBuilder_ == null) {
tok_ = null;
onChanged();
} else {
tok_ = null;
tokBuilder_ = null;
}
return this;
}
/**
* optional .protos.Token tok = 3;
*/
public org.hyperledger.protos.Ca.Token.Builder getTokBuilder() {
onChanged();
return getTokFieldBuilder().getBuilder();
}
/**
* optional .protos.Token tok = 3;
*/
public org.hyperledger.protos.Ca.TokenOrBuilder getTokOrBuilder() {
if (tokBuilder_ != null) {
return tokBuilder_.getMessageOrBuilder();
} else {
return tok_ == null ?
org.hyperledger.protos.Ca.Token.getDefaultInstance() : tok_;
}
}
/**
* optional .protos.Token tok = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Token, org.hyperledger.protos.Ca.Token.Builder, org.hyperledger.protos.Ca.TokenOrBuilder>
getTokFieldBuilder() {
if (tokBuilder_ == null) {
tokBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Token, org.hyperledger.protos.Ca.Token.Builder, org.hyperledger.protos.Ca.TokenOrBuilder>(
getTok(),
getParentForChildren(),
isClean());
tok_ = null;
}
return tokBuilder_;
}
private org.hyperledger.protos.Ca.FetchAttrsResult fetchResult_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.FetchAttrsResult, org.hyperledger.protos.Ca.FetchAttrsResult.Builder, org.hyperledger.protos.Ca.FetchAttrsResultOrBuilder> fetchResultBuilder_;
/**
* optional .protos.FetchAttrsResult fetchResult = 4;
*/
public boolean hasFetchResult() {
return fetchResultBuilder_ != null || fetchResult_ != null;
}
/**
* optional .protos.FetchAttrsResult fetchResult = 4;
*/
public org.hyperledger.protos.Ca.FetchAttrsResult getFetchResult() {
if (fetchResultBuilder_ == null) {
return fetchResult_ == null ? org.hyperledger.protos.Ca.FetchAttrsResult.getDefaultInstance() : fetchResult_;
} else {
return fetchResultBuilder_.getMessage();
}
}
/**
* optional .protos.FetchAttrsResult fetchResult = 4;
*/
public Builder setFetchResult(org.hyperledger.protos.Ca.FetchAttrsResult value) {
if (fetchResultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fetchResult_ = value;
onChanged();
} else {
fetchResultBuilder_.setMessage(value);
}
return this;
}
/**
* optional .protos.FetchAttrsResult fetchResult = 4;
*/
public Builder setFetchResult(
org.hyperledger.protos.Ca.FetchAttrsResult.Builder builderForValue) {
if (fetchResultBuilder_ == null) {
fetchResult_ = builderForValue.build();
onChanged();
} else {
fetchResultBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .protos.FetchAttrsResult fetchResult = 4;
*/
public Builder mergeFetchResult(org.hyperledger.protos.Ca.FetchAttrsResult value) {
if (fetchResultBuilder_ == null) {
if (fetchResult_ != null) {
fetchResult_ =
org.hyperledger.protos.Ca.FetchAttrsResult.newBuilder(fetchResult_).mergeFrom(value).buildPartial();
} else {
fetchResult_ = value;
}
onChanged();
} else {
fetchResultBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .protos.FetchAttrsResult fetchResult = 4;
*/
public Builder clearFetchResult() {
if (fetchResultBuilder_ == null) {
fetchResult_ = null;
onChanged();
} else {
fetchResult_ = null;
fetchResultBuilder_ = null;
}
return this;
}
/**
* optional .protos.FetchAttrsResult fetchResult = 4;
*/
public org.hyperledger.protos.Ca.FetchAttrsResult.Builder getFetchResultBuilder() {
onChanged();
return getFetchResultFieldBuilder().getBuilder();
}
/**
* optional .protos.FetchAttrsResult fetchResult = 4;
*/
public org.hyperledger.protos.Ca.FetchAttrsResultOrBuilder getFetchResultOrBuilder() {
if (fetchResultBuilder_ != null) {
return fetchResultBuilder_.getMessageOrBuilder();
} else {
return fetchResult_ == null ?
org.hyperledger.protos.Ca.FetchAttrsResult.getDefaultInstance() : fetchResult_;
}
}
/**
* optional .protos.FetchAttrsResult fetchResult = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.FetchAttrsResult, org.hyperledger.protos.Ca.FetchAttrsResult.Builder, org.hyperledger.protos.Ca.FetchAttrsResultOrBuilder>
getFetchResultFieldBuilder() {
if (fetchResultBuilder_ == null) {
fetchResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.FetchAttrsResult, org.hyperledger.protos.Ca.FetchAttrsResult.Builder, org.hyperledger.protos.Ca.FetchAttrsResultOrBuilder>(
getFetchResult(),
getParentForChildren(),
isClean());
fetchResult_ = null;
}
return fetchResultBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.ECertCreateResp)
}
// @@protoc_insertion_point(class_scope:protos.ECertCreateResp)
private static final org.hyperledger.protos.Ca.ECertCreateResp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.ECertCreateResp();
}
public static org.hyperledger.protos.Ca.ECertCreateResp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ECertCreateResp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ECertCreateResp(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.ECertCreateResp getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ECertReadReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.ECertReadReq)
com.google.protobuf.MessageOrBuilder {
/**
* optional .protos.Identity id = 1;
*/
boolean hasId();
/**
* optional .protos.Identity id = 1;
*/
org.hyperledger.protos.Ca.Identity getId();
/**
* optional .protos.Identity id = 1;
*/
org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder();
}
/**
* Protobuf type {@code protos.ECertReadReq}
*/
public static final class ECertReadReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.ECertReadReq)
ECertReadReqOrBuilder {
// Use ECertReadReq.newBuilder() to construct.
private ECertReadReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ECertReadReq() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ECertReadReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
org.hyperledger.protos.Ca.Identity.Builder subBuilder = null;
if (id_ != null) {
subBuilder = id_.toBuilder();
}
id_ = input.readMessage(org.hyperledger.protos.Ca.Identity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(id_);
id_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_ECertReadReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_ECertReadReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.ECertReadReq.class, org.hyperledger.protos.Ca.ECertReadReq.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private org.hyperledger.protos.Ca.Identity id_;
/**
* optional .protos.Identity id = 1;
*/
public boolean hasId() {
return id_ != null;
}
/**
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity getId() {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
/**
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
return getId();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (id_ != null) {
output.writeMessage(1, getId());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getId());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.ECertReadReq)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.ECertReadReq other = (org.hyperledger.protos.Ca.ECertReadReq) obj;
boolean result = true;
result = result && (hasId() == other.hasId());
if (hasId()) {
result = result && getId()
.equals(other.getId());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.ECertReadReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.ECertReadReq 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.protos.Ca.ECertReadReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.ECertReadReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.ECertReadReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ECertReadReq 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.protos.Ca.ECertReadReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ECertReadReq 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.protos.Ca.ECertReadReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ECertReadReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.ECertReadReq prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.ECertReadReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.ECertReadReq)
org.hyperledger.protos.Ca.ECertReadReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_ECertReadReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_ECertReadReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.ECertReadReq.class, org.hyperledger.protos.Ca.ECertReadReq.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.ECertReadReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (idBuilder_ == null) {
id_ = null;
} else {
id_ = null;
idBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_ECertReadReq_descriptor;
}
public org.hyperledger.protos.Ca.ECertReadReq getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.ECertReadReq.getDefaultInstance();
}
public org.hyperledger.protos.Ca.ECertReadReq build() {
org.hyperledger.protos.Ca.ECertReadReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.ECertReadReq buildPartial() {
org.hyperledger.protos.Ca.ECertReadReq result = new org.hyperledger.protos.Ca.ECertReadReq(this);
if (idBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.ECertReadReq) {
return mergeFrom((org.hyperledger.protos.Ca.ECertReadReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.ECertReadReq other) {
if (other == org.hyperledger.protos.Ca.ECertReadReq.getDefaultInstance()) return this;
if (other.hasId()) {
mergeId(other.getId());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.ECertReadReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.ECertReadReq) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.hyperledger.protos.Ca.Identity id_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder> idBuilder_;
/**
* optional .protos.Identity id = 1;
*/
public boolean hasId() {
return idBuilder_ != null || id_ != null;
}
/**
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity getId() {
if (idBuilder_ == null) {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
} else {
return idBuilder_.getMessage();
}
}
/**
* optional .protos.Identity id = 1;
*/
public Builder setId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
idBuilder_.setMessage(value);
}
return this;
}
/**
* optional .protos.Identity id = 1;
*/
public Builder setId(
org.hyperledger.protos.Ca.Identity.Builder builderForValue) {
if (idBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
idBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .protos.Identity id = 1;
*/
public Builder mergeId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (id_ != null) {
id_ =
org.hyperledger.protos.Ca.Identity.newBuilder(id_).mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
idBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .protos.Identity id = 1;
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = null;
onChanged();
} else {
id_ = null;
idBuilder_ = null;
}
return this;
}
/**
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity.Builder getIdBuilder() {
onChanged();
return getIdFieldBuilder().getBuilder();
}
/**
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
return id_ == null ?
org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
}
/**
* optional .protos.Identity id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>(
getId(),
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.ECertReadReq)
}
// @@protoc_insertion_point(class_scope:protos.ECertReadReq)
private static final org.hyperledger.protos.Ca.ECertReadReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.ECertReadReq();
}
public static org.hyperledger.protos.Ca.ECertReadReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ECertReadReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ECertReadReq(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.ECertReadReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ECertRevokeReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.ECertRevokeReq)
com.google.protobuf.MessageOrBuilder {
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
boolean hasId();
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
org.hyperledger.protos.Ca.Identity getId();
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder();
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
boolean hasCert();
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
org.hyperledger.protos.Ca.Cert getCert();
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
org.hyperledger.protos.Ca.CertOrBuilder getCertOrBuilder();
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
boolean hasSig();
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
org.hyperledger.protos.Ca.Signature getSig();
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder();
}
/**
* Protobuf type {@code protos.ECertRevokeReq}
*/
public static final class ECertRevokeReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.ECertRevokeReq)
ECertRevokeReqOrBuilder {
// Use ECertRevokeReq.newBuilder() to construct.
private ECertRevokeReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ECertRevokeReq() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ECertRevokeReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
org.hyperledger.protos.Ca.Identity.Builder subBuilder = null;
if (id_ != null) {
subBuilder = id_.toBuilder();
}
id_ = input.readMessage(org.hyperledger.protos.Ca.Identity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(id_);
id_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.hyperledger.protos.Ca.Cert.Builder subBuilder = null;
if (cert_ != null) {
subBuilder = cert_.toBuilder();
}
cert_ = input.readMessage(org.hyperledger.protos.Ca.Cert.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(cert_);
cert_ = subBuilder.buildPartial();
}
break;
}
case 26: {
org.hyperledger.protos.Ca.Signature.Builder subBuilder = null;
if (sig_ != null) {
subBuilder = sig_.toBuilder();
}
sig_ = input.readMessage(org.hyperledger.protos.Ca.Signature.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sig_);
sig_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_ECertRevokeReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_ECertRevokeReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.ECertRevokeReq.class, org.hyperledger.protos.Ca.ECertRevokeReq.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private org.hyperledger.protos.Ca.Identity id_;
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
public boolean hasId() {
return id_ != null;
}
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity getId() {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
return getId();
}
public static final int CERT_FIELD_NUMBER = 2;
private org.hyperledger.protos.Ca.Cert cert_;
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public boolean hasCert() {
return cert_ != null;
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public org.hyperledger.protos.Ca.Cert getCert() {
return cert_ == null ? org.hyperledger.protos.Ca.Cert.getDefaultInstance() : cert_;
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public org.hyperledger.protos.Ca.CertOrBuilder getCertOrBuilder() {
return getCert();
}
public static final int SIG_FIELD_NUMBER = 3;
private org.hyperledger.protos.Ca.Signature sig_;
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public boolean hasSig() {
return sig_ != null;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
return getSig();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (id_ != null) {
output.writeMessage(1, getId());
}
if (cert_ != null) {
output.writeMessage(2, getCert());
}
if (sig_ != null) {
output.writeMessage(3, getSig());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getId());
}
if (cert_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getCert());
}
if (sig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getSig());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.ECertRevokeReq)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.ECertRevokeReq other = (org.hyperledger.protos.Ca.ECertRevokeReq) obj;
boolean result = true;
result = result && (hasId() == other.hasId());
if (hasId()) {
result = result && getId()
.equals(other.getId());
}
result = result && (hasCert() == other.hasCert());
if (hasCert()) {
result = result && getCert()
.equals(other.getCert());
}
result = result && (hasSig() == other.hasSig());
if (hasSig()) {
result = result && getSig()
.equals(other.getSig());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
if (hasCert()) {
hash = (37 * hash) + CERT_FIELD_NUMBER;
hash = (53 * hash) + getCert().hashCode();
}
if (hasSig()) {
hash = (37 * hash) + SIG_FIELD_NUMBER;
hash = (53 * hash) + getSig().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.ECertRevokeReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.ECertRevokeReq 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.protos.Ca.ECertRevokeReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.ECertRevokeReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.ECertRevokeReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ECertRevokeReq 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.protos.Ca.ECertRevokeReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ECertRevokeReq 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.protos.Ca.ECertRevokeReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ECertRevokeReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.ECertRevokeReq prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.ECertRevokeReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.ECertRevokeReq)
org.hyperledger.protos.Ca.ECertRevokeReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_ECertRevokeReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_ECertRevokeReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.ECertRevokeReq.class, org.hyperledger.protos.Ca.ECertRevokeReq.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.ECertRevokeReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (idBuilder_ == null) {
id_ = null;
} else {
id_ = null;
idBuilder_ = null;
}
if (certBuilder_ == null) {
cert_ = null;
} else {
cert_ = null;
certBuilder_ = null;
}
if (sigBuilder_ == null) {
sig_ = null;
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_ECertRevokeReq_descriptor;
}
public org.hyperledger.protos.Ca.ECertRevokeReq getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.ECertRevokeReq.getDefaultInstance();
}
public org.hyperledger.protos.Ca.ECertRevokeReq build() {
org.hyperledger.protos.Ca.ECertRevokeReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.ECertRevokeReq buildPartial() {
org.hyperledger.protos.Ca.ECertRevokeReq result = new org.hyperledger.protos.Ca.ECertRevokeReq(this);
if (idBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
if (certBuilder_ == null) {
result.cert_ = cert_;
} else {
result.cert_ = certBuilder_.build();
}
if (sigBuilder_ == null) {
result.sig_ = sig_;
} else {
result.sig_ = sigBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.ECertRevokeReq) {
return mergeFrom((org.hyperledger.protos.Ca.ECertRevokeReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.ECertRevokeReq other) {
if (other == org.hyperledger.protos.Ca.ECertRevokeReq.getDefaultInstance()) return this;
if (other.hasId()) {
mergeId(other.getId());
}
if (other.hasCert()) {
mergeCert(other.getCert());
}
if (other.hasSig()) {
mergeSig(other.getSig());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.ECertRevokeReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.ECertRevokeReq) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.hyperledger.protos.Ca.Identity id_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder> idBuilder_;
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
public boolean hasId() {
return idBuilder_ != null || id_ != null;
}
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity getId() {
if (idBuilder_ == null) {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
} else {
return idBuilder_.getMessage();
}
}
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
public Builder setId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
idBuilder_.setMessage(value);
}
return this;
}
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
public Builder setId(
org.hyperledger.protos.Ca.Identity.Builder builderForValue) {
if (idBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
idBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
public Builder mergeId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (id_ != null) {
id_ =
org.hyperledger.protos.Ca.Identity.newBuilder(id_).mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
idBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = null;
onChanged();
} else {
id_ = null;
idBuilder_ = null;
}
return this;
}
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity.Builder getIdBuilder() {
onChanged();
return getIdFieldBuilder().getBuilder();
}
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
return id_ == null ?
org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
}
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>(
getId(),
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
private org.hyperledger.protos.Ca.Cert cert_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder> certBuilder_;
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public boolean hasCert() {
return certBuilder_ != null || cert_ != null;
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public org.hyperledger.protos.Ca.Cert getCert() {
if (certBuilder_ == null) {
return cert_ == null ? org.hyperledger.protos.Ca.Cert.getDefaultInstance() : cert_;
} else {
return certBuilder_.getMessage();
}
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public Builder setCert(org.hyperledger.protos.Ca.Cert value) {
if (certBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cert_ = value;
onChanged();
} else {
certBuilder_.setMessage(value);
}
return this;
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public Builder setCert(
org.hyperledger.protos.Ca.Cert.Builder builderForValue) {
if (certBuilder_ == null) {
cert_ = builderForValue.build();
onChanged();
} else {
certBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public Builder mergeCert(org.hyperledger.protos.Ca.Cert value) {
if (certBuilder_ == null) {
if (cert_ != null) {
cert_ =
org.hyperledger.protos.Ca.Cert.newBuilder(cert_).mergeFrom(value).buildPartial();
} else {
cert_ = value;
}
onChanged();
} else {
certBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public Builder clearCert() {
if (certBuilder_ == null) {
cert_ = null;
onChanged();
} else {
cert_ = null;
certBuilder_ = null;
}
return this;
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public org.hyperledger.protos.Ca.Cert.Builder getCertBuilder() {
onChanged();
return getCertFieldBuilder().getBuilder();
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public org.hyperledger.protos.Ca.CertOrBuilder getCertOrBuilder() {
if (certBuilder_ != null) {
return certBuilder_.getMessageOrBuilder();
} else {
return cert_ == null ?
org.hyperledger.protos.Ca.Cert.getDefaultInstance() : cert_;
}
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder>
getCertFieldBuilder() {
if (certBuilder_ == null) {
certBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder>(
getCert(),
getParentForChildren(),
isClean());
cert_ = null;
}
return certBuilder_;
}
private org.hyperledger.protos.Ca.Signature sig_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder> sigBuilder_;
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public boolean hasSig() {
return sigBuilder_ != null || sig_ != null;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
if (sigBuilder_ == null) {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
} else {
return sigBuilder_.getMessage();
}
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public Builder setSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sig_ = value;
onChanged();
} else {
sigBuilder_.setMessage(value);
}
return this;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public Builder setSig(
org.hyperledger.protos.Ca.Signature.Builder builderForValue) {
if (sigBuilder_ == null) {
sig_ = builderForValue.build();
onChanged();
} else {
sigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public Builder mergeSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (sig_ != null) {
sig_ =
org.hyperledger.protos.Ca.Signature.newBuilder(sig_).mergeFrom(value).buildPartial();
} else {
sig_ = value;
}
onChanged();
} else {
sigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public Builder clearSig() {
if (sigBuilder_ == null) {
sig_ = null;
onChanged();
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public org.hyperledger.protos.Ca.Signature.Builder getSigBuilder() {
onChanged();
return getSigFieldBuilder().getBuilder();
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
if (sigBuilder_ != null) {
return sigBuilder_.getMessageOrBuilder();
} else {
return sig_ == null ?
org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>
getSigFieldBuilder() {
if (sigBuilder_ == null) {
sigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>(
getSig(),
getParentForChildren(),
isClean());
sig_ = null;
}
return sigBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.ECertRevokeReq)
}
// @@protoc_insertion_point(class_scope:protos.ECertRevokeReq)
private static final org.hyperledger.protos.Ca.ECertRevokeReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.ECertRevokeReq();
}
public static org.hyperledger.protos.Ca.ECertRevokeReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ECertRevokeReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ECertRevokeReq(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.ECertRevokeReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ECertCRLReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.ECertCRLReq)
com.google.protobuf.MessageOrBuilder {
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
boolean hasId();
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
org.hyperledger.protos.Ca.Identity getId();
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder();
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
boolean hasSig();
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
org.hyperledger.protos.Ca.Signature getSig();
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder();
}
/**
* Protobuf type {@code protos.ECertCRLReq}
*/
public static final class ECertCRLReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.ECertCRLReq)
ECertCRLReqOrBuilder {
// Use ECertCRLReq.newBuilder() to construct.
private ECertCRLReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ECertCRLReq() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ECertCRLReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
org.hyperledger.protos.Ca.Identity.Builder subBuilder = null;
if (id_ != null) {
subBuilder = id_.toBuilder();
}
id_ = input.readMessage(org.hyperledger.protos.Ca.Identity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(id_);
id_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.hyperledger.protos.Ca.Signature.Builder subBuilder = null;
if (sig_ != null) {
subBuilder = sig_.toBuilder();
}
sig_ = input.readMessage(org.hyperledger.protos.Ca.Signature.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sig_);
sig_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_ECertCRLReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_ECertCRLReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.ECertCRLReq.class, org.hyperledger.protos.Ca.ECertCRLReq.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private org.hyperledger.protos.Ca.Identity id_;
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
public boolean hasId() {
return id_ != null;
}
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity getId() {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
return getId();
}
public static final int SIG_FIELD_NUMBER = 2;
private org.hyperledger.protos.Ca.Signature sig_;
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
public boolean hasSig() {
return sig_ != null;
}
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
return getSig();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (id_ != null) {
output.writeMessage(1, getId());
}
if (sig_ != null) {
output.writeMessage(2, getSig());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getId());
}
if (sig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSig());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.ECertCRLReq)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.ECertCRLReq other = (org.hyperledger.protos.Ca.ECertCRLReq) obj;
boolean result = true;
result = result && (hasId() == other.hasId());
if (hasId()) {
result = result && getId()
.equals(other.getId());
}
result = result && (hasSig() == other.hasSig());
if (hasSig()) {
result = result && getSig()
.equals(other.getSig());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
if (hasSig()) {
hash = (37 * hash) + SIG_FIELD_NUMBER;
hash = (53 * hash) + getSig().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.ECertCRLReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.ECertCRLReq 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.protos.Ca.ECertCRLReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.ECertCRLReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.ECertCRLReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ECertCRLReq 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.protos.Ca.ECertCRLReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ECertCRLReq 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.protos.Ca.ECertCRLReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ECertCRLReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.ECertCRLReq prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.ECertCRLReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.ECertCRLReq)
org.hyperledger.protos.Ca.ECertCRLReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_ECertCRLReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_ECertCRLReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.ECertCRLReq.class, org.hyperledger.protos.Ca.ECertCRLReq.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.ECertCRLReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (idBuilder_ == null) {
id_ = null;
} else {
id_ = null;
idBuilder_ = null;
}
if (sigBuilder_ == null) {
sig_ = null;
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_ECertCRLReq_descriptor;
}
public org.hyperledger.protos.Ca.ECertCRLReq getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.ECertCRLReq.getDefaultInstance();
}
public org.hyperledger.protos.Ca.ECertCRLReq build() {
org.hyperledger.protos.Ca.ECertCRLReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.ECertCRLReq buildPartial() {
org.hyperledger.protos.Ca.ECertCRLReq result = new org.hyperledger.protos.Ca.ECertCRLReq(this);
if (idBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
if (sigBuilder_ == null) {
result.sig_ = sig_;
} else {
result.sig_ = sigBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.ECertCRLReq) {
return mergeFrom((org.hyperledger.protos.Ca.ECertCRLReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.ECertCRLReq other) {
if (other == org.hyperledger.protos.Ca.ECertCRLReq.getDefaultInstance()) return this;
if (other.hasId()) {
mergeId(other.getId());
}
if (other.hasSig()) {
mergeSig(other.getSig());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.ECertCRLReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.ECertCRLReq) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.hyperledger.protos.Ca.Identity id_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder> idBuilder_;
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
public boolean hasId() {
return idBuilder_ != null || id_ != null;
}
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity getId() {
if (idBuilder_ == null) {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
} else {
return idBuilder_.getMessage();
}
}
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
public Builder setId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
idBuilder_.setMessage(value);
}
return this;
}
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
public Builder setId(
org.hyperledger.protos.Ca.Identity.Builder builderForValue) {
if (idBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
idBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
public Builder mergeId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (id_ != null) {
id_ =
org.hyperledger.protos.Ca.Identity.newBuilder(id_).mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
idBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = null;
onChanged();
} else {
id_ = null;
idBuilder_ = null;
}
return this;
}
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity.Builder getIdBuilder() {
onChanged();
return getIdFieldBuilder().getBuilder();
}
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
return id_ == null ?
org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
}
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>(
getId(),
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
private org.hyperledger.protos.Ca.Signature sig_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder> sigBuilder_;
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
public boolean hasSig() {
return sigBuilder_ != null || sig_ != null;
}
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
if (sigBuilder_ == null) {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
} else {
return sigBuilder_.getMessage();
}
}
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
public Builder setSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sig_ = value;
onChanged();
} else {
sigBuilder_.setMessage(value);
}
return this;
}
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
public Builder setSig(
org.hyperledger.protos.Ca.Signature.Builder builderForValue) {
if (sigBuilder_ == null) {
sig_ = builderForValue.build();
onChanged();
} else {
sigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
public Builder mergeSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (sig_ != null) {
sig_ =
org.hyperledger.protos.Ca.Signature.newBuilder(sig_).mergeFrom(value).buildPartial();
} else {
sig_ = value;
}
onChanged();
} else {
sigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
public Builder clearSig() {
if (sigBuilder_ == null) {
sig_ = null;
onChanged();
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
public org.hyperledger.protos.Ca.Signature.Builder getSigBuilder() {
onChanged();
return getSigFieldBuilder().getBuilder();
}
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
if (sigBuilder_ != null) {
return sigBuilder_.getMessageOrBuilder();
} else {
return sig_ == null ?
org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
}
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>
getSigFieldBuilder() {
if (sigBuilder_ == null) {
sigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>(
getSig(),
getParentForChildren(),
isClean());
sig_ = null;
}
return sigBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.ECertCRLReq)
}
// @@protoc_insertion_point(class_scope:protos.ECertCRLReq)
private static final org.hyperledger.protos.Ca.ECertCRLReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.ECertCRLReq();
}
public static org.hyperledger.protos.Ca.ECertCRLReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ECertCRLReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ECertCRLReq(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.ECertCRLReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TCertCreateReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.TCertCreateReq)
com.google.protobuf.MessageOrBuilder {
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
boolean hasTs();
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
com.google.protobuf.Timestamp getTs();
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
com.google.protobuf.TimestampOrBuilder getTsOrBuilder();
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
boolean hasId();
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
org.hyperledger.protos.Ca.Identity getId();
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder();
/**
* optional .protos.PublicKey pub = 3;
*/
boolean hasPub();
/**
* optional .protos.PublicKey pub = 3;
*/
org.hyperledger.protos.Ca.PublicKey getPub();
/**
* optional .protos.PublicKey pub = 3;
*/
org.hyperledger.protos.Ca.PublicKeyOrBuilder getPubOrBuilder();
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
boolean hasSig();
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
org.hyperledger.protos.Ca.Signature getSig();
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder();
}
/**
* Protobuf type {@code protos.TCertCreateReq}
*/
public static final class TCertCreateReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.TCertCreateReq)
TCertCreateReqOrBuilder {
// Use TCertCreateReq.newBuilder() to construct.
private TCertCreateReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TCertCreateReq() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private TCertCreateReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (ts_ != null) {
subBuilder = ts_.toBuilder();
}
ts_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ts_);
ts_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.hyperledger.protos.Ca.Identity.Builder subBuilder = null;
if (id_ != null) {
subBuilder = id_.toBuilder();
}
id_ = input.readMessage(org.hyperledger.protos.Ca.Identity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(id_);
id_ = subBuilder.buildPartial();
}
break;
}
case 26: {
org.hyperledger.protos.Ca.PublicKey.Builder subBuilder = null;
if (pub_ != null) {
subBuilder = pub_.toBuilder();
}
pub_ = input.readMessage(org.hyperledger.protos.Ca.PublicKey.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pub_);
pub_ = subBuilder.buildPartial();
}
break;
}
case 34: {
org.hyperledger.protos.Ca.Signature.Builder subBuilder = null;
if (sig_ != null) {
subBuilder = sig_.toBuilder();
}
sig_ = input.readMessage(org.hyperledger.protos.Ca.Signature.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sig_);
sig_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertCreateReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertCreateReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TCertCreateReq.class, org.hyperledger.protos.Ca.TCertCreateReq.Builder.class);
}
public static final int TS_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp ts_;
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public boolean hasTs() {
return ts_ != null;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.Timestamp getTs() {
return ts_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.TimestampOrBuilder getTsOrBuilder() {
return getTs();
}
public static final int ID_FIELD_NUMBER = 2;
private org.hyperledger.protos.Ca.Identity id_;
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
public boolean hasId() {
return id_ != null;
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.Identity getId() {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
return getId();
}
public static final int PUB_FIELD_NUMBER = 3;
private org.hyperledger.protos.Ca.PublicKey pub_;
/**
* optional .protos.PublicKey pub = 3;
*/
public boolean hasPub() {
return pub_ != null;
}
/**
* optional .protos.PublicKey pub = 3;
*/
public org.hyperledger.protos.Ca.PublicKey getPub() {
return pub_ == null ? org.hyperledger.protos.Ca.PublicKey.getDefaultInstance() : pub_;
}
/**
* optional .protos.PublicKey pub = 3;
*/
public org.hyperledger.protos.Ca.PublicKeyOrBuilder getPubOrBuilder() {
return getPub();
}
public static final int SIG_FIELD_NUMBER = 4;
private org.hyperledger.protos.Ca.Signature sig_;
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
public boolean hasSig() {
return sig_ != null;
}
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
return getSig();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (ts_ != null) {
output.writeMessage(1, getTs());
}
if (id_ != null) {
output.writeMessage(2, getId());
}
if (pub_ != null) {
output.writeMessage(3, getPub());
}
if (sig_ != null) {
output.writeMessage(4, getSig());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (ts_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTs());
}
if (id_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getId());
}
if (pub_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getPub());
}
if (sig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getSig());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.TCertCreateReq)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.TCertCreateReq other = (org.hyperledger.protos.Ca.TCertCreateReq) obj;
boolean result = true;
result = result && (hasTs() == other.hasTs());
if (hasTs()) {
result = result && getTs()
.equals(other.getTs());
}
result = result && (hasId() == other.hasId());
if (hasId()) {
result = result && getId()
.equals(other.getId());
}
result = result && (hasPub() == other.hasPub());
if (hasPub()) {
result = result && getPub()
.equals(other.getPub());
}
result = result && (hasSig() == other.hasSig());
if (hasSig()) {
result = result && getSig()
.equals(other.getSig());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasTs()) {
hash = (37 * hash) + TS_FIELD_NUMBER;
hash = (53 * hash) + getTs().hashCode();
}
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
if (hasPub()) {
hash = (37 * hash) + PUB_FIELD_NUMBER;
hash = (53 * hash) + getPub().hashCode();
}
if (hasSig()) {
hash = (37 * hash) + SIG_FIELD_NUMBER;
hash = (53 * hash) + getSig().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.TCertCreateReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TCertCreateReq 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.protos.Ca.TCertCreateReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TCertCreateReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.TCertCreateReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertCreateReq 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.protos.Ca.TCertCreateReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertCreateReq 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.protos.Ca.TCertCreateReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertCreateReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.TCertCreateReq prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.TCertCreateReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.TCertCreateReq)
org.hyperledger.protos.Ca.TCertCreateReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertCreateReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertCreateReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TCertCreateReq.class, org.hyperledger.protos.Ca.TCertCreateReq.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.TCertCreateReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (tsBuilder_ == null) {
ts_ = null;
} else {
ts_ = null;
tsBuilder_ = null;
}
if (idBuilder_ == null) {
id_ = null;
} else {
id_ = null;
idBuilder_ = null;
}
if (pubBuilder_ == null) {
pub_ = null;
} else {
pub_ = null;
pubBuilder_ = null;
}
if (sigBuilder_ == null) {
sig_ = null;
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertCreateReq_descriptor;
}
public org.hyperledger.protos.Ca.TCertCreateReq getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.TCertCreateReq.getDefaultInstance();
}
public org.hyperledger.protos.Ca.TCertCreateReq build() {
org.hyperledger.protos.Ca.TCertCreateReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.TCertCreateReq buildPartial() {
org.hyperledger.protos.Ca.TCertCreateReq result = new org.hyperledger.protos.Ca.TCertCreateReq(this);
if (tsBuilder_ == null) {
result.ts_ = ts_;
} else {
result.ts_ = tsBuilder_.build();
}
if (idBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
if (pubBuilder_ == null) {
result.pub_ = pub_;
} else {
result.pub_ = pubBuilder_.build();
}
if (sigBuilder_ == null) {
result.sig_ = sig_;
} else {
result.sig_ = sigBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.TCertCreateReq) {
return mergeFrom((org.hyperledger.protos.Ca.TCertCreateReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.TCertCreateReq other) {
if (other == org.hyperledger.protos.Ca.TCertCreateReq.getDefaultInstance()) return this;
if (other.hasTs()) {
mergeTs(other.getTs());
}
if (other.hasId()) {
mergeId(other.getId());
}
if (other.hasPub()) {
mergePub(other.getPub());
}
if (other.hasSig()) {
mergeSig(other.getSig());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.TCertCreateReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.TCertCreateReq) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.Timestamp ts_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> tsBuilder_;
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public boolean hasTs() {
return tsBuilder_ != null || ts_ != null;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.Timestamp getTs() {
if (tsBuilder_ == null) {
return ts_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
} else {
return tsBuilder_.getMessage();
}
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder setTs(com.google.protobuf.Timestamp value) {
if (tsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ts_ = value;
onChanged();
} else {
tsBuilder_.setMessage(value);
}
return this;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder setTs(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (tsBuilder_ == null) {
ts_ = builderForValue.build();
onChanged();
} else {
tsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder mergeTs(com.google.protobuf.Timestamp value) {
if (tsBuilder_ == null) {
if (ts_ != null) {
ts_ =
com.google.protobuf.Timestamp.newBuilder(ts_).mergeFrom(value).buildPartial();
} else {
ts_ = value;
}
onChanged();
} else {
tsBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder clearTs() {
if (tsBuilder_ == null) {
ts_ = null;
onChanged();
} else {
ts_ = null;
tsBuilder_ = null;
}
return this;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.Timestamp.Builder getTsBuilder() {
onChanged();
return getTsFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.TimestampOrBuilder getTsOrBuilder() {
if (tsBuilder_ != null) {
return tsBuilder_.getMessageOrBuilder();
} else {
return ts_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
}
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getTsFieldBuilder() {
if (tsBuilder_ == null) {
tsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getTs(),
getParentForChildren(),
isClean());
ts_ = null;
}
return tsBuilder_;
}
private org.hyperledger.protos.Ca.Identity id_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder> idBuilder_;
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
public boolean hasId() {
return idBuilder_ != null || id_ != null;
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.Identity getId() {
if (idBuilder_ == null) {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
} else {
return idBuilder_.getMessage();
}
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
public Builder setId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
idBuilder_.setMessage(value);
}
return this;
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
public Builder setId(
org.hyperledger.protos.Ca.Identity.Builder builderForValue) {
if (idBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
idBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
public Builder mergeId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (id_ != null) {
id_ =
org.hyperledger.protos.Ca.Identity.newBuilder(id_).mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
idBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = null;
onChanged();
} else {
id_ = null;
idBuilder_ = null;
}
return this;
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.Identity.Builder getIdBuilder() {
onChanged();
return getIdFieldBuilder().getBuilder();
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
return id_ == null ?
org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>(
getId(),
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
private org.hyperledger.protos.Ca.PublicKey pub_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.PublicKey, org.hyperledger.protos.Ca.PublicKey.Builder, org.hyperledger.protos.Ca.PublicKeyOrBuilder> pubBuilder_;
/**
* optional .protos.PublicKey pub = 3;
*/
public boolean hasPub() {
return pubBuilder_ != null || pub_ != null;
}
/**
* optional .protos.PublicKey pub = 3;
*/
public org.hyperledger.protos.Ca.PublicKey getPub() {
if (pubBuilder_ == null) {
return pub_ == null ? org.hyperledger.protos.Ca.PublicKey.getDefaultInstance() : pub_;
} else {
return pubBuilder_.getMessage();
}
}
/**
* optional .protos.PublicKey pub = 3;
*/
public Builder setPub(org.hyperledger.protos.Ca.PublicKey value) {
if (pubBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pub_ = value;
onChanged();
} else {
pubBuilder_.setMessage(value);
}
return this;
}
/**
* optional .protos.PublicKey pub = 3;
*/
public Builder setPub(
org.hyperledger.protos.Ca.PublicKey.Builder builderForValue) {
if (pubBuilder_ == null) {
pub_ = builderForValue.build();
onChanged();
} else {
pubBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .protos.PublicKey pub = 3;
*/
public Builder mergePub(org.hyperledger.protos.Ca.PublicKey value) {
if (pubBuilder_ == null) {
if (pub_ != null) {
pub_ =
org.hyperledger.protos.Ca.PublicKey.newBuilder(pub_).mergeFrom(value).buildPartial();
} else {
pub_ = value;
}
onChanged();
} else {
pubBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .protos.PublicKey pub = 3;
*/
public Builder clearPub() {
if (pubBuilder_ == null) {
pub_ = null;
onChanged();
} else {
pub_ = null;
pubBuilder_ = null;
}
return this;
}
/**
* optional .protos.PublicKey pub = 3;
*/
public org.hyperledger.protos.Ca.PublicKey.Builder getPubBuilder() {
onChanged();
return getPubFieldBuilder().getBuilder();
}
/**
* optional .protos.PublicKey pub = 3;
*/
public org.hyperledger.protos.Ca.PublicKeyOrBuilder getPubOrBuilder() {
if (pubBuilder_ != null) {
return pubBuilder_.getMessageOrBuilder();
} else {
return pub_ == null ?
org.hyperledger.protos.Ca.PublicKey.getDefaultInstance() : pub_;
}
}
/**
* optional .protos.PublicKey pub = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.PublicKey, org.hyperledger.protos.Ca.PublicKey.Builder, org.hyperledger.protos.Ca.PublicKeyOrBuilder>
getPubFieldBuilder() {
if (pubBuilder_ == null) {
pubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.PublicKey, org.hyperledger.protos.Ca.PublicKey.Builder, org.hyperledger.protos.Ca.PublicKeyOrBuilder>(
getPub(),
getParentForChildren(),
isClean());
pub_ = null;
}
return pubBuilder_;
}
private org.hyperledger.protos.Ca.Signature sig_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder> sigBuilder_;
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
public boolean hasSig() {
return sigBuilder_ != null || sig_ != null;
}
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
if (sigBuilder_ == null) {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
} else {
return sigBuilder_.getMessage();
}
}
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
public Builder setSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sig_ = value;
onChanged();
} else {
sigBuilder_.setMessage(value);
}
return this;
}
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
public Builder setSig(
org.hyperledger.protos.Ca.Signature.Builder builderForValue) {
if (sigBuilder_ == null) {
sig_ = builderForValue.build();
onChanged();
} else {
sigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
public Builder mergeSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (sig_ != null) {
sig_ =
org.hyperledger.protos.Ca.Signature.newBuilder(sig_).mergeFrom(value).buildPartial();
} else {
sig_ = value;
}
onChanged();
} else {
sigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
public Builder clearSig() {
if (sigBuilder_ == null) {
sig_ = null;
onChanged();
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
public org.hyperledger.protos.Ca.Signature.Builder getSigBuilder() {
onChanged();
return getSigFieldBuilder().getBuilder();
}
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
if (sigBuilder_ != null) {
return sigBuilder_.getMessageOrBuilder();
} else {
return sig_ == null ?
org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
}
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>
getSigFieldBuilder() {
if (sigBuilder_ == null) {
sigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>(
getSig(),
getParentForChildren(),
isClean());
sig_ = null;
}
return sigBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.TCertCreateReq)
}
// @@protoc_insertion_point(class_scope:protos.TCertCreateReq)
private static final org.hyperledger.protos.Ca.TCertCreateReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.TCertCreateReq();
}
public static org.hyperledger.protos.Ca.TCertCreateReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TCertCreateReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TCertCreateReq(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.TCertCreateReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TCertCreateRespOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.TCertCreateResp)
com.google.protobuf.MessageOrBuilder {
/**
* optional .protos.Cert cert = 1;
*/
boolean hasCert();
/**
* optional .protos.Cert cert = 1;
*/
org.hyperledger.protos.Ca.Cert getCert();
/**
* optional .protos.Cert cert = 1;
*/
org.hyperledger.protos.Ca.CertOrBuilder getCertOrBuilder();
}
/**
* Protobuf type {@code protos.TCertCreateResp}
*/
public static final class TCertCreateResp extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.TCertCreateResp)
TCertCreateRespOrBuilder {
// Use TCertCreateResp.newBuilder() to construct.
private TCertCreateResp(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TCertCreateResp() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private TCertCreateResp(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
org.hyperledger.protos.Ca.Cert.Builder subBuilder = null;
if (cert_ != null) {
subBuilder = cert_.toBuilder();
}
cert_ = input.readMessage(org.hyperledger.protos.Ca.Cert.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(cert_);
cert_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertCreateResp_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertCreateResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TCertCreateResp.class, org.hyperledger.protos.Ca.TCertCreateResp.Builder.class);
}
public static final int CERT_FIELD_NUMBER = 1;
private org.hyperledger.protos.Ca.Cert cert_;
/**
* optional .protos.Cert cert = 1;
*/
public boolean hasCert() {
return cert_ != null;
}
/**
* optional .protos.Cert cert = 1;
*/
public org.hyperledger.protos.Ca.Cert getCert() {
return cert_ == null ? org.hyperledger.protos.Ca.Cert.getDefaultInstance() : cert_;
}
/**
* optional .protos.Cert cert = 1;
*/
public org.hyperledger.protos.Ca.CertOrBuilder getCertOrBuilder() {
return getCert();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (cert_ != null) {
output.writeMessage(1, getCert());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (cert_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCert());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.TCertCreateResp)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.TCertCreateResp other = (org.hyperledger.protos.Ca.TCertCreateResp) obj;
boolean result = true;
result = result && (hasCert() == other.hasCert());
if (hasCert()) {
result = result && getCert()
.equals(other.getCert());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasCert()) {
hash = (37 * hash) + CERT_FIELD_NUMBER;
hash = (53 * hash) + getCert().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.TCertCreateResp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TCertCreateResp 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.protos.Ca.TCertCreateResp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TCertCreateResp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.TCertCreateResp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertCreateResp 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.protos.Ca.TCertCreateResp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertCreateResp 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.protos.Ca.TCertCreateResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertCreateResp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.TCertCreateResp prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.TCertCreateResp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.TCertCreateResp)
org.hyperledger.protos.Ca.TCertCreateRespOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertCreateResp_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertCreateResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TCertCreateResp.class, org.hyperledger.protos.Ca.TCertCreateResp.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.TCertCreateResp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (certBuilder_ == null) {
cert_ = null;
} else {
cert_ = null;
certBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertCreateResp_descriptor;
}
public org.hyperledger.protos.Ca.TCertCreateResp getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.TCertCreateResp.getDefaultInstance();
}
public org.hyperledger.protos.Ca.TCertCreateResp build() {
org.hyperledger.protos.Ca.TCertCreateResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.TCertCreateResp buildPartial() {
org.hyperledger.protos.Ca.TCertCreateResp result = new org.hyperledger.protos.Ca.TCertCreateResp(this);
if (certBuilder_ == null) {
result.cert_ = cert_;
} else {
result.cert_ = certBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.TCertCreateResp) {
return mergeFrom((org.hyperledger.protos.Ca.TCertCreateResp)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.TCertCreateResp other) {
if (other == org.hyperledger.protos.Ca.TCertCreateResp.getDefaultInstance()) return this;
if (other.hasCert()) {
mergeCert(other.getCert());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.TCertCreateResp parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.TCertCreateResp) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.hyperledger.protos.Ca.Cert cert_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder> certBuilder_;
/**
* optional .protos.Cert cert = 1;
*/
public boolean hasCert() {
return certBuilder_ != null || cert_ != null;
}
/**
* optional .protos.Cert cert = 1;
*/
public org.hyperledger.protos.Ca.Cert getCert() {
if (certBuilder_ == null) {
return cert_ == null ? org.hyperledger.protos.Ca.Cert.getDefaultInstance() : cert_;
} else {
return certBuilder_.getMessage();
}
}
/**
* optional .protos.Cert cert = 1;
*/
public Builder setCert(org.hyperledger.protos.Ca.Cert value) {
if (certBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cert_ = value;
onChanged();
} else {
certBuilder_.setMessage(value);
}
return this;
}
/**
* optional .protos.Cert cert = 1;
*/
public Builder setCert(
org.hyperledger.protos.Ca.Cert.Builder builderForValue) {
if (certBuilder_ == null) {
cert_ = builderForValue.build();
onChanged();
} else {
certBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .protos.Cert cert = 1;
*/
public Builder mergeCert(org.hyperledger.protos.Ca.Cert value) {
if (certBuilder_ == null) {
if (cert_ != null) {
cert_ =
org.hyperledger.protos.Ca.Cert.newBuilder(cert_).mergeFrom(value).buildPartial();
} else {
cert_ = value;
}
onChanged();
} else {
certBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .protos.Cert cert = 1;
*/
public Builder clearCert() {
if (certBuilder_ == null) {
cert_ = null;
onChanged();
} else {
cert_ = null;
certBuilder_ = null;
}
return this;
}
/**
* optional .protos.Cert cert = 1;
*/
public org.hyperledger.protos.Ca.Cert.Builder getCertBuilder() {
onChanged();
return getCertFieldBuilder().getBuilder();
}
/**
* optional .protos.Cert cert = 1;
*/
public org.hyperledger.protos.Ca.CertOrBuilder getCertOrBuilder() {
if (certBuilder_ != null) {
return certBuilder_.getMessageOrBuilder();
} else {
return cert_ == null ?
org.hyperledger.protos.Ca.Cert.getDefaultInstance() : cert_;
}
}
/**
* optional .protos.Cert cert = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder>
getCertFieldBuilder() {
if (certBuilder_ == null) {
certBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder>(
getCert(),
getParentForChildren(),
isClean());
cert_ = null;
}
return certBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.TCertCreateResp)
}
// @@protoc_insertion_point(class_scope:protos.TCertCreateResp)
private static final org.hyperledger.protos.Ca.TCertCreateResp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.TCertCreateResp();
}
public static org.hyperledger.protos.Ca.TCertCreateResp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TCertCreateResp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TCertCreateResp(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.TCertCreateResp getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TCertCreateSetReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.TCertCreateSetReq)
com.google.protobuf.MessageOrBuilder {
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
boolean hasTs();
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
com.google.protobuf.Timestamp getTs();
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
com.google.protobuf.TimestampOrBuilder getTsOrBuilder();
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
boolean hasId();
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
org.hyperledger.protos.Ca.Identity getId();
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder();
/**
*
* number of certs to create
*
*
* optional uint32 num = 3;
*/
int getNum();
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
java.util.List
getAttributesList();
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
org.hyperledger.protos.Ca.TCertAttribute getAttributes(int index);
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
int getAttributesCount();
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
java.util.List extends org.hyperledger.protos.Ca.TCertAttributeOrBuilder>
getAttributesOrBuilderList();
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
org.hyperledger.protos.Ca.TCertAttributeOrBuilder getAttributesOrBuilder(
int index);
/**
*
* sign(priv, ts | id | attributes | num)
*
*
* optional .protos.Signature sig = 5;
*/
boolean hasSig();
/**
*
* sign(priv, ts | id | attributes | num)
*
*
* optional .protos.Signature sig = 5;
*/
org.hyperledger.protos.Ca.Signature getSig();
/**
*
* sign(priv, ts | id | attributes | num)
*
*
* optional .protos.Signature sig = 5;
*/
org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder();
}
/**
* Protobuf type {@code protos.TCertCreateSetReq}
*/
public static final class TCertCreateSetReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.TCertCreateSetReq)
TCertCreateSetReqOrBuilder {
// Use TCertCreateSetReq.newBuilder() to construct.
private TCertCreateSetReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TCertCreateSetReq() {
num_ = 0;
attributes_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private TCertCreateSetReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (ts_ != null) {
subBuilder = ts_.toBuilder();
}
ts_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ts_);
ts_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.hyperledger.protos.Ca.Identity.Builder subBuilder = null;
if (id_ != null) {
subBuilder = id_.toBuilder();
}
id_ = input.readMessage(org.hyperledger.protos.Ca.Identity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(id_);
id_ = subBuilder.buildPartial();
}
break;
}
case 24: {
num_ = input.readUInt32();
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
attributes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
attributes_.add(
input.readMessage(org.hyperledger.protos.Ca.TCertAttribute.parser(), extensionRegistry));
break;
}
case 42: {
org.hyperledger.protos.Ca.Signature.Builder subBuilder = null;
if (sig_ != null) {
subBuilder = sig_.toBuilder();
}
sig_ = input.readMessage(org.hyperledger.protos.Ca.Signature.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sig_);
sig_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
attributes_ = java.util.Collections.unmodifiableList(attributes_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertCreateSetReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertCreateSetReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TCertCreateSetReq.class, org.hyperledger.protos.Ca.TCertCreateSetReq.Builder.class);
}
private int bitField0_;
public static final int TS_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp ts_;
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public boolean hasTs() {
return ts_ != null;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.Timestamp getTs() {
return ts_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.TimestampOrBuilder getTsOrBuilder() {
return getTs();
}
public static final int ID_FIELD_NUMBER = 2;
private org.hyperledger.protos.Ca.Identity id_;
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
public boolean hasId() {
return id_ != null;
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.Identity getId() {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
return getId();
}
public static final int NUM_FIELD_NUMBER = 3;
private int num_;
/**
*
* number of certs to create
*
*
* optional uint32 num = 3;
*/
public int getNum() {
return num_;
}
public static final int ATTRIBUTES_FIELD_NUMBER = 4;
private java.util.List attributes_;
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public java.util.List getAttributesList() {
return attributes_;
}
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public java.util.List extends org.hyperledger.protos.Ca.TCertAttributeOrBuilder>
getAttributesOrBuilderList() {
return attributes_;
}
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public int getAttributesCount() {
return attributes_.size();
}
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public org.hyperledger.protos.Ca.TCertAttribute getAttributes(int index) {
return attributes_.get(index);
}
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public org.hyperledger.protos.Ca.TCertAttributeOrBuilder getAttributesOrBuilder(
int index) {
return attributes_.get(index);
}
public static final int SIG_FIELD_NUMBER = 5;
private org.hyperledger.protos.Ca.Signature sig_;
/**
*
* sign(priv, ts | id | attributes | num)
*
*
* optional .protos.Signature sig = 5;
*/
public boolean hasSig() {
return sig_ != null;
}
/**
*
* sign(priv, ts | id | attributes | num)
*
*
* optional .protos.Signature sig = 5;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
/**
*
* sign(priv, ts | id | attributes | num)
*
*
* optional .protos.Signature sig = 5;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
return getSig();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (ts_ != null) {
output.writeMessage(1, getTs());
}
if (id_ != null) {
output.writeMessage(2, getId());
}
if (num_ != 0) {
output.writeUInt32(3, num_);
}
for (int i = 0; i < attributes_.size(); i++) {
output.writeMessage(4, attributes_.get(i));
}
if (sig_ != null) {
output.writeMessage(5, getSig());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (ts_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTs());
}
if (id_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getId());
}
if (num_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, num_);
}
for (int i = 0; i < attributes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, attributes_.get(i));
}
if (sig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getSig());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.TCertCreateSetReq)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.TCertCreateSetReq other = (org.hyperledger.protos.Ca.TCertCreateSetReq) obj;
boolean result = true;
result = result && (hasTs() == other.hasTs());
if (hasTs()) {
result = result && getTs()
.equals(other.getTs());
}
result = result && (hasId() == other.hasId());
if (hasId()) {
result = result && getId()
.equals(other.getId());
}
result = result && (getNum()
== other.getNum());
result = result && getAttributesList()
.equals(other.getAttributesList());
result = result && (hasSig() == other.hasSig());
if (hasSig()) {
result = result && getSig()
.equals(other.getSig());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasTs()) {
hash = (37 * hash) + TS_FIELD_NUMBER;
hash = (53 * hash) + getTs().hashCode();
}
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
hash = (37 * hash) + NUM_FIELD_NUMBER;
hash = (53 * hash) + getNum();
if (getAttributesCount() > 0) {
hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER;
hash = (53 * hash) + getAttributesList().hashCode();
}
if (hasSig()) {
hash = (37 * hash) + SIG_FIELD_NUMBER;
hash = (53 * hash) + getSig().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.TCertCreateSetReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TCertCreateSetReq 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.protos.Ca.TCertCreateSetReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TCertCreateSetReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.TCertCreateSetReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertCreateSetReq 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.protos.Ca.TCertCreateSetReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertCreateSetReq 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.protos.Ca.TCertCreateSetReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertCreateSetReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.TCertCreateSetReq prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.TCertCreateSetReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.TCertCreateSetReq)
org.hyperledger.protos.Ca.TCertCreateSetReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertCreateSetReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertCreateSetReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TCertCreateSetReq.class, org.hyperledger.protos.Ca.TCertCreateSetReq.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.TCertCreateSetReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAttributesFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (tsBuilder_ == null) {
ts_ = null;
} else {
ts_ = null;
tsBuilder_ = null;
}
if (idBuilder_ == null) {
id_ = null;
} else {
id_ = null;
idBuilder_ = null;
}
num_ = 0;
if (attributesBuilder_ == null) {
attributes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
attributesBuilder_.clear();
}
if (sigBuilder_ == null) {
sig_ = null;
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertCreateSetReq_descriptor;
}
public org.hyperledger.protos.Ca.TCertCreateSetReq getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.TCertCreateSetReq.getDefaultInstance();
}
public org.hyperledger.protos.Ca.TCertCreateSetReq build() {
org.hyperledger.protos.Ca.TCertCreateSetReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.TCertCreateSetReq buildPartial() {
org.hyperledger.protos.Ca.TCertCreateSetReq result = new org.hyperledger.protos.Ca.TCertCreateSetReq(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (tsBuilder_ == null) {
result.ts_ = ts_;
} else {
result.ts_ = tsBuilder_.build();
}
if (idBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
result.num_ = num_;
if (attributesBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
attributes_ = java.util.Collections.unmodifiableList(attributes_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.attributes_ = attributes_;
} else {
result.attributes_ = attributesBuilder_.build();
}
if (sigBuilder_ == null) {
result.sig_ = sig_;
} else {
result.sig_ = sigBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.TCertCreateSetReq) {
return mergeFrom((org.hyperledger.protos.Ca.TCertCreateSetReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.TCertCreateSetReq other) {
if (other == org.hyperledger.protos.Ca.TCertCreateSetReq.getDefaultInstance()) return this;
if (other.hasTs()) {
mergeTs(other.getTs());
}
if (other.hasId()) {
mergeId(other.getId());
}
if (other.getNum() != 0) {
setNum(other.getNum());
}
if (attributesBuilder_ == null) {
if (!other.attributes_.isEmpty()) {
if (attributes_.isEmpty()) {
attributes_ = other.attributes_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureAttributesIsMutable();
attributes_.addAll(other.attributes_);
}
onChanged();
}
} else {
if (!other.attributes_.isEmpty()) {
if (attributesBuilder_.isEmpty()) {
attributesBuilder_.dispose();
attributesBuilder_ = null;
attributes_ = other.attributes_;
bitField0_ = (bitField0_ & ~0x00000008);
attributesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAttributesFieldBuilder() : null;
} else {
attributesBuilder_.addAllMessages(other.attributes_);
}
}
}
if (other.hasSig()) {
mergeSig(other.getSig());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.TCertCreateSetReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.TCertCreateSetReq) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.Timestamp ts_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> tsBuilder_;
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public boolean hasTs() {
return tsBuilder_ != null || ts_ != null;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.Timestamp getTs() {
if (tsBuilder_ == null) {
return ts_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
} else {
return tsBuilder_.getMessage();
}
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder setTs(com.google.protobuf.Timestamp value) {
if (tsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ts_ = value;
onChanged();
} else {
tsBuilder_.setMessage(value);
}
return this;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder setTs(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (tsBuilder_ == null) {
ts_ = builderForValue.build();
onChanged();
} else {
tsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder mergeTs(com.google.protobuf.Timestamp value) {
if (tsBuilder_ == null) {
if (ts_ != null) {
ts_ =
com.google.protobuf.Timestamp.newBuilder(ts_).mergeFrom(value).buildPartial();
} else {
ts_ = value;
}
onChanged();
} else {
tsBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder clearTs() {
if (tsBuilder_ == null) {
ts_ = null;
onChanged();
} else {
ts_ = null;
tsBuilder_ = null;
}
return this;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.Timestamp.Builder getTsBuilder() {
onChanged();
return getTsFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.TimestampOrBuilder getTsOrBuilder() {
if (tsBuilder_ != null) {
return tsBuilder_.getMessageOrBuilder();
} else {
return ts_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
}
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getTsFieldBuilder() {
if (tsBuilder_ == null) {
tsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getTs(),
getParentForChildren(),
isClean());
ts_ = null;
}
return tsBuilder_;
}
private org.hyperledger.protos.Ca.Identity id_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder> idBuilder_;
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
public boolean hasId() {
return idBuilder_ != null || id_ != null;
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.Identity getId() {
if (idBuilder_ == null) {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
} else {
return idBuilder_.getMessage();
}
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
public Builder setId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
idBuilder_.setMessage(value);
}
return this;
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
public Builder setId(
org.hyperledger.protos.Ca.Identity.Builder builderForValue) {
if (idBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
idBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
public Builder mergeId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (id_ != null) {
id_ =
org.hyperledger.protos.Ca.Identity.newBuilder(id_).mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
idBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = null;
onChanged();
} else {
id_ = null;
idBuilder_ = null;
}
return this;
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.Identity.Builder getIdBuilder() {
onChanged();
return getIdFieldBuilder().getBuilder();
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
return id_ == null ?
org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity id = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>(
getId(),
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
private int num_ ;
/**
*
* number of certs to create
*
*
* optional uint32 num = 3;
*/
public int getNum() {
return num_;
}
/**
*
* number of certs to create
*
*
* optional uint32 num = 3;
*/
public Builder setNum(int value) {
num_ = value;
onChanged();
return this;
}
/**
*
* number of certs to create
*
*
* optional uint32 num = 3;
*/
public Builder clearNum() {
num_ = 0;
onChanged();
return this;
}
private java.util.List attributes_ =
java.util.Collections.emptyList();
private void ensureAttributesIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
attributes_ = new java.util.ArrayList(attributes_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.hyperledger.protos.Ca.TCertAttribute, org.hyperledger.protos.Ca.TCertAttribute.Builder, org.hyperledger.protos.Ca.TCertAttributeOrBuilder> attributesBuilder_;
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public java.util.List getAttributesList() {
if (attributesBuilder_ == null) {
return java.util.Collections.unmodifiableList(attributes_);
} else {
return attributesBuilder_.getMessageList();
}
}
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public int getAttributesCount() {
if (attributesBuilder_ == null) {
return attributes_.size();
} else {
return attributesBuilder_.getCount();
}
}
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public org.hyperledger.protos.Ca.TCertAttribute getAttributes(int index) {
if (attributesBuilder_ == null) {
return attributes_.get(index);
} else {
return attributesBuilder_.getMessage(index);
}
}
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public Builder setAttributes(
int index, org.hyperledger.protos.Ca.TCertAttribute value) {
if (attributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesIsMutable();
attributes_.set(index, value);
onChanged();
} else {
attributesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public Builder setAttributes(
int index, org.hyperledger.protos.Ca.TCertAttribute.Builder builderForValue) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.set(index, builderForValue.build());
onChanged();
} else {
attributesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public Builder addAttributes(org.hyperledger.protos.Ca.TCertAttribute value) {
if (attributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesIsMutable();
attributes_.add(value);
onChanged();
} else {
attributesBuilder_.addMessage(value);
}
return this;
}
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public Builder addAttributes(
int index, org.hyperledger.protos.Ca.TCertAttribute value) {
if (attributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesIsMutable();
attributes_.add(index, value);
onChanged();
} else {
attributesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public Builder addAttributes(
org.hyperledger.protos.Ca.TCertAttribute.Builder builderForValue) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.add(builderForValue.build());
onChanged();
} else {
attributesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public Builder addAttributes(
int index, org.hyperledger.protos.Ca.TCertAttribute.Builder builderForValue) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.add(index, builderForValue.build());
onChanged();
} else {
attributesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public Builder addAllAttributes(
java.lang.Iterable extends org.hyperledger.protos.Ca.TCertAttribute> values) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, attributes_);
onChanged();
} else {
attributesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public Builder clearAttributes() {
if (attributesBuilder_ == null) {
attributes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
attributesBuilder_.clear();
}
return this;
}
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public Builder removeAttributes(int index) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.remove(index);
onChanged();
} else {
attributesBuilder_.remove(index);
}
return this;
}
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public org.hyperledger.protos.Ca.TCertAttribute.Builder getAttributesBuilder(
int index) {
return getAttributesFieldBuilder().getBuilder(index);
}
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public org.hyperledger.protos.Ca.TCertAttributeOrBuilder getAttributesOrBuilder(
int index) {
if (attributesBuilder_ == null) {
return attributes_.get(index); } else {
return attributesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public java.util.List extends org.hyperledger.protos.Ca.TCertAttributeOrBuilder>
getAttributesOrBuilderList() {
if (attributesBuilder_ != null) {
return attributesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(attributes_);
}
}
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public org.hyperledger.protos.Ca.TCertAttribute.Builder addAttributesBuilder() {
return getAttributesFieldBuilder().addBuilder(
org.hyperledger.protos.Ca.TCertAttribute.getDefaultInstance());
}
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public org.hyperledger.protos.Ca.TCertAttribute.Builder addAttributesBuilder(
int index) {
return getAttributesFieldBuilder().addBuilder(
index, org.hyperledger.protos.Ca.TCertAttribute.getDefaultInstance());
}
/**
*
* array with the attributes to add to each TCert.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public java.util.List
getAttributesBuilderList() {
return getAttributesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.hyperledger.protos.Ca.TCertAttribute, org.hyperledger.protos.Ca.TCertAttribute.Builder, org.hyperledger.protos.Ca.TCertAttributeOrBuilder>
getAttributesFieldBuilder() {
if (attributesBuilder_ == null) {
attributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.hyperledger.protos.Ca.TCertAttribute, org.hyperledger.protos.Ca.TCertAttribute.Builder, org.hyperledger.protos.Ca.TCertAttributeOrBuilder>(
attributes_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
attributes_ = null;
}
return attributesBuilder_;
}
private org.hyperledger.protos.Ca.Signature sig_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder> sigBuilder_;
/**
*
* sign(priv, ts | id | attributes | num)
*
*
* optional .protos.Signature sig = 5;
*/
public boolean hasSig() {
return sigBuilder_ != null || sig_ != null;
}
/**
*
* sign(priv, ts | id | attributes | num)
*
*
* optional .protos.Signature sig = 5;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
if (sigBuilder_ == null) {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
} else {
return sigBuilder_.getMessage();
}
}
/**
*
* sign(priv, ts | id | attributes | num)
*
*
* optional .protos.Signature sig = 5;
*/
public Builder setSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sig_ = value;
onChanged();
} else {
sigBuilder_.setMessage(value);
}
return this;
}
/**
*
* sign(priv, ts | id | attributes | num)
*
*
* optional .protos.Signature sig = 5;
*/
public Builder setSig(
org.hyperledger.protos.Ca.Signature.Builder builderForValue) {
if (sigBuilder_ == null) {
sig_ = builderForValue.build();
onChanged();
} else {
sigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* sign(priv, ts | id | attributes | num)
*
*
* optional .protos.Signature sig = 5;
*/
public Builder mergeSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (sig_ != null) {
sig_ =
org.hyperledger.protos.Ca.Signature.newBuilder(sig_).mergeFrom(value).buildPartial();
} else {
sig_ = value;
}
onChanged();
} else {
sigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* sign(priv, ts | id | attributes | num)
*
*
* optional .protos.Signature sig = 5;
*/
public Builder clearSig() {
if (sigBuilder_ == null) {
sig_ = null;
onChanged();
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
/**
*
* sign(priv, ts | id | attributes | num)
*
*
* optional .protos.Signature sig = 5;
*/
public org.hyperledger.protos.Ca.Signature.Builder getSigBuilder() {
onChanged();
return getSigFieldBuilder().getBuilder();
}
/**
*
* sign(priv, ts | id | attributes | num)
*
*
* optional .protos.Signature sig = 5;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
if (sigBuilder_ != null) {
return sigBuilder_.getMessageOrBuilder();
} else {
return sig_ == null ?
org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
}
/**
*
* sign(priv, ts | id | attributes | num)
*
*
* optional .protos.Signature sig = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>
getSigFieldBuilder() {
if (sigBuilder_ == null) {
sigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>(
getSig(),
getParentForChildren(),
isClean());
sig_ = null;
}
return sigBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.TCertCreateSetReq)
}
// @@protoc_insertion_point(class_scope:protos.TCertCreateSetReq)
private static final org.hyperledger.protos.Ca.TCertCreateSetReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.TCertCreateSetReq();
}
public static org.hyperledger.protos.Ca.TCertCreateSetReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TCertCreateSetReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TCertCreateSetReq(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.TCertCreateSetReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TCertAttributeOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.TCertAttribute)
com.google.protobuf.MessageOrBuilder {
/**
* optional string attributeName = 1;
*/
java.lang.String getAttributeName();
/**
* optional string attributeName = 1;
*/
com.google.protobuf.ByteString
getAttributeNameBytes();
}
/**
* Protobuf type {@code protos.TCertAttribute}
*/
public static final class TCertAttribute extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.TCertAttribute)
TCertAttributeOrBuilder {
// Use TCertAttribute.newBuilder() to construct.
private TCertAttribute(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TCertAttribute() {
attributeName_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private TCertAttribute(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
attributeName_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertAttribute_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertAttribute_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TCertAttribute.class, org.hyperledger.protos.Ca.TCertAttribute.Builder.class);
}
public static final int ATTRIBUTENAME_FIELD_NUMBER = 1;
private volatile java.lang.Object attributeName_;
/**
* optional string attributeName = 1;
*/
public java.lang.String getAttributeName() {
java.lang.Object ref = attributeName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
attributeName_ = s;
return s;
}
}
/**
* optional string attributeName = 1;
*/
public com.google.protobuf.ByteString
getAttributeNameBytes() {
java.lang.Object ref = attributeName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
attributeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getAttributeNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attributeName_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getAttributeNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, attributeName_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.TCertAttribute)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.TCertAttribute other = (org.hyperledger.protos.Ca.TCertAttribute) obj;
boolean result = true;
result = result && getAttributeName()
.equals(other.getAttributeName());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + ATTRIBUTENAME_FIELD_NUMBER;
hash = (53 * hash) + getAttributeName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.TCertAttribute parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TCertAttribute 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.protos.Ca.TCertAttribute parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TCertAttribute parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.TCertAttribute parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertAttribute 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.protos.Ca.TCertAttribute parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertAttribute 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.protos.Ca.TCertAttribute parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertAttribute parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.TCertAttribute prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.TCertAttribute}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.TCertAttribute)
org.hyperledger.protos.Ca.TCertAttributeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertAttribute_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertAttribute_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TCertAttribute.class, org.hyperledger.protos.Ca.TCertAttribute.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.TCertAttribute.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
attributeName_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertAttribute_descriptor;
}
public org.hyperledger.protos.Ca.TCertAttribute getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.TCertAttribute.getDefaultInstance();
}
public org.hyperledger.protos.Ca.TCertAttribute build() {
org.hyperledger.protos.Ca.TCertAttribute result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.TCertAttribute buildPartial() {
org.hyperledger.protos.Ca.TCertAttribute result = new org.hyperledger.protos.Ca.TCertAttribute(this);
result.attributeName_ = attributeName_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.TCertAttribute) {
return mergeFrom((org.hyperledger.protos.Ca.TCertAttribute)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.TCertAttribute other) {
if (other == org.hyperledger.protos.Ca.TCertAttribute.getDefaultInstance()) return this;
if (!other.getAttributeName().isEmpty()) {
attributeName_ = other.attributeName_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.TCertAttribute parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.TCertAttribute) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object attributeName_ = "";
/**
* optional string attributeName = 1;
*/
public java.lang.String getAttributeName() {
java.lang.Object ref = attributeName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
attributeName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string attributeName = 1;
*/
public com.google.protobuf.ByteString
getAttributeNameBytes() {
java.lang.Object ref = attributeName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
attributeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string attributeName = 1;
*/
public Builder setAttributeName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
attributeName_ = value;
onChanged();
return this;
}
/**
* optional string attributeName = 1;
*/
public Builder clearAttributeName() {
attributeName_ = getDefaultInstance().getAttributeName();
onChanged();
return this;
}
/**
* optional string attributeName = 1;
*/
public Builder setAttributeNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
attributeName_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.TCertAttribute)
}
// @@protoc_insertion_point(class_scope:protos.TCertAttribute)
private static final org.hyperledger.protos.Ca.TCertAttribute DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.TCertAttribute();
}
public static org.hyperledger.protos.Ca.TCertAttribute getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TCertAttribute parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TCertAttribute(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.TCertAttribute getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TCertCreateSetRespOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.TCertCreateSetResp)
com.google.protobuf.MessageOrBuilder {
/**
* optional .protos.CertSet certs = 1;
*/
boolean hasCerts();
/**
* optional .protos.CertSet certs = 1;
*/
org.hyperledger.protos.Ca.CertSet getCerts();
/**
* optional .protos.CertSet certs = 1;
*/
org.hyperledger.protos.Ca.CertSetOrBuilder getCertsOrBuilder();
}
/**
* Protobuf type {@code protos.TCertCreateSetResp}
*/
public static final class TCertCreateSetResp extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.TCertCreateSetResp)
TCertCreateSetRespOrBuilder {
// Use TCertCreateSetResp.newBuilder() to construct.
private TCertCreateSetResp(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TCertCreateSetResp() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private TCertCreateSetResp(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
org.hyperledger.protos.Ca.CertSet.Builder subBuilder = null;
if (certs_ != null) {
subBuilder = certs_.toBuilder();
}
certs_ = input.readMessage(org.hyperledger.protos.Ca.CertSet.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(certs_);
certs_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertCreateSetResp_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertCreateSetResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TCertCreateSetResp.class, org.hyperledger.protos.Ca.TCertCreateSetResp.Builder.class);
}
public static final int CERTS_FIELD_NUMBER = 1;
private org.hyperledger.protos.Ca.CertSet certs_;
/**
* optional .protos.CertSet certs = 1;
*/
public boolean hasCerts() {
return certs_ != null;
}
/**
* optional .protos.CertSet certs = 1;
*/
public org.hyperledger.protos.Ca.CertSet getCerts() {
return certs_ == null ? org.hyperledger.protos.Ca.CertSet.getDefaultInstance() : certs_;
}
/**
* optional .protos.CertSet certs = 1;
*/
public org.hyperledger.protos.Ca.CertSetOrBuilder getCertsOrBuilder() {
return getCerts();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (certs_ != null) {
output.writeMessage(1, getCerts());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (certs_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCerts());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.TCertCreateSetResp)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.TCertCreateSetResp other = (org.hyperledger.protos.Ca.TCertCreateSetResp) obj;
boolean result = true;
result = result && (hasCerts() == other.hasCerts());
if (hasCerts()) {
result = result && getCerts()
.equals(other.getCerts());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasCerts()) {
hash = (37 * hash) + CERTS_FIELD_NUMBER;
hash = (53 * hash) + getCerts().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.TCertCreateSetResp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TCertCreateSetResp 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.protos.Ca.TCertCreateSetResp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TCertCreateSetResp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.TCertCreateSetResp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertCreateSetResp 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.protos.Ca.TCertCreateSetResp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertCreateSetResp 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.protos.Ca.TCertCreateSetResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertCreateSetResp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.TCertCreateSetResp prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.TCertCreateSetResp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.TCertCreateSetResp)
org.hyperledger.protos.Ca.TCertCreateSetRespOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertCreateSetResp_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertCreateSetResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TCertCreateSetResp.class, org.hyperledger.protos.Ca.TCertCreateSetResp.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.TCertCreateSetResp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (certsBuilder_ == null) {
certs_ = null;
} else {
certs_ = null;
certsBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertCreateSetResp_descriptor;
}
public org.hyperledger.protos.Ca.TCertCreateSetResp getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.TCertCreateSetResp.getDefaultInstance();
}
public org.hyperledger.protos.Ca.TCertCreateSetResp build() {
org.hyperledger.protos.Ca.TCertCreateSetResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.TCertCreateSetResp buildPartial() {
org.hyperledger.protos.Ca.TCertCreateSetResp result = new org.hyperledger.protos.Ca.TCertCreateSetResp(this);
if (certsBuilder_ == null) {
result.certs_ = certs_;
} else {
result.certs_ = certsBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.TCertCreateSetResp) {
return mergeFrom((org.hyperledger.protos.Ca.TCertCreateSetResp)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.TCertCreateSetResp other) {
if (other == org.hyperledger.protos.Ca.TCertCreateSetResp.getDefaultInstance()) return this;
if (other.hasCerts()) {
mergeCerts(other.getCerts());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.TCertCreateSetResp parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.TCertCreateSetResp) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.hyperledger.protos.Ca.CertSet certs_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.CertSet, org.hyperledger.protos.Ca.CertSet.Builder, org.hyperledger.protos.Ca.CertSetOrBuilder> certsBuilder_;
/**
* optional .protos.CertSet certs = 1;
*/
public boolean hasCerts() {
return certsBuilder_ != null || certs_ != null;
}
/**
* optional .protos.CertSet certs = 1;
*/
public org.hyperledger.protos.Ca.CertSet getCerts() {
if (certsBuilder_ == null) {
return certs_ == null ? org.hyperledger.protos.Ca.CertSet.getDefaultInstance() : certs_;
} else {
return certsBuilder_.getMessage();
}
}
/**
* optional .protos.CertSet certs = 1;
*/
public Builder setCerts(org.hyperledger.protos.Ca.CertSet value) {
if (certsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
certs_ = value;
onChanged();
} else {
certsBuilder_.setMessage(value);
}
return this;
}
/**
* optional .protos.CertSet certs = 1;
*/
public Builder setCerts(
org.hyperledger.protos.Ca.CertSet.Builder builderForValue) {
if (certsBuilder_ == null) {
certs_ = builderForValue.build();
onChanged();
} else {
certsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .protos.CertSet certs = 1;
*/
public Builder mergeCerts(org.hyperledger.protos.Ca.CertSet value) {
if (certsBuilder_ == null) {
if (certs_ != null) {
certs_ =
org.hyperledger.protos.Ca.CertSet.newBuilder(certs_).mergeFrom(value).buildPartial();
} else {
certs_ = value;
}
onChanged();
} else {
certsBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .protos.CertSet certs = 1;
*/
public Builder clearCerts() {
if (certsBuilder_ == null) {
certs_ = null;
onChanged();
} else {
certs_ = null;
certsBuilder_ = null;
}
return this;
}
/**
* optional .protos.CertSet certs = 1;
*/
public org.hyperledger.protos.Ca.CertSet.Builder getCertsBuilder() {
onChanged();
return getCertsFieldBuilder().getBuilder();
}
/**
* optional .protos.CertSet certs = 1;
*/
public org.hyperledger.protos.Ca.CertSetOrBuilder getCertsOrBuilder() {
if (certsBuilder_ != null) {
return certsBuilder_.getMessageOrBuilder();
} else {
return certs_ == null ?
org.hyperledger.protos.Ca.CertSet.getDefaultInstance() : certs_;
}
}
/**
* optional .protos.CertSet certs = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.CertSet, org.hyperledger.protos.Ca.CertSet.Builder, org.hyperledger.protos.Ca.CertSetOrBuilder>
getCertsFieldBuilder() {
if (certsBuilder_ == null) {
certsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.CertSet, org.hyperledger.protos.Ca.CertSet.Builder, org.hyperledger.protos.Ca.CertSetOrBuilder>(
getCerts(),
getParentForChildren(),
isClean());
certs_ = null;
}
return certsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.TCertCreateSetResp)
}
// @@protoc_insertion_point(class_scope:protos.TCertCreateSetResp)
private static final org.hyperledger.protos.Ca.TCertCreateSetResp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.TCertCreateSetResp();
}
public static org.hyperledger.protos.Ca.TCertCreateSetResp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TCertCreateSetResp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TCertCreateSetResp(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.TCertCreateSetResp getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TCertReadSetsReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.TCertReadSetsReq)
com.google.protobuf.MessageOrBuilder {
/**
* optional .google.protobuf.Timestamp begin = 1;
*/
boolean hasBegin();
/**
* optional .google.protobuf.Timestamp begin = 1;
*/
com.google.protobuf.Timestamp getBegin();
/**
* optional .google.protobuf.Timestamp begin = 1;
*/
com.google.protobuf.TimestampOrBuilder getBeginOrBuilder();
/**
* optional .google.protobuf.Timestamp end = 2;
*/
boolean hasEnd();
/**
* optional .google.protobuf.Timestamp end = 2;
*/
com.google.protobuf.Timestamp getEnd();
/**
* optional .google.protobuf.Timestamp end = 2;
*/
com.google.protobuf.TimestampOrBuilder getEndOrBuilder();
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity req = 3;
*/
boolean hasReq();
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity req = 3;
*/
org.hyperledger.protos.Ca.Identity getReq();
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity req = 3;
*/
org.hyperledger.protos.Ca.IdentityOrBuilder getReqOrBuilder();
/**
*
* bitmask
*
*
* optional .protos.Role role = 4;
*/
int getRoleValue();
/**
*
* bitmask
*
*
* optional .protos.Role role = 4;
*/
org.hyperledger.protos.Ca.Role getRole();
/**
*
* sign(priv, begin | end | req | id | role)
*
*
* optional .protos.Signature sig = 5;
*/
boolean hasSig();
/**
*
* sign(priv, begin | end | req | id | role)
*
*
* optional .protos.Signature sig = 5;
*/
org.hyperledger.protos.Ca.Signature getSig();
/**
*
* sign(priv, begin | end | req | id | role)
*
*
* optional .protos.Signature sig = 5;
*/
org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder();
}
/**
* Protobuf type {@code protos.TCertReadSetsReq}
*/
public static final class TCertReadSetsReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.TCertReadSetsReq)
TCertReadSetsReqOrBuilder {
// Use TCertReadSetsReq.newBuilder() to construct.
private TCertReadSetsReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TCertReadSetsReq() {
role_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private TCertReadSetsReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (begin_ != null) {
subBuilder = begin_.toBuilder();
}
begin_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(begin_);
begin_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (end_ != null) {
subBuilder = end_.toBuilder();
}
end_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(end_);
end_ = subBuilder.buildPartial();
}
break;
}
case 26: {
org.hyperledger.protos.Ca.Identity.Builder subBuilder = null;
if (req_ != null) {
subBuilder = req_.toBuilder();
}
req_ = input.readMessage(org.hyperledger.protos.Ca.Identity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(req_);
req_ = subBuilder.buildPartial();
}
break;
}
case 32: {
int rawValue = input.readEnum();
role_ = rawValue;
break;
}
case 42: {
org.hyperledger.protos.Ca.Signature.Builder subBuilder = null;
if (sig_ != null) {
subBuilder = sig_.toBuilder();
}
sig_ = input.readMessage(org.hyperledger.protos.Ca.Signature.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sig_);
sig_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertReadSetsReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertReadSetsReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TCertReadSetsReq.class, org.hyperledger.protos.Ca.TCertReadSetsReq.Builder.class);
}
public static final int BEGIN_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp begin_;
/**
* optional .google.protobuf.Timestamp begin = 1;
*/
public boolean hasBegin() {
return begin_ != null;
}
/**
* optional .google.protobuf.Timestamp begin = 1;
*/
public com.google.protobuf.Timestamp getBegin() {
return begin_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : begin_;
}
/**
* optional .google.protobuf.Timestamp begin = 1;
*/
public com.google.protobuf.TimestampOrBuilder getBeginOrBuilder() {
return getBegin();
}
public static final int END_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp end_;
/**
* optional .google.protobuf.Timestamp end = 2;
*/
public boolean hasEnd() {
return end_ != null;
}
/**
* optional .google.protobuf.Timestamp end = 2;
*/
public com.google.protobuf.Timestamp getEnd() {
return end_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : end_;
}
/**
* optional .google.protobuf.Timestamp end = 2;
*/
public com.google.protobuf.TimestampOrBuilder getEndOrBuilder() {
return getEnd();
}
public static final int REQ_FIELD_NUMBER = 3;
private org.hyperledger.protos.Ca.Identity req_;
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity req = 3;
*/
public boolean hasReq() {
return req_ != null;
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity req = 3;
*/
public org.hyperledger.protos.Ca.Identity getReq() {
return req_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : req_;
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity req = 3;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getReqOrBuilder() {
return getReq();
}
public static final int ROLE_FIELD_NUMBER = 4;
private int role_;
/**
*
* bitmask
*
*
* optional .protos.Role role = 4;
*/
public int getRoleValue() {
return role_;
}
/**
*
* bitmask
*
*
* optional .protos.Role role = 4;
*/
public org.hyperledger.protos.Ca.Role getRole() {
org.hyperledger.protos.Ca.Role result = org.hyperledger.protos.Ca.Role.valueOf(role_);
return result == null ? org.hyperledger.protos.Ca.Role.UNRECOGNIZED : result;
}
public static final int SIG_FIELD_NUMBER = 5;
private org.hyperledger.protos.Ca.Signature sig_;
/**
*
* sign(priv, begin | end | req | id | role)
*
*
* optional .protos.Signature sig = 5;
*/
public boolean hasSig() {
return sig_ != null;
}
/**
*
* sign(priv, begin | end | req | id | role)
*
*
* optional .protos.Signature sig = 5;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
/**
*
* sign(priv, begin | end | req | id | role)
*
*
* optional .protos.Signature sig = 5;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
return getSig();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (begin_ != null) {
output.writeMessage(1, getBegin());
}
if (end_ != null) {
output.writeMessage(2, getEnd());
}
if (req_ != null) {
output.writeMessage(3, getReq());
}
if (role_ != org.hyperledger.protos.Ca.Role.NONE.getNumber()) {
output.writeEnum(4, role_);
}
if (sig_ != null) {
output.writeMessage(5, getSig());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (begin_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getBegin());
}
if (end_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getEnd());
}
if (req_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getReq());
}
if (role_ != org.hyperledger.protos.Ca.Role.NONE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, role_);
}
if (sig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getSig());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.TCertReadSetsReq)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.TCertReadSetsReq other = (org.hyperledger.protos.Ca.TCertReadSetsReq) obj;
boolean result = true;
result = result && (hasBegin() == other.hasBegin());
if (hasBegin()) {
result = result && getBegin()
.equals(other.getBegin());
}
result = result && (hasEnd() == other.hasEnd());
if (hasEnd()) {
result = result && getEnd()
.equals(other.getEnd());
}
result = result && (hasReq() == other.hasReq());
if (hasReq()) {
result = result && getReq()
.equals(other.getReq());
}
result = result && role_ == other.role_;
result = result && (hasSig() == other.hasSig());
if (hasSig()) {
result = result && getSig()
.equals(other.getSig());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasBegin()) {
hash = (37 * hash) + BEGIN_FIELD_NUMBER;
hash = (53 * hash) + getBegin().hashCode();
}
if (hasEnd()) {
hash = (37 * hash) + END_FIELD_NUMBER;
hash = (53 * hash) + getEnd().hashCode();
}
if (hasReq()) {
hash = (37 * hash) + REQ_FIELD_NUMBER;
hash = (53 * hash) + getReq().hashCode();
}
hash = (37 * hash) + ROLE_FIELD_NUMBER;
hash = (53 * hash) + role_;
if (hasSig()) {
hash = (37 * hash) + SIG_FIELD_NUMBER;
hash = (53 * hash) + getSig().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.TCertReadSetsReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TCertReadSetsReq 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.protos.Ca.TCertReadSetsReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TCertReadSetsReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.TCertReadSetsReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertReadSetsReq 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.protos.Ca.TCertReadSetsReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertReadSetsReq 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.protos.Ca.TCertReadSetsReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertReadSetsReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.TCertReadSetsReq prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.TCertReadSetsReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.TCertReadSetsReq)
org.hyperledger.protos.Ca.TCertReadSetsReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertReadSetsReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertReadSetsReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TCertReadSetsReq.class, org.hyperledger.protos.Ca.TCertReadSetsReq.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.TCertReadSetsReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (beginBuilder_ == null) {
begin_ = null;
} else {
begin_ = null;
beginBuilder_ = null;
}
if (endBuilder_ == null) {
end_ = null;
} else {
end_ = null;
endBuilder_ = null;
}
if (reqBuilder_ == null) {
req_ = null;
} else {
req_ = null;
reqBuilder_ = null;
}
role_ = 0;
if (sigBuilder_ == null) {
sig_ = null;
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertReadSetsReq_descriptor;
}
public org.hyperledger.protos.Ca.TCertReadSetsReq getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.TCertReadSetsReq.getDefaultInstance();
}
public org.hyperledger.protos.Ca.TCertReadSetsReq build() {
org.hyperledger.protos.Ca.TCertReadSetsReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.TCertReadSetsReq buildPartial() {
org.hyperledger.protos.Ca.TCertReadSetsReq result = new org.hyperledger.protos.Ca.TCertReadSetsReq(this);
if (beginBuilder_ == null) {
result.begin_ = begin_;
} else {
result.begin_ = beginBuilder_.build();
}
if (endBuilder_ == null) {
result.end_ = end_;
} else {
result.end_ = endBuilder_.build();
}
if (reqBuilder_ == null) {
result.req_ = req_;
} else {
result.req_ = reqBuilder_.build();
}
result.role_ = role_;
if (sigBuilder_ == null) {
result.sig_ = sig_;
} else {
result.sig_ = sigBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.TCertReadSetsReq) {
return mergeFrom((org.hyperledger.protos.Ca.TCertReadSetsReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.TCertReadSetsReq other) {
if (other == org.hyperledger.protos.Ca.TCertReadSetsReq.getDefaultInstance()) return this;
if (other.hasBegin()) {
mergeBegin(other.getBegin());
}
if (other.hasEnd()) {
mergeEnd(other.getEnd());
}
if (other.hasReq()) {
mergeReq(other.getReq());
}
if (other.role_ != 0) {
setRoleValue(other.getRoleValue());
}
if (other.hasSig()) {
mergeSig(other.getSig());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.TCertReadSetsReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.TCertReadSetsReq) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.Timestamp begin_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> beginBuilder_;
/**
* optional .google.protobuf.Timestamp begin = 1;
*/
public boolean hasBegin() {
return beginBuilder_ != null || begin_ != null;
}
/**
* optional .google.protobuf.Timestamp begin = 1;
*/
public com.google.protobuf.Timestamp getBegin() {
if (beginBuilder_ == null) {
return begin_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : begin_;
} else {
return beginBuilder_.getMessage();
}
}
/**
* optional .google.protobuf.Timestamp begin = 1;
*/
public Builder setBegin(com.google.protobuf.Timestamp value) {
if (beginBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
begin_ = value;
onChanged();
} else {
beginBuilder_.setMessage(value);
}
return this;
}
/**
* optional .google.protobuf.Timestamp begin = 1;
*/
public Builder setBegin(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (beginBuilder_ == null) {
begin_ = builderForValue.build();
onChanged();
} else {
beginBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .google.protobuf.Timestamp begin = 1;
*/
public Builder mergeBegin(com.google.protobuf.Timestamp value) {
if (beginBuilder_ == null) {
if (begin_ != null) {
begin_ =
com.google.protobuf.Timestamp.newBuilder(begin_).mergeFrom(value).buildPartial();
} else {
begin_ = value;
}
onChanged();
} else {
beginBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .google.protobuf.Timestamp begin = 1;
*/
public Builder clearBegin() {
if (beginBuilder_ == null) {
begin_ = null;
onChanged();
} else {
begin_ = null;
beginBuilder_ = null;
}
return this;
}
/**
* optional .google.protobuf.Timestamp begin = 1;
*/
public com.google.protobuf.Timestamp.Builder getBeginBuilder() {
onChanged();
return getBeginFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.Timestamp begin = 1;
*/
public com.google.protobuf.TimestampOrBuilder getBeginOrBuilder() {
if (beginBuilder_ != null) {
return beginBuilder_.getMessageOrBuilder();
} else {
return begin_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : begin_;
}
}
/**
* optional .google.protobuf.Timestamp begin = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getBeginFieldBuilder() {
if (beginBuilder_ == null) {
beginBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getBegin(),
getParentForChildren(),
isClean());
begin_ = null;
}
return beginBuilder_;
}
private com.google.protobuf.Timestamp end_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endBuilder_;
/**
* optional .google.protobuf.Timestamp end = 2;
*/
public boolean hasEnd() {
return endBuilder_ != null || end_ != null;
}
/**
* optional .google.protobuf.Timestamp end = 2;
*/
public com.google.protobuf.Timestamp getEnd() {
if (endBuilder_ == null) {
return end_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : end_;
} else {
return endBuilder_.getMessage();
}
}
/**
* optional .google.protobuf.Timestamp end = 2;
*/
public Builder setEnd(com.google.protobuf.Timestamp value) {
if (endBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
end_ = value;
onChanged();
} else {
endBuilder_.setMessage(value);
}
return this;
}
/**
* optional .google.protobuf.Timestamp end = 2;
*/
public Builder setEnd(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (endBuilder_ == null) {
end_ = builderForValue.build();
onChanged();
} else {
endBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .google.protobuf.Timestamp end = 2;
*/
public Builder mergeEnd(com.google.protobuf.Timestamp value) {
if (endBuilder_ == null) {
if (end_ != null) {
end_ =
com.google.protobuf.Timestamp.newBuilder(end_).mergeFrom(value).buildPartial();
} else {
end_ = value;
}
onChanged();
} else {
endBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .google.protobuf.Timestamp end = 2;
*/
public Builder clearEnd() {
if (endBuilder_ == null) {
end_ = null;
onChanged();
} else {
end_ = null;
endBuilder_ = null;
}
return this;
}
/**
* optional .google.protobuf.Timestamp end = 2;
*/
public com.google.protobuf.Timestamp.Builder getEndBuilder() {
onChanged();
return getEndFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.Timestamp end = 2;
*/
public com.google.protobuf.TimestampOrBuilder getEndOrBuilder() {
if (endBuilder_ != null) {
return endBuilder_.getMessageOrBuilder();
} else {
return end_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : end_;
}
}
/**
* optional .google.protobuf.Timestamp end = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getEndFieldBuilder() {
if (endBuilder_ == null) {
endBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getEnd(),
getParentForChildren(),
isClean());
end_ = null;
}
return endBuilder_;
}
private org.hyperledger.protos.Ca.Identity req_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder> reqBuilder_;
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity req = 3;
*/
public boolean hasReq() {
return reqBuilder_ != null || req_ != null;
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity req = 3;
*/
public org.hyperledger.protos.Ca.Identity getReq() {
if (reqBuilder_ == null) {
return req_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : req_;
} else {
return reqBuilder_.getMessage();
}
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity req = 3;
*/
public Builder setReq(org.hyperledger.protos.Ca.Identity value) {
if (reqBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
req_ = value;
onChanged();
} else {
reqBuilder_.setMessage(value);
}
return this;
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity req = 3;
*/
public Builder setReq(
org.hyperledger.protos.Ca.Identity.Builder builderForValue) {
if (reqBuilder_ == null) {
req_ = builderForValue.build();
onChanged();
} else {
reqBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity req = 3;
*/
public Builder mergeReq(org.hyperledger.protos.Ca.Identity value) {
if (reqBuilder_ == null) {
if (req_ != null) {
req_ =
org.hyperledger.protos.Ca.Identity.newBuilder(req_).mergeFrom(value).buildPartial();
} else {
req_ = value;
}
onChanged();
} else {
reqBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity req = 3;
*/
public Builder clearReq() {
if (reqBuilder_ == null) {
req_ = null;
onChanged();
} else {
req_ = null;
reqBuilder_ = null;
}
return this;
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity req = 3;
*/
public org.hyperledger.protos.Ca.Identity.Builder getReqBuilder() {
onChanged();
return getReqFieldBuilder().getBuilder();
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity req = 3;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getReqOrBuilder() {
if (reqBuilder_ != null) {
return reqBuilder_.getMessageOrBuilder();
} else {
return req_ == null ?
org.hyperledger.protos.Ca.Identity.getDefaultInstance() : req_;
}
}
/**
*
* corresponding ECert retrieved from ECA
*
*
* optional .protos.Identity req = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>
getReqFieldBuilder() {
if (reqBuilder_ == null) {
reqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>(
getReq(),
getParentForChildren(),
isClean());
req_ = null;
}
return reqBuilder_;
}
private int role_ = 0;
/**
*
* bitmask
*
*
* optional .protos.Role role = 4;
*/
public int getRoleValue() {
return role_;
}
/**
*
* bitmask
*
*
* optional .protos.Role role = 4;
*/
public Builder setRoleValue(int value) {
role_ = value;
onChanged();
return this;
}
/**
*
* bitmask
*
*
* optional .protos.Role role = 4;
*/
public org.hyperledger.protos.Ca.Role getRole() {
org.hyperledger.protos.Ca.Role result = org.hyperledger.protos.Ca.Role.valueOf(role_);
return result == null ? org.hyperledger.protos.Ca.Role.UNRECOGNIZED : result;
}
/**
*
* bitmask
*
*
* optional .protos.Role role = 4;
*/
public Builder setRole(org.hyperledger.protos.Ca.Role value) {
if (value == null) {
throw new NullPointerException();
}
role_ = value.getNumber();
onChanged();
return this;
}
/**
*
* bitmask
*
*
* optional .protos.Role role = 4;
*/
public Builder clearRole() {
role_ = 0;
onChanged();
return this;
}
private org.hyperledger.protos.Ca.Signature sig_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder> sigBuilder_;
/**
*
* sign(priv, begin | end | req | id | role)
*
*
* optional .protos.Signature sig = 5;
*/
public boolean hasSig() {
return sigBuilder_ != null || sig_ != null;
}
/**
*
* sign(priv, begin | end | req | id | role)
*
*
* optional .protos.Signature sig = 5;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
if (sigBuilder_ == null) {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
} else {
return sigBuilder_.getMessage();
}
}
/**
*
* sign(priv, begin | end | req | id | role)
*
*
* optional .protos.Signature sig = 5;
*/
public Builder setSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sig_ = value;
onChanged();
} else {
sigBuilder_.setMessage(value);
}
return this;
}
/**
*
* sign(priv, begin | end | req | id | role)
*
*
* optional .protos.Signature sig = 5;
*/
public Builder setSig(
org.hyperledger.protos.Ca.Signature.Builder builderForValue) {
if (sigBuilder_ == null) {
sig_ = builderForValue.build();
onChanged();
} else {
sigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* sign(priv, begin | end | req | id | role)
*
*
* optional .protos.Signature sig = 5;
*/
public Builder mergeSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (sig_ != null) {
sig_ =
org.hyperledger.protos.Ca.Signature.newBuilder(sig_).mergeFrom(value).buildPartial();
} else {
sig_ = value;
}
onChanged();
} else {
sigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* sign(priv, begin | end | req | id | role)
*
*
* optional .protos.Signature sig = 5;
*/
public Builder clearSig() {
if (sigBuilder_ == null) {
sig_ = null;
onChanged();
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
/**
*
* sign(priv, begin | end | req | id | role)
*
*
* optional .protos.Signature sig = 5;
*/
public org.hyperledger.protos.Ca.Signature.Builder getSigBuilder() {
onChanged();
return getSigFieldBuilder().getBuilder();
}
/**
*
* sign(priv, begin | end | req | id | role)
*
*
* optional .protos.Signature sig = 5;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
if (sigBuilder_ != null) {
return sigBuilder_.getMessageOrBuilder();
} else {
return sig_ == null ?
org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
}
/**
*
* sign(priv, begin | end | req | id | role)
*
*
* optional .protos.Signature sig = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>
getSigFieldBuilder() {
if (sigBuilder_ == null) {
sigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>(
getSig(),
getParentForChildren(),
isClean());
sig_ = null;
}
return sigBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.TCertReadSetsReq)
}
// @@protoc_insertion_point(class_scope:protos.TCertReadSetsReq)
private static final org.hyperledger.protos.Ca.TCertReadSetsReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.TCertReadSetsReq();
}
public static org.hyperledger.protos.Ca.TCertReadSetsReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TCertReadSetsReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TCertReadSetsReq(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.TCertReadSetsReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TCertRevokeReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.TCertRevokeReq)
com.google.protobuf.MessageOrBuilder {
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
boolean hasId();
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
org.hyperledger.protos.Ca.Identity getId();
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder();
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
boolean hasCert();
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
org.hyperledger.protos.Ca.Cert getCert();
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
org.hyperledger.protos.Ca.CertOrBuilder getCertOrBuilder();
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
boolean hasSig();
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
org.hyperledger.protos.Ca.Signature getSig();
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder();
}
/**
* Protobuf type {@code protos.TCertRevokeReq}
*/
public static final class TCertRevokeReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.TCertRevokeReq)
TCertRevokeReqOrBuilder {
// Use TCertRevokeReq.newBuilder() to construct.
private TCertRevokeReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TCertRevokeReq() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private TCertRevokeReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
org.hyperledger.protos.Ca.Identity.Builder subBuilder = null;
if (id_ != null) {
subBuilder = id_.toBuilder();
}
id_ = input.readMessage(org.hyperledger.protos.Ca.Identity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(id_);
id_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.hyperledger.protos.Ca.Cert.Builder subBuilder = null;
if (cert_ != null) {
subBuilder = cert_.toBuilder();
}
cert_ = input.readMessage(org.hyperledger.protos.Ca.Cert.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(cert_);
cert_ = subBuilder.buildPartial();
}
break;
}
case 26: {
org.hyperledger.protos.Ca.Signature.Builder subBuilder = null;
if (sig_ != null) {
subBuilder = sig_.toBuilder();
}
sig_ = input.readMessage(org.hyperledger.protos.Ca.Signature.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sig_);
sig_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertRevokeReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertRevokeReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TCertRevokeReq.class, org.hyperledger.protos.Ca.TCertRevokeReq.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private org.hyperledger.protos.Ca.Identity id_;
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
public boolean hasId() {
return id_ != null;
}
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity getId() {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
return getId();
}
public static final int CERT_FIELD_NUMBER = 2;
private org.hyperledger.protos.Ca.Cert cert_;
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public boolean hasCert() {
return cert_ != null;
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public org.hyperledger.protos.Ca.Cert getCert() {
return cert_ == null ? org.hyperledger.protos.Ca.Cert.getDefaultInstance() : cert_;
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public org.hyperledger.protos.Ca.CertOrBuilder getCertOrBuilder() {
return getCert();
}
public static final int SIG_FIELD_NUMBER = 3;
private org.hyperledger.protos.Ca.Signature sig_;
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public boolean hasSig() {
return sig_ != null;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
return getSig();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (id_ != null) {
output.writeMessage(1, getId());
}
if (cert_ != null) {
output.writeMessage(2, getCert());
}
if (sig_ != null) {
output.writeMessage(3, getSig());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getId());
}
if (cert_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getCert());
}
if (sig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getSig());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.TCertRevokeReq)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.TCertRevokeReq other = (org.hyperledger.protos.Ca.TCertRevokeReq) obj;
boolean result = true;
result = result && (hasId() == other.hasId());
if (hasId()) {
result = result && getId()
.equals(other.getId());
}
result = result && (hasCert() == other.hasCert());
if (hasCert()) {
result = result && getCert()
.equals(other.getCert());
}
result = result && (hasSig() == other.hasSig());
if (hasSig()) {
result = result && getSig()
.equals(other.getSig());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
if (hasCert()) {
hash = (37 * hash) + CERT_FIELD_NUMBER;
hash = (53 * hash) + getCert().hashCode();
}
if (hasSig()) {
hash = (37 * hash) + SIG_FIELD_NUMBER;
hash = (53 * hash) + getSig().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.TCertRevokeReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TCertRevokeReq 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.protos.Ca.TCertRevokeReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TCertRevokeReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.TCertRevokeReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertRevokeReq 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.protos.Ca.TCertRevokeReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertRevokeReq 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.protos.Ca.TCertRevokeReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertRevokeReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.TCertRevokeReq prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.TCertRevokeReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.TCertRevokeReq)
org.hyperledger.protos.Ca.TCertRevokeReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertRevokeReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertRevokeReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TCertRevokeReq.class, org.hyperledger.protos.Ca.TCertRevokeReq.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.TCertRevokeReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (idBuilder_ == null) {
id_ = null;
} else {
id_ = null;
idBuilder_ = null;
}
if (certBuilder_ == null) {
cert_ = null;
} else {
cert_ = null;
certBuilder_ = null;
}
if (sigBuilder_ == null) {
sig_ = null;
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertRevokeReq_descriptor;
}
public org.hyperledger.protos.Ca.TCertRevokeReq getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.TCertRevokeReq.getDefaultInstance();
}
public org.hyperledger.protos.Ca.TCertRevokeReq build() {
org.hyperledger.protos.Ca.TCertRevokeReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.TCertRevokeReq buildPartial() {
org.hyperledger.protos.Ca.TCertRevokeReq result = new org.hyperledger.protos.Ca.TCertRevokeReq(this);
if (idBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
if (certBuilder_ == null) {
result.cert_ = cert_;
} else {
result.cert_ = certBuilder_.build();
}
if (sigBuilder_ == null) {
result.sig_ = sig_;
} else {
result.sig_ = sigBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.TCertRevokeReq) {
return mergeFrom((org.hyperledger.protos.Ca.TCertRevokeReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.TCertRevokeReq other) {
if (other == org.hyperledger.protos.Ca.TCertRevokeReq.getDefaultInstance()) return this;
if (other.hasId()) {
mergeId(other.getId());
}
if (other.hasCert()) {
mergeCert(other.getCert());
}
if (other.hasSig()) {
mergeSig(other.getSig());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.TCertRevokeReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.TCertRevokeReq) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.hyperledger.protos.Ca.Identity id_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder> idBuilder_;
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
public boolean hasId() {
return idBuilder_ != null || id_ != null;
}
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity getId() {
if (idBuilder_ == null) {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
} else {
return idBuilder_.getMessage();
}
}
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
public Builder setId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
idBuilder_.setMessage(value);
}
return this;
}
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
public Builder setId(
org.hyperledger.protos.Ca.Identity.Builder builderForValue) {
if (idBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
idBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
public Builder mergeId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (id_ != null) {
id_ =
org.hyperledger.protos.Ca.Identity.newBuilder(id_).mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
idBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = null;
onChanged();
} else {
id_ = null;
idBuilder_ = null;
}
return this;
}
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity.Builder getIdBuilder() {
onChanged();
return getIdFieldBuilder().getBuilder();
}
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
return id_ == null ?
org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
}
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>(
getId(),
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
private org.hyperledger.protos.Ca.Cert cert_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder> certBuilder_;
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public boolean hasCert() {
return certBuilder_ != null || cert_ != null;
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public org.hyperledger.protos.Ca.Cert getCert() {
if (certBuilder_ == null) {
return cert_ == null ? org.hyperledger.protos.Ca.Cert.getDefaultInstance() : cert_;
} else {
return certBuilder_.getMessage();
}
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public Builder setCert(org.hyperledger.protos.Ca.Cert value) {
if (certBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cert_ = value;
onChanged();
} else {
certBuilder_.setMessage(value);
}
return this;
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public Builder setCert(
org.hyperledger.protos.Ca.Cert.Builder builderForValue) {
if (certBuilder_ == null) {
cert_ = builderForValue.build();
onChanged();
} else {
certBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public Builder mergeCert(org.hyperledger.protos.Ca.Cert value) {
if (certBuilder_ == null) {
if (cert_ != null) {
cert_ =
org.hyperledger.protos.Ca.Cert.newBuilder(cert_).mergeFrom(value).buildPartial();
} else {
cert_ = value;
}
onChanged();
} else {
certBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public Builder clearCert() {
if (certBuilder_ == null) {
cert_ = null;
onChanged();
} else {
cert_ = null;
certBuilder_ = null;
}
return this;
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public org.hyperledger.protos.Ca.Cert.Builder getCertBuilder() {
onChanged();
return getCertFieldBuilder().getBuilder();
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public org.hyperledger.protos.Ca.CertOrBuilder getCertOrBuilder() {
if (certBuilder_ != null) {
return certBuilder_.getMessageOrBuilder();
} else {
return cert_ == null ?
org.hyperledger.protos.Ca.Cert.getDefaultInstance() : cert_;
}
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder>
getCertFieldBuilder() {
if (certBuilder_ == null) {
certBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder>(
getCert(),
getParentForChildren(),
isClean());
cert_ = null;
}
return certBuilder_;
}
private org.hyperledger.protos.Ca.Signature sig_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder> sigBuilder_;
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public boolean hasSig() {
return sigBuilder_ != null || sig_ != null;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
if (sigBuilder_ == null) {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
} else {
return sigBuilder_.getMessage();
}
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public Builder setSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sig_ = value;
onChanged();
} else {
sigBuilder_.setMessage(value);
}
return this;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public Builder setSig(
org.hyperledger.protos.Ca.Signature.Builder builderForValue) {
if (sigBuilder_ == null) {
sig_ = builderForValue.build();
onChanged();
} else {
sigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public Builder mergeSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (sig_ != null) {
sig_ =
org.hyperledger.protos.Ca.Signature.newBuilder(sig_).mergeFrom(value).buildPartial();
} else {
sig_ = value;
}
onChanged();
} else {
sigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public Builder clearSig() {
if (sigBuilder_ == null) {
sig_ = null;
onChanged();
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public org.hyperledger.protos.Ca.Signature.Builder getSigBuilder() {
onChanged();
return getSigFieldBuilder().getBuilder();
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
if (sigBuilder_ != null) {
return sigBuilder_.getMessageOrBuilder();
} else {
return sig_ == null ?
org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>
getSigFieldBuilder() {
if (sigBuilder_ == null) {
sigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>(
getSig(),
getParentForChildren(),
isClean());
sig_ = null;
}
return sigBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.TCertRevokeReq)
}
// @@protoc_insertion_point(class_scope:protos.TCertRevokeReq)
private static final org.hyperledger.protos.Ca.TCertRevokeReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.TCertRevokeReq();
}
public static org.hyperledger.protos.Ca.TCertRevokeReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TCertRevokeReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TCertRevokeReq(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.TCertRevokeReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TCertRevokeSetReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.TCertRevokeSetReq)
com.google.protobuf.MessageOrBuilder {
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
boolean hasId();
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
org.hyperledger.protos.Ca.Identity getId();
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder();
/**
*
* timestamp of cert set to revoke (0 == latest set)
*
*
* optional .google.protobuf.Timestamp ts = 2;
*/
boolean hasTs();
/**
*
* timestamp of cert set to revoke (0 == latest set)
*
*
* optional .google.protobuf.Timestamp ts = 2;
*/
com.google.protobuf.Timestamp getTs();
/**
*
* timestamp of cert set to revoke (0 == latest set)
*
*
* optional .google.protobuf.Timestamp ts = 2;
*/
com.google.protobuf.TimestampOrBuilder getTsOrBuilder();
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
boolean hasSig();
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
org.hyperledger.protos.Ca.Signature getSig();
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder();
}
/**
* Protobuf type {@code protos.TCertRevokeSetReq}
*/
public static final class TCertRevokeSetReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.TCertRevokeSetReq)
TCertRevokeSetReqOrBuilder {
// Use TCertRevokeSetReq.newBuilder() to construct.
private TCertRevokeSetReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TCertRevokeSetReq() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private TCertRevokeSetReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
org.hyperledger.protos.Ca.Identity.Builder subBuilder = null;
if (id_ != null) {
subBuilder = id_.toBuilder();
}
id_ = input.readMessage(org.hyperledger.protos.Ca.Identity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(id_);
id_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (ts_ != null) {
subBuilder = ts_.toBuilder();
}
ts_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ts_);
ts_ = subBuilder.buildPartial();
}
break;
}
case 26: {
org.hyperledger.protos.Ca.Signature.Builder subBuilder = null;
if (sig_ != null) {
subBuilder = sig_.toBuilder();
}
sig_ = input.readMessage(org.hyperledger.protos.Ca.Signature.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sig_);
sig_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertRevokeSetReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertRevokeSetReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TCertRevokeSetReq.class, org.hyperledger.protos.Ca.TCertRevokeSetReq.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private org.hyperledger.protos.Ca.Identity id_;
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
public boolean hasId() {
return id_ != null;
}
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity getId() {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
return getId();
}
public static final int TS_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp ts_;
/**
*
* timestamp of cert set to revoke (0 == latest set)
*
*
* optional .google.protobuf.Timestamp ts = 2;
*/
public boolean hasTs() {
return ts_ != null;
}
/**
*
* timestamp of cert set to revoke (0 == latest set)
*
*
* optional .google.protobuf.Timestamp ts = 2;
*/
public com.google.protobuf.Timestamp getTs() {
return ts_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
}
/**
*
* timestamp of cert set to revoke (0 == latest set)
*
*
* optional .google.protobuf.Timestamp ts = 2;
*/
public com.google.protobuf.TimestampOrBuilder getTsOrBuilder() {
return getTs();
}
public static final int SIG_FIELD_NUMBER = 3;
private org.hyperledger.protos.Ca.Signature sig_;
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public boolean hasSig() {
return sig_ != null;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
return getSig();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (id_ != null) {
output.writeMessage(1, getId());
}
if (ts_ != null) {
output.writeMessage(2, getTs());
}
if (sig_ != null) {
output.writeMessage(3, getSig());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getId());
}
if (ts_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTs());
}
if (sig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getSig());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.TCertRevokeSetReq)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.TCertRevokeSetReq other = (org.hyperledger.protos.Ca.TCertRevokeSetReq) obj;
boolean result = true;
result = result && (hasId() == other.hasId());
if (hasId()) {
result = result && getId()
.equals(other.getId());
}
result = result && (hasTs() == other.hasTs());
if (hasTs()) {
result = result && getTs()
.equals(other.getTs());
}
result = result && (hasSig() == other.hasSig());
if (hasSig()) {
result = result && getSig()
.equals(other.getSig());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
if (hasTs()) {
hash = (37 * hash) + TS_FIELD_NUMBER;
hash = (53 * hash) + getTs().hashCode();
}
if (hasSig()) {
hash = (37 * hash) + SIG_FIELD_NUMBER;
hash = (53 * hash) + getSig().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.TCertRevokeSetReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TCertRevokeSetReq 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.protos.Ca.TCertRevokeSetReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TCertRevokeSetReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.TCertRevokeSetReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertRevokeSetReq 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.protos.Ca.TCertRevokeSetReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertRevokeSetReq 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.protos.Ca.TCertRevokeSetReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertRevokeSetReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.TCertRevokeSetReq prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.TCertRevokeSetReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.TCertRevokeSetReq)
org.hyperledger.protos.Ca.TCertRevokeSetReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertRevokeSetReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertRevokeSetReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TCertRevokeSetReq.class, org.hyperledger.protos.Ca.TCertRevokeSetReq.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.TCertRevokeSetReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (idBuilder_ == null) {
id_ = null;
} else {
id_ = null;
idBuilder_ = null;
}
if (tsBuilder_ == null) {
ts_ = null;
} else {
ts_ = null;
tsBuilder_ = null;
}
if (sigBuilder_ == null) {
sig_ = null;
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertRevokeSetReq_descriptor;
}
public org.hyperledger.protos.Ca.TCertRevokeSetReq getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.TCertRevokeSetReq.getDefaultInstance();
}
public org.hyperledger.protos.Ca.TCertRevokeSetReq build() {
org.hyperledger.protos.Ca.TCertRevokeSetReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.TCertRevokeSetReq buildPartial() {
org.hyperledger.protos.Ca.TCertRevokeSetReq result = new org.hyperledger.protos.Ca.TCertRevokeSetReq(this);
if (idBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
if (tsBuilder_ == null) {
result.ts_ = ts_;
} else {
result.ts_ = tsBuilder_.build();
}
if (sigBuilder_ == null) {
result.sig_ = sig_;
} else {
result.sig_ = sigBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.TCertRevokeSetReq) {
return mergeFrom((org.hyperledger.protos.Ca.TCertRevokeSetReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.TCertRevokeSetReq other) {
if (other == org.hyperledger.protos.Ca.TCertRevokeSetReq.getDefaultInstance()) return this;
if (other.hasId()) {
mergeId(other.getId());
}
if (other.hasTs()) {
mergeTs(other.getTs());
}
if (other.hasSig()) {
mergeSig(other.getSig());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.TCertRevokeSetReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.TCertRevokeSetReq) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.hyperledger.protos.Ca.Identity id_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder> idBuilder_;
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
public boolean hasId() {
return idBuilder_ != null || id_ != null;
}
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity getId() {
if (idBuilder_ == null) {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
} else {
return idBuilder_.getMessage();
}
}
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
public Builder setId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
idBuilder_.setMessage(value);
}
return this;
}
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
public Builder setId(
org.hyperledger.protos.Ca.Identity.Builder builderForValue) {
if (idBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
idBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
public Builder mergeId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (id_ != null) {
id_ =
org.hyperledger.protos.Ca.Identity.newBuilder(id_).mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
idBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = null;
onChanged();
} else {
id_ = null;
idBuilder_ = null;
}
return this;
}
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity.Builder getIdBuilder() {
onChanged();
return getIdFieldBuilder().getBuilder();
}
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
return id_ == null ?
org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
}
/**
*
* user or admin whereby users can only revoke their own certs
*
*
* optional .protos.Identity id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>(
getId(),
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
private com.google.protobuf.Timestamp ts_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> tsBuilder_;
/**
*
* timestamp of cert set to revoke (0 == latest set)
*
*
* optional .google.protobuf.Timestamp ts = 2;
*/
public boolean hasTs() {
return tsBuilder_ != null || ts_ != null;
}
/**
*
* timestamp of cert set to revoke (0 == latest set)
*
*
* optional .google.protobuf.Timestamp ts = 2;
*/
public com.google.protobuf.Timestamp getTs() {
if (tsBuilder_ == null) {
return ts_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
} else {
return tsBuilder_.getMessage();
}
}
/**
*
* timestamp of cert set to revoke (0 == latest set)
*
*
* optional .google.protobuf.Timestamp ts = 2;
*/
public Builder setTs(com.google.protobuf.Timestamp value) {
if (tsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ts_ = value;
onChanged();
} else {
tsBuilder_.setMessage(value);
}
return this;
}
/**
*
* timestamp of cert set to revoke (0 == latest set)
*
*
* optional .google.protobuf.Timestamp ts = 2;
*/
public Builder setTs(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (tsBuilder_ == null) {
ts_ = builderForValue.build();
onChanged();
} else {
tsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* timestamp of cert set to revoke (0 == latest set)
*
*
* optional .google.protobuf.Timestamp ts = 2;
*/
public Builder mergeTs(com.google.protobuf.Timestamp value) {
if (tsBuilder_ == null) {
if (ts_ != null) {
ts_ =
com.google.protobuf.Timestamp.newBuilder(ts_).mergeFrom(value).buildPartial();
} else {
ts_ = value;
}
onChanged();
} else {
tsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* timestamp of cert set to revoke (0 == latest set)
*
*
* optional .google.protobuf.Timestamp ts = 2;
*/
public Builder clearTs() {
if (tsBuilder_ == null) {
ts_ = null;
onChanged();
} else {
ts_ = null;
tsBuilder_ = null;
}
return this;
}
/**
*
* timestamp of cert set to revoke (0 == latest set)
*
*
* optional .google.protobuf.Timestamp ts = 2;
*/
public com.google.protobuf.Timestamp.Builder getTsBuilder() {
onChanged();
return getTsFieldBuilder().getBuilder();
}
/**
*
* timestamp of cert set to revoke (0 == latest set)
*
*
* optional .google.protobuf.Timestamp ts = 2;
*/
public com.google.protobuf.TimestampOrBuilder getTsOrBuilder() {
if (tsBuilder_ != null) {
return tsBuilder_.getMessageOrBuilder();
} else {
return ts_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
}
}
/**
*
* timestamp of cert set to revoke (0 == latest set)
*
*
* optional .google.protobuf.Timestamp ts = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getTsFieldBuilder() {
if (tsBuilder_ == null) {
tsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getTs(),
getParentForChildren(),
isClean());
ts_ = null;
}
return tsBuilder_;
}
private org.hyperledger.protos.Ca.Signature sig_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder> sigBuilder_;
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public boolean hasSig() {
return sigBuilder_ != null || sig_ != null;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
if (sigBuilder_ == null) {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
} else {
return sigBuilder_.getMessage();
}
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public Builder setSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sig_ = value;
onChanged();
} else {
sigBuilder_.setMessage(value);
}
return this;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public Builder setSig(
org.hyperledger.protos.Ca.Signature.Builder builderForValue) {
if (sigBuilder_ == null) {
sig_ = builderForValue.build();
onChanged();
} else {
sigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public Builder mergeSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (sig_ != null) {
sig_ =
org.hyperledger.protos.Ca.Signature.newBuilder(sig_).mergeFrom(value).buildPartial();
} else {
sig_ = value;
}
onChanged();
} else {
sigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public Builder clearSig() {
if (sigBuilder_ == null) {
sig_ = null;
onChanged();
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public org.hyperledger.protos.Ca.Signature.Builder getSigBuilder() {
onChanged();
return getSigFieldBuilder().getBuilder();
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
if (sigBuilder_ != null) {
return sigBuilder_.getMessageOrBuilder();
} else {
return sig_ == null ?
org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>
getSigFieldBuilder() {
if (sigBuilder_ == null) {
sigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>(
getSig(),
getParentForChildren(),
isClean());
sig_ = null;
}
return sigBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.TCertRevokeSetReq)
}
// @@protoc_insertion_point(class_scope:protos.TCertRevokeSetReq)
private static final org.hyperledger.protos.Ca.TCertRevokeSetReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.TCertRevokeSetReq();
}
public static org.hyperledger.protos.Ca.TCertRevokeSetReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TCertRevokeSetReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TCertRevokeSetReq(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.TCertRevokeSetReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TCertCRLReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.TCertCRLReq)
com.google.protobuf.MessageOrBuilder {
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
boolean hasId();
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
org.hyperledger.protos.Ca.Identity getId();
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder();
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
boolean hasSig();
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
org.hyperledger.protos.Ca.Signature getSig();
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder();
}
/**
* Protobuf type {@code protos.TCertCRLReq}
*/
public static final class TCertCRLReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.TCertCRLReq)
TCertCRLReqOrBuilder {
// Use TCertCRLReq.newBuilder() to construct.
private TCertCRLReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TCertCRLReq() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private TCertCRLReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
org.hyperledger.protos.Ca.Identity.Builder subBuilder = null;
if (id_ != null) {
subBuilder = id_.toBuilder();
}
id_ = input.readMessage(org.hyperledger.protos.Ca.Identity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(id_);
id_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.hyperledger.protos.Ca.Signature.Builder subBuilder = null;
if (sig_ != null) {
subBuilder = sig_.toBuilder();
}
sig_ = input.readMessage(org.hyperledger.protos.Ca.Signature.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sig_);
sig_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertCRLReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertCRLReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TCertCRLReq.class, org.hyperledger.protos.Ca.TCertCRLReq.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private org.hyperledger.protos.Ca.Identity id_;
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
public boolean hasId() {
return id_ != null;
}
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity getId() {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
return getId();
}
public static final int SIG_FIELD_NUMBER = 2;
private org.hyperledger.protos.Ca.Signature sig_;
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
public boolean hasSig() {
return sig_ != null;
}
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
return getSig();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (id_ != null) {
output.writeMessage(1, getId());
}
if (sig_ != null) {
output.writeMessage(2, getSig());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getId());
}
if (sig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSig());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.TCertCRLReq)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.TCertCRLReq other = (org.hyperledger.protos.Ca.TCertCRLReq) obj;
boolean result = true;
result = result && (hasId() == other.hasId());
if (hasId()) {
result = result && getId()
.equals(other.getId());
}
result = result && (hasSig() == other.hasSig());
if (hasSig()) {
result = result && getSig()
.equals(other.getSig());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
if (hasSig()) {
hash = (37 * hash) + SIG_FIELD_NUMBER;
hash = (53 * hash) + getSig().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.TCertCRLReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TCertCRLReq 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.protos.Ca.TCertCRLReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TCertCRLReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.TCertCRLReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertCRLReq 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.protos.Ca.TCertCRLReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertCRLReq 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.protos.Ca.TCertCRLReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCertCRLReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.TCertCRLReq prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.TCertCRLReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.TCertCRLReq)
org.hyperledger.protos.Ca.TCertCRLReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertCRLReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertCRLReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TCertCRLReq.class, org.hyperledger.protos.Ca.TCertCRLReq.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.TCertCRLReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (idBuilder_ == null) {
id_ = null;
} else {
id_ = null;
idBuilder_ = null;
}
if (sigBuilder_ == null) {
sig_ = null;
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_TCertCRLReq_descriptor;
}
public org.hyperledger.protos.Ca.TCertCRLReq getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.TCertCRLReq.getDefaultInstance();
}
public org.hyperledger.protos.Ca.TCertCRLReq build() {
org.hyperledger.protos.Ca.TCertCRLReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.TCertCRLReq buildPartial() {
org.hyperledger.protos.Ca.TCertCRLReq result = new org.hyperledger.protos.Ca.TCertCRLReq(this);
if (idBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
if (sigBuilder_ == null) {
result.sig_ = sig_;
} else {
result.sig_ = sigBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.TCertCRLReq) {
return mergeFrom((org.hyperledger.protos.Ca.TCertCRLReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.TCertCRLReq other) {
if (other == org.hyperledger.protos.Ca.TCertCRLReq.getDefaultInstance()) return this;
if (other.hasId()) {
mergeId(other.getId());
}
if (other.hasSig()) {
mergeSig(other.getSig());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.TCertCRLReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.TCertCRLReq) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.hyperledger.protos.Ca.Identity id_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder> idBuilder_;
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
public boolean hasId() {
return idBuilder_ != null || id_ != null;
}
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity getId() {
if (idBuilder_ == null) {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
} else {
return idBuilder_.getMessage();
}
}
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
public Builder setId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
idBuilder_.setMessage(value);
}
return this;
}
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
public Builder setId(
org.hyperledger.protos.Ca.Identity.Builder builderForValue) {
if (idBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
idBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
public Builder mergeId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (id_ != null) {
id_ =
org.hyperledger.protos.Ca.Identity.newBuilder(id_).mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
idBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = null;
onChanged();
} else {
id_ = null;
idBuilder_ = null;
}
return this;
}
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity.Builder getIdBuilder() {
onChanged();
return getIdFieldBuilder().getBuilder();
}
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
return id_ == null ?
org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
}
/**
*
* admin
*
*
* optional .protos.Identity id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>(
getId(),
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
private org.hyperledger.protos.Ca.Signature sig_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder> sigBuilder_;
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
public boolean hasSig() {
return sigBuilder_ != null || sig_ != null;
}
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
if (sigBuilder_ == null) {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
} else {
return sigBuilder_.getMessage();
}
}
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
public Builder setSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sig_ = value;
onChanged();
} else {
sigBuilder_.setMessage(value);
}
return this;
}
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
public Builder setSig(
org.hyperledger.protos.Ca.Signature.Builder builderForValue) {
if (sigBuilder_ == null) {
sig_ = builderForValue.build();
onChanged();
} else {
sigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
public Builder mergeSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (sig_ != null) {
sig_ =
org.hyperledger.protos.Ca.Signature.newBuilder(sig_).mergeFrom(value).buildPartial();
} else {
sig_ = value;
}
onChanged();
} else {
sigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
public Builder clearSig() {
if (sigBuilder_ == null) {
sig_ = null;
onChanged();
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
public org.hyperledger.protos.Ca.Signature.Builder getSigBuilder() {
onChanged();
return getSigFieldBuilder().getBuilder();
}
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
if (sigBuilder_ != null) {
return sigBuilder_.getMessageOrBuilder();
} else {
return sig_ == null ?
org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
}
/**
*
* sign(priv, id)
*
*
* optional .protos.Signature sig = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>
getSigFieldBuilder() {
if (sigBuilder_ == null) {
sigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>(
getSig(),
getParentForChildren(),
isClean());
sig_ = null;
}
return sigBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.TCertCRLReq)
}
// @@protoc_insertion_point(class_scope:protos.TCertCRLReq)
private static final org.hyperledger.protos.Ca.TCertCRLReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.TCertCRLReq();
}
public static org.hyperledger.protos.Ca.TCertCRLReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TCertCRLReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TCertCRLReq(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.TCertCRLReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TLSCertCreateReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.TLSCertCreateReq)
com.google.protobuf.MessageOrBuilder {
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
boolean hasTs();
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
com.google.protobuf.Timestamp getTs();
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
com.google.protobuf.TimestampOrBuilder getTsOrBuilder();
/**
* optional .protos.Identity id = 2;
*/
boolean hasId();
/**
* optional .protos.Identity id = 2;
*/
org.hyperledger.protos.Ca.Identity getId();
/**
* optional .protos.Identity id = 2;
*/
org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder();
/**
* optional .protos.PublicKey pub = 3;
*/
boolean hasPub();
/**
* optional .protos.PublicKey pub = 3;
*/
org.hyperledger.protos.Ca.PublicKey getPub();
/**
* optional .protos.PublicKey pub = 3;
*/
org.hyperledger.protos.Ca.PublicKeyOrBuilder getPubOrBuilder();
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
boolean hasSig();
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
org.hyperledger.protos.Ca.Signature getSig();
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder();
}
/**
* Protobuf type {@code protos.TLSCertCreateReq}
*/
public static final class TLSCertCreateReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.TLSCertCreateReq)
TLSCertCreateReqOrBuilder {
// Use TLSCertCreateReq.newBuilder() to construct.
private TLSCertCreateReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TLSCertCreateReq() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private TLSCertCreateReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (ts_ != null) {
subBuilder = ts_.toBuilder();
}
ts_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ts_);
ts_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.hyperledger.protos.Ca.Identity.Builder subBuilder = null;
if (id_ != null) {
subBuilder = id_.toBuilder();
}
id_ = input.readMessage(org.hyperledger.protos.Ca.Identity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(id_);
id_ = subBuilder.buildPartial();
}
break;
}
case 26: {
org.hyperledger.protos.Ca.PublicKey.Builder subBuilder = null;
if (pub_ != null) {
subBuilder = pub_.toBuilder();
}
pub_ = input.readMessage(org.hyperledger.protos.Ca.PublicKey.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pub_);
pub_ = subBuilder.buildPartial();
}
break;
}
case 34: {
org.hyperledger.protos.Ca.Signature.Builder subBuilder = null;
if (sig_ != null) {
subBuilder = sig_.toBuilder();
}
sig_ = input.readMessage(org.hyperledger.protos.Ca.Signature.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sig_);
sig_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TLSCertCreateReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TLSCertCreateReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TLSCertCreateReq.class, org.hyperledger.protos.Ca.TLSCertCreateReq.Builder.class);
}
public static final int TS_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp ts_;
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public boolean hasTs() {
return ts_ != null;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.Timestamp getTs() {
return ts_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.TimestampOrBuilder getTsOrBuilder() {
return getTs();
}
public static final int ID_FIELD_NUMBER = 2;
private org.hyperledger.protos.Ca.Identity id_;
/**
* optional .protos.Identity id = 2;
*/
public boolean hasId() {
return id_ != null;
}
/**
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.Identity getId() {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
/**
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
return getId();
}
public static final int PUB_FIELD_NUMBER = 3;
private org.hyperledger.protos.Ca.PublicKey pub_;
/**
* optional .protos.PublicKey pub = 3;
*/
public boolean hasPub() {
return pub_ != null;
}
/**
* optional .protos.PublicKey pub = 3;
*/
public org.hyperledger.protos.Ca.PublicKey getPub() {
return pub_ == null ? org.hyperledger.protos.Ca.PublicKey.getDefaultInstance() : pub_;
}
/**
* optional .protos.PublicKey pub = 3;
*/
public org.hyperledger.protos.Ca.PublicKeyOrBuilder getPubOrBuilder() {
return getPub();
}
public static final int SIG_FIELD_NUMBER = 4;
private org.hyperledger.protos.Ca.Signature sig_;
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
public boolean hasSig() {
return sig_ != null;
}
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
return getSig();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (ts_ != null) {
output.writeMessage(1, getTs());
}
if (id_ != null) {
output.writeMessage(2, getId());
}
if (pub_ != null) {
output.writeMessage(3, getPub());
}
if (sig_ != null) {
output.writeMessage(4, getSig());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (ts_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTs());
}
if (id_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getId());
}
if (pub_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getPub());
}
if (sig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getSig());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.TLSCertCreateReq)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.TLSCertCreateReq other = (org.hyperledger.protos.Ca.TLSCertCreateReq) obj;
boolean result = true;
result = result && (hasTs() == other.hasTs());
if (hasTs()) {
result = result && getTs()
.equals(other.getTs());
}
result = result && (hasId() == other.hasId());
if (hasId()) {
result = result && getId()
.equals(other.getId());
}
result = result && (hasPub() == other.hasPub());
if (hasPub()) {
result = result && getPub()
.equals(other.getPub());
}
result = result && (hasSig() == other.hasSig());
if (hasSig()) {
result = result && getSig()
.equals(other.getSig());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasTs()) {
hash = (37 * hash) + TS_FIELD_NUMBER;
hash = (53 * hash) + getTs().hashCode();
}
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
if (hasPub()) {
hash = (37 * hash) + PUB_FIELD_NUMBER;
hash = (53 * hash) + getPub().hashCode();
}
if (hasSig()) {
hash = (37 * hash) + SIG_FIELD_NUMBER;
hash = (53 * hash) + getSig().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.TLSCertCreateReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TLSCertCreateReq 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.protos.Ca.TLSCertCreateReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TLSCertCreateReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.TLSCertCreateReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TLSCertCreateReq 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.protos.Ca.TLSCertCreateReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TLSCertCreateReq 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.protos.Ca.TLSCertCreateReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TLSCertCreateReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.TLSCertCreateReq prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.TLSCertCreateReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.TLSCertCreateReq)
org.hyperledger.protos.Ca.TLSCertCreateReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TLSCertCreateReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TLSCertCreateReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TLSCertCreateReq.class, org.hyperledger.protos.Ca.TLSCertCreateReq.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.TLSCertCreateReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (tsBuilder_ == null) {
ts_ = null;
} else {
ts_ = null;
tsBuilder_ = null;
}
if (idBuilder_ == null) {
id_ = null;
} else {
id_ = null;
idBuilder_ = null;
}
if (pubBuilder_ == null) {
pub_ = null;
} else {
pub_ = null;
pubBuilder_ = null;
}
if (sigBuilder_ == null) {
sig_ = null;
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_TLSCertCreateReq_descriptor;
}
public org.hyperledger.protos.Ca.TLSCertCreateReq getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.TLSCertCreateReq.getDefaultInstance();
}
public org.hyperledger.protos.Ca.TLSCertCreateReq build() {
org.hyperledger.protos.Ca.TLSCertCreateReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.TLSCertCreateReq buildPartial() {
org.hyperledger.protos.Ca.TLSCertCreateReq result = new org.hyperledger.protos.Ca.TLSCertCreateReq(this);
if (tsBuilder_ == null) {
result.ts_ = ts_;
} else {
result.ts_ = tsBuilder_.build();
}
if (idBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
if (pubBuilder_ == null) {
result.pub_ = pub_;
} else {
result.pub_ = pubBuilder_.build();
}
if (sigBuilder_ == null) {
result.sig_ = sig_;
} else {
result.sig_ = sigBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.TLSCertCreateReq) {
return mergeFrom((org.hyperledger.protos.Ca.TLSCertCreateReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.TLSCertCreateReq other) {
if (other == org.hyperledger.protos.Ca.TLSCertCreateReq.getDefaultInstance()) return this;
if (other.hasTs()) {
mergeTs(other.getTs());
}
if (other.hasId()) {
mergeId(other.getId());
}
if (other.hasPub()) {
mergePub(other.getPub());
}
if (other.hasSig()) {
mergeSig(other.getSig());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.TLSCertCreateReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.TLSCertCreateReq) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.Timestamp ts_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> tsBuilder_;
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public boolean hasTs() {
return tsBuilder_ != null || ts_ != null;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.Timestamp getTs() {
if (tsBuilder_ == null) {
return ts_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
} else {
return tsBuilder_.getMessage();
}
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder setTs(com.google.protobuf.Timestamp value) {
if (tsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ts_ = value;
onChanged();
} else {
tsBuilder_.setMessage(value);
}
return this;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder setTs(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (tsBuilder_ == null) {
ts_ = builderForValue.build();
onChanged();
} else {
tsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder mergeTs(com.google.protobuf.Timestamp value) {
if (tsBuilder_ == null) {
if (ts_ != null) {
ts_ =
com.google.protobuf.Timestamp.newBuilder(ts_).mergeFrom(value).buildPartial();
} else {
ts_ = value;
}
onChanged();
} else {
tsBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder clearTs() {
if (tsBuilder_ == null) {
ts_ = null;
onChanged();
} else {
ts_ = null;
tsBuilder_ = null;
}
return this;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.Timestamp.Builder getTsBuilder() {
onChanged();
return getTsFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.TimestampOrBuilder getTsOrBuilder() {
if (tsBuilder_ != null) {
return tsBuilder_.getMessageOrBuilder();
} else {
return ts_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
}
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getTsFieldBuilder() {
if (tsBuilder_ == null) {
tsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getTs(),
getParentForChildren(),
isClean());
ts_ = null;
}
return tsBuilder_;
}
private org.hyperledger.protos.Ca.Identity id_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder> idBuilder_;
/**
* optional .protos.Identity id = 2;
*/
public boolean hasId() {
return idBuilder_ != null || id_ != null;
}
/**
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.Identity getId() {
if (idBuilder_ == null) {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
} else {
return idBuilder_.getMessage();
}
}
/**
* optional .protos.Identity id = 2;
*/
public Builder setId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
idBuilder_.setMessage(value);
}
return this;
}
/**
* optional .protos.Identity id = 2;
*/
public Builder setId(
org.hyperledger.protos.Ca.Identity.Builder builderForValue) {
if (idBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
idBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .protos.Identity id = 2;
*/
public Builder mergeId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (id_ != null) {
id_ =
org.hyperledger.protos.Ca.Identity.newBuilder(id_).mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
idBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .protos.Identity id = 2;
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = null;
onChanged();
} else {
id_ = null;
idBuilder_ = null;
}
return this;
}
/**
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.Identity.Builder getIdBuilder() {
onChanged();
return getIdFieldBuilder().getBuilder();
}
/**
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
return id_ == null ?
org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
}
/**
* optional .protos.Identity id = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>(
getId(),
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
private org.hyperledger.protos.Ca.PublicKey pub_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.PublicKey, org.hyperledger.protos.Ca.PublicKey.Builder, org.hyperledger.protos.Ca.PublicKeyOrBuilder> pubBuilder_;
/**
* optional .protos.PublicKey pub = 3;
*/
public boolean hasPub() {
return pubBuilder_ != null || pub_ != null;
}
/**
* optional .protos.PublicKey pub = 3;
*/
public org.hyperledger.protos.Ca.PublicKey getPub() {
if (pubBuilder_ == null) {
return pub_ == null ? org.hyperledger.protos.Ca.PublicKey.getDefaultInstance() : pub_;
} else {
return pubBuilder_.getMessage();
}
}
/**
* optional .protos.PublicKey pub = 3;
*/
public Builder setPub(org.hyperledger.protos.Ca.PublicKey value) {
if (pubBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pub_ = value;
onChanged();
} else {
pubBuilder_.setMessage(value);
}
return this;
}
/**
* optional .protos.PublicKey pub = 3;
*/
public Builder setPub(
org.hyperledger.protos.Ca.PublicKey.Builder builderForValue) {
if (pubBuilder_ == null) {
pub_ = builderForValue.build();
onChanged();
} else {
pubBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .protos.PublicKey pub = 3;
*/
public Builder mergePub(org.hyperledger.protos.Ca.PublicKey value) {
if (pubBuilder_ == null) {
if (pub_ != null) {
pub_ =
org.hyperledger.protos.Ca.PublicKey.newBuilder(pub_).mergeFrom(value).buildPartial();
} else {
pub_ = value;
}
onChanged();
} else {
pubBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .protos.PublicKey pub = 3;
*/
public Builder clearPub() {
if (pubBuilder_ == null) {
pub_ = null;
onChanged();
} else {
pub_ = null;
pubBuilder_ = null;
}
return this;
}
/**
* optional .protos.PublicKey pub = 3;
*/
public org.hyperledger.protos.Ca.PublicKey.Builder getPubBuilder() {
onChanged();
return getPubFieldBuilder().getBuilder();
}
/**
* optional .protos.PublicKey pub = 3;
*/
public org.hyperledger.protos.Ca.PublicKeyOrBuilder getPubOrBuilder() {
if (pubBuilder_ != null) {
return pubBuilder_.getMessageOrBuilder();
} else {
return pub_ == null ?
org.hyperledger.protos.Ca.PublicKey.getDefaultInstance() : pub_;
}
}
/**
* optional .protos.PublicKey pub = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.PublicKey, org.hyperledger.protos.Ca.PublicKey.Builder, org.hyperledger.protos.Ca.PublicKeyOrBuilder>
getPubFieldBuilder() {
if (pubBuilder_ == null) {
pubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.PublicKey, org.hyperledger.protos.Ca.PublicKey.Builder, org.hyperledger.protos.Ca.PublicKeyOrBuilder>(
getPub(),
getParentForChildren(),
isClean());
pub_ = null;
}
return pubBuilder_;
}
private org.hyperledger.protos.Ca.Signature sig_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder> sigBuilder_;
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
public boolean hasSig() {
return sigBuilder_ != null || sig_ != null;
}
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
if (sigBuilder_ == null) {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
} else {
return sigBuilder_.getMessage();
}
}
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
public Builder setSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sig_ = value;
onChanged();
} else {
sigBuilder_.setMessage(value);
}
return this;
}
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
public Builder setSig(
org.hyperledger.protos.Ca.Signature.Builder builderForValue) {
if (sigBuilder_ == null) {
sig_ = builderForValue.build();
onChanged();
} else {
sigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
public Builder mergeSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (sig_ != null) {
sig_ =
org.hyperledger.protos.Ca.Signature.newBuilder(sig_).mergeFrom(value).buildPartial();
} else {
sig_ = value;
}
onChanged();
} else {
sigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
public Builder clearSig() {
if (sigBuilder_ == null) {
sig_ = null;
onChanged();
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
public org.hyperledger.protos.Ca.Signature.Builder getSigBuilder() {
onChanged();
return getSigFieldBuilder().getBuilder();
}
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
if (sigBuilder_ != null) {
return sigBuilder_.getMessageOrBuilder();
} else {
return sig_ == null ?
org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
}
/**
*
* sign(priv, ts | id | pub)
*
*
* optional .protos.Signature sig = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>
getSigFieldBuilder() {
if (sigBuilder_ == null) {
sigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>(
getSig(),
getParentForChildren(),
isClean());
sig_ = null;
}
return sigBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.TLSCertCreateReq)
}
// @@protoc_insertion_point(class_scope:protos.TLSCertCreateReq)
private static final org.hyperledger.protos.Ca.TLSCertCreateReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.TLSCertCreateReq();
}
public static org.hyperledger.protos.Ca.TLSCertCreateReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TLSCertCreateReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TLSCertCreateReq(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.TLSCertCreateReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TLSCertCreateRespOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.TLSCertCreateResp)
com.google.protobuf.MessageOrBuilder {
/**
* optional .protos.Cert cert = 1;
*/
boolean hasCert();
/**
* optional .protos.Cert cert = 1;
*/
org.hyperledger.protos.Ca.Cert getCert();
/**
* optional .protos.Cert cert = 1;
*/
org.hyperledger.protos.Ca.CertOrBuilder getCertOrBuilder();
/**
* optional .protos.Cert rootCert = 2;
*/
boolean hasRootCert();
/**
* optional .protos.Cert rootCert = 2;
*/
org.hyperledger.protos.Ca.Cert getRootCert();
/**
* optional .protos.Cert rootCert = 2;
*/
org.hyperledger.protos.Ca.CertOrBuilder getRootCertOrBuilder();
}
/**
* Protobuf type {@code protos.TLSCertCreateResp}
*/
public static final class TLSCertCreateResp extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.TLSCertCreateResp)
TLSCertCreateRespOrBuilder {
// Use TLSCertCreateResp.newBuilder() to construct.
private TLSCertCreateResp(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TLSCertCreateResp() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private TLSCertCreateResp(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
org.hyperledger.protos.Ca.Cert.Builder subBuilder = null;
if (cert_ != null) {
subBuilder = cert_.toBuilder();
}
cert_ = input.readMessage(org.hyperledger.protos.Ca.Cert.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(cert_);
cert_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.hyperledger.protos.Ca.Cert.Builder subBuilder = null;
if (rootCert_ != null) {
subBuilder = rootCert_.toBuilder();
}
rootCert_ = input.readMessage(org.hyperledger.protos.Ca.Cert.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(rootCert_);
rootCert_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TLSCertCreateResp_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TLSCertCreateResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TLSCertCreateResp.class, org.hyperledger.protos.Ca.TLSCertCreateResp.Builder.class);
}
public static final int CERT_FIELD_NUMBER = 1;
private org.hyperledger.protos.Ca.Cert cert_;
/**
* optional .protos.Cert cert = 1;
*/
public boolean hasCert() {
return cert_ != null;
}
/**
* optional .protos.Cert cert = 1;
*/
public org.hyperledger.protos.Ca.Cert getCert() {
return cert_ == null ? org.hyperledger.protos.Ca.Cert.getDefaultInstance() : cert_;
}
/**
* optional .protos.Cert cert = 1;
*/
public org.hyperledger.protos.Ca.CertOrBuilder getCertOrBuilder() {
return getCert();
}
public static final int ROOTCERT_FIELD_NUMBER = 2;
private org.hyperledger.protos.Ca.Cert rootCert_;
/**
* optional .protos.Cert rootCert = 2;
*/
public boolean hasRootCert() {
return rootCert_ != null;
}
/**
* optional .protos.Cert rootCert = 2;
*/
public org.hyperledger.protos.Ca.Cert getRootCert() {
return rootCert_ == null ? org.hyperledger.protos.Ca.Cert.getDefaultInstance() : rootCert_;
}
/**
* optional .protos.Cert rootCert = 2;
*/
public org.hyperledger.protos.Ca.CertOrBuilder getRootCertOrBuilder() {
return getRootCert();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (cert_ != null) {
output.writeMessage(1, getCert());
}
if (rootCert_ != null) {
output.writeMessage(2, getRootCert());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (cert_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCert());
}
if (rootCert_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRootCert());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.TLSCertCreateResp)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.TLSCertCreateResp other = (org.hyperledger.protos.Ca.TLSCertCreateResp) obj;
boolean result = true;
result = result && (hasCert() == other.hasCert());
if (hasCert()) {
result = result && getCert()
.equals(other.getCert());
}
result = result && (hasRootCert() == other.hasRootCert());
if (hasRootCert()) {
result = result && getRootCert()
.equals(other.getRootCert());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasCert()) {
hash = (37 * hash) + CERT_FIELD_NUMBER;
hash = (53 * hash) + getCert().hashCode();
}
if (hasRootCert()) {
hash = (37 * hash) + ROOTCERT_FIELD_NUMBER;
hash = (53 * hash) + getRootCert().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.TLSCertCreateResp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TLSCertCreateResp 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.protos.Ca.TLSCertCreateResp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TLSCertCreateResp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.TLSCertCreateResp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TLSCertCreateResp 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.protos.Ca.TLSCertCreateResp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TLSCertCreateResp 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.protos.Ca.TLSCertCreateResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TLSCertCreateResp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.TLSCertCreateResp prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.TLSCertCreateResp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.TLSCertCreateResp)
org.hyperledger.protos.Ca.TLSCertCreateRespOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TLSCertCreateResp_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TLSCertCreateResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TLSCertCreateResp.class, org.hyperledger.protos.Ca.TLSCertCreateResp.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.TLSCertCreateResp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (certBuilder_ == null) {
cert_ = null;
} else {
cert_ = null;
certBuilder_ = null;
}
if (rootCertBuilder_ == null) {
rootCert_ = null;
} else {
rootCert_ = null;
rootCertBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_TLSCertCreateResp_descriptor;
}
public org.hyperledger.protos.Ca.TLSCertCreateResp getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.TLSCertCreateResp.getDefaultInstance();
}
public org.hyperledger.protos.Ca.TLSCertCreateResp build() {
org.hyperledger.protos.Ca.TLSCertCreateResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.TLSCertCreateResp buildPartial() {
org.hyperledger.protos.Ca.TLSCertCreateResp result = new org.hyperledger.protos.Ca.TLSCertCreateResp(this);
if (certBuilder_ == null) {
result.cert_ = cert_;
} else {
result.cert_ = certBuilder_.build();
}
if (rootCertBuilder_ == null) {
result.rootCert_ = rootCert_;
} else {
result.rootCert_ = rootCertBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.TLSCertCreateResp) {
return mergeFrom((org.hyperledger.protos.Ca.TLSCertCreateResp)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.TLSCertCreateResp other) {
if (other == org.hyperledger.protos.Ca.TLSCertCreateResp.getDefaultInstance()) return this;
if (other.hasCert()) {
mergeCert(other.getCert());
}
if (other.hasRootCert()) {
mergeRootCert(other.getRootCert());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.TLSCertCreateResp parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.TLSCertCreateResp) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.hyperledger.protos.Ca.Cert cert_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder> certBuilder_;
/**
* optional .protos.Cert cert = 1;
*/
public boolean hasCert() {
return certBuilder_ != null || cert_ != null;
}
/**
* optional .protos.Cert cert = 1;
*/
public org.hyperledger.protos.Ca.Cert getCert() {
if (certBuilder_ == null) {
return cert_ == null ? org.hyperledger.protos.Ca.Cert.getDefaultInstance() : cert_;
} else {
return certBuilder_.getMessage();
}
}
/**
* optional .protos.Cert cert = 1;
*/
public Builder setCert(org.hyperledger.protos.Ca.Cert value) {
if (certBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cert_ = value;
onChanged();
} else {
certBuilder_.setMessage(value);
}
return this;
}
/**
* optional .protos.Cert cert = 1;
*/
public Builder setCert(
org.hyperledger.protos.Ca.Cert.Builder builderForValue) {
if (certBuilder_ == null) {
cert_ = builderForValue.build();
onChanged();
} else {
certBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .protos.Cert cert = 1;
*/
public Builder mergeCert(org.hyperledger.protos.Ca.Cert value) {
if (certBuilder_ == null) {
if (cert_ != null) {
cert_ =
org.hyperledger.protos.Ca.Cert.newBuilder(cert_).mergeFrom(value).buildPartial();
} else {
cert_ = value;
}
onChanged();
} else {
certBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .protos.Cert cert = 1;
*/
public Builder clearCert() {
if (certBuilder_ == null) {
cert_ = null;
onChanged();
} else {
cert_ = null;
certBuilder_ = null;
}
return this;
}
/**
* optional .protos.Cert cert = 1;
*/
public org.hyperledger.protos.Ca.Cert.Builder getCertBuilder() {
onChanged();
return getCertFieldBuilder().getBuilder();
}
/**
* optional .protos.Cert cert = 1;
*/
public org.hyperledger.protos.Ca.CertOrBuilder getCertOrBuilder() {
if (certBuilder_ != null) {
return certBuilder_.getMessageOrBuilder();
} else {
return cert_ == null ?
org.hyperledger.protos.Ca.Cert.getDefaultInstance() : cert_;
}
}
/**
* optional .protos.Cert cert = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder>
getCertFieldBuilder() {
if (certBuilder_ == null) {
certBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder>(
getCert(),
getParentForChildren(),
isClean());
cert_ = null;
}
return certBuilder_;
}
private org.hyperledger.protos.Ca.Cert rootCert_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder> rootCertBuilder_;
/**
* optional .protos.Cert rootCert = 2;
*/
public boolean hasRootCert() {
return rootCertBuilder_ != null || rootCert_ != null;
}
/**
* optional .protos.Cert rootCert = 2;
*/
public org.hyperledger.protos.Ca.Cert getRootCert() {
if (rootCertBuilder_ == null) {
return rootCert_ == null ? org.hyperledger.protos.Ca.Cert.getDefaultInstance() : rootCert_;
} else {
return rootCertBuilder_.getMessage();
}
}
/**
* optional .protos.Cert rootCert = 2;
*/
public Builder setRootCert(org.hyperledger.protos.Ca.Cert value) {
if (rootCertBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rootCert_ = value;
onChanged();
} else {
rootCertBuilder_.setMessage(value);
}
return this;
}
/**
* optional .protos.Cert rootCert = 2;
*/
public Builder setRootCert(
org.hyperledger.protos.Ca.Cert.Builder builderForValue) {
if (rootCertBuilder_ == null) {
rootCert_ = builderForValue.build();
onChanged();
} else {
rootCertBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .protos.Cert rootCert = 2;
*/
public Builder mergeRootCert(org.hyperledger.protos.Ca.Cert value) {
if (rootCertBuilder_ == null) {
if (rootCert_ != null) {
rootCert_ =
org.hyperledger.protos.Ca.Cert.newBuilder(rootCert_).mergeFrom(value).buildPartial();
} else {
rootCert_ = value;
}
onChanged();
} else {
rootCertBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .protos.Cert rootCert = 2;
*/
public Builder clearRootCert() {
if (rootCertBuilder_ == null) {
rootCert_ = null;
onChanged();
} else {
rootCert_ = null;
rootCertBuilder_ = null;
}
return this;
}
/**
* optional .protos.Cert rootCert = 2;
*/
public org.hyperledger.protos.Ca.Cert.Builder getRootCertBuilder() {
onChanged();
return getRootCertFieldBuilder().getBuilder();
}
/**
* optional .protos.Cert rootCert = 2;
*/
public org.hyperledger.protos.Ca.CertOrBuilder getRootCertOrBuilder() {
if (rootCertBuilder_ != null) {
return rootCertBuilder_.getMessageOrBuilder();
} else {
return rootCert_ == null ?
org.hyperledger.protos.Ca.Cert.getDefaultInstance() : rootCert_;
}
}
/**
* optional .protos.Cert rootCert = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder>
getRootCertFieldBuilder() {
if (rootCertBuilder_ == null) {
rootCertBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder>(
getRootCert(),
getParentForChildren(),
isClean());
rootCert_ = null;
}
return rootCertBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.TLSCertCreateResp)
}
// @@protoc_insertion_point(class_scope:protos.TLSCertCreateResp)
private static final org.hyperledger.protos.Ca.TLSCertCreateResp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.TLSCertCreateResp();
}
public static org.hyperledger.protos.Ca.TLSCertCreateResp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TLSCertCreateResp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TLSCertCreateResp(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.TLSCertCreateResp getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TLSCertReadReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.TLSCertReadReq)
com.google.protobuf.MessageOrBuilder {
/**
* optional .protos.Identity id = 1;
*/
boolean hasId();
/**
* optional .protos.Identity id = 1;
*/
org.hyperledger.protos.Ca.Identity getId();
/**
* optional .protos.Identity id = 1;
*/
org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder();
}
/**
* Protobuf type {@code protos.TLSCertReadReq}
*/
public static final class TLSCertReadReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.TLSCertReadReq)
TLSCertReadReqOrBuilder {
// Use TLSCertReadReq.newBuilder() to construct.
private TLSCertReadReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TLSCertReadReq() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private TLSCertReadReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
org.hyperledger.protos.Ca.Identity.Builder subBuilder = null;
if (id_ != null) {
subBuilder = id_.toBuilder();
}
id_ = input.readMessage(org.hyperledger.protos.Ca.Identity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(id_);
id_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TLSCertReadReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TLSCertReadReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TLSCertReadReq.class, org.hyperledger.protos.Ca.TLSCertReadReq.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private org.hyperledger.protos.Ca.Identity id_;
/**
* optional .protos.Identity id = 1;
*/
public boolean hasId() {
return id_ != null;
}
/**
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity getId() {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
/**
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
return getId();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (id_ != null) {
output.writeMessage(1, getId());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getId());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.TLSCertReadReq)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.TLSCertReadReq other = (org.hyperledger.protos.Ca.TLSCertReadReq) obj;
boolean result = true;
result = result && (hasId() == other.hasId());
if (hasId()) {
result = result && getId()
.equals(other.getId());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.TLSCertReadReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TLSCertReadReq 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.protos.Ca.TLSCertReadReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TLSCertReadReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.TLSCertReadReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TLSCertReadReq 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.protos.Ca.TLSCertReadReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TLSCertReadReq 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.protos.Ca.TLSCertReadReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TLSCertReadReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.TLSCertReadReq prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.TLSCertReadReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.TLSCertReadReq)
org.hyperledger.protos.Ca.TLSCertReadReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TLSCertReadReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TLSCertReadReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TLSCertReadReq.class, org.hyperledger.protos.Ca.TLSCertReadReq.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.TLSCertReadReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (idBuilder_ == null) {
id_ = null;
} else {
id_ = null;
idBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_TLSCertReadReq_descriptor;
}
public org.hyperledger.protos.Ca.TLSCertReadReq getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.TLSCertReadReq.getDefaultInstance();
}
public org.hyperledger.protos.Ca.TLSCertReadReq build() {
org.hyperledger.protos.Ca.TLSCertReadReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.TLSCertReadReq buildPartial() {
org.hyperledger.protos.Ca.TLSCertReadReq result = new org.hyperledger.protos.Ca.TLSCertReadReq(this);
if (idBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.TLSCertReadReq) {
return mergeFrom((org.hyperledger.protos.Ca.TLSCertReadReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.TLSCertReadReq other) {
if (other == org.hyperledger.protos.Ca.TLSCertReadReq.getDefaultInstance()) return this;
if (other.hasId()) {
mergeId(other.getId());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.TLSCertReadReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.TLSCertReadReq) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.hyperledger.protos.Ca.Identity id_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder> idBuilder_;
/**
* optional .protos.Identity id = 1;
*/
public boolean hasId() {
return idBuilder_ != null || id_ != null;
}
/**
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity getId() {
if (idBuilder_ == null) {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
} else {
return idBuilder_.getMessage();
}
}
/**
* optional .protos.Identity id = 1;
*/
public Builder setId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
idBuilder_.setMessage(value);
}
return this;
}
/**
* optional .protos.Identity id = 1;
*/
public Builder setId(
org.hyperledger.protos.Ca.Identity.Builder builderForValue) {
if (idBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
idBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .protos.Identity id = 1;
*/
public Builder mergeId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (id_ != null) {
id_ =
org.hyperledger.protos.Ca.Identity.newBuilder(id_).mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
idBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .protos.Identity id = 1;
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = null;
onChanged();
} else {
id_ = null;
idBuilder_ = null;
}
return this;
}
/**
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity.Builder getIdBuilder() {
onChanged();
return getIdFieldBuilder().getBuilder();
}
/**
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
return id_ == null ?
org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
}
/**
* optional .protos.Identity id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>(
getId(),
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.TLSCertReadReq)
}
// @@protoc_insertion_point(class_scope:protos.TLSCertReadReq)
private static final org.hyperledger.protos.Ca.TLSCertReadReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.TLSCertReadReq();
}
public static org.hyperledger.protos.Ca.TLSCertReadReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TLSCertReadReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TLSCertReadReq(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.TLSCertReadReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TLSCertRevokeReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.TLSCertRevokeReq)
com.google.protobuf.MessageOrBuilder {
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
boolean hasId();
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
org.hyperledger.protos.Ca.Identity getId();
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder();
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
boolean hasCert();
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
org.hyperledger.protos.Ca.Cert getCert();
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
org.hyperledger.protos.Ca.CertOrBuilder getCertOrBuilder();
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
boolean hasSig();
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
org.hyperledger.protos.Ca.Signature getSig();
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder();
}
/**
* Protobuf type {@code protos.TLSCertRevokeReq}
*/
public static final class TLSCertRevokeReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.TLSCertRevokeReq)
TLSCertRevokeReqOrBuilder {
// Use TLSCertRevokeReq.newBuilder() to construct.
private TLSCertRevokeReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TLSCertRevokeReq() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private TLSCertRevokeReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
org.hyperledger.protos.Ca.Identity.Builder subBuilder = null;
if (id_ != null) {
subBuilder = id_.toBuilder();
}
id_ = input.readMessage(org.hyperledger.protos.Ca.Identity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(id_);
id_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.hyperledger.protos.Ca.Cert.Builder subBuilder = null;
if (cert_ != null) {
subBuilder = cert_.toBuilder();
}
cert_ = input.readMessage(org.hyperledger.protos.Ca.Cert.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(cert_);
cert_ = subBuilder.buildPartial();
}
break;
}
case 26: {
org.hyperledger.protos.Ca.Signature.Builder subBuilder = null;
if (sig_ != null) {
subBuilder = sig_.toBuilder();
}
sig_ = input.readMessage(org.hyperledger.protos.Ca.Signature.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sig_);
sig_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TLSCertRevokeReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TLSCertRevokeReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TLSCertRevokeReq.class, org.hyperledger.protos.Ca.TLSCertRevokeReq.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private org.hyperledger.protos.Ca.Identity id_;
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
public boolean hasId() {
return id_ != null;
}
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity getId() {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
return getId();
}
public static final int CERT_FIELD_NUMBER = 2;
private org.hyperledger.protos.Ca.Cert cert_;
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public boolean hasCert() {
return cert_ != null;
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public org.hyperledger.protos.Ca.Cert getCert() {
return cert_ == null ? org.hyperledger.protos.Ca.Cert.getDefaultInstance() : cert_;
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public org.hyperledger.protos.Ca.CertOrBuilder getCertOrBuilder() {
return getCert();
}
public static final int SIG_FIELD_NUMBER = 3;
private org.hyperledger.protos.Ca.Signature sig_;
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public boolean hasSig() {
return sig_ != null;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
return getSig();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (id_ != null) {
output.writeMessage(1, getId());
}
if (cert_ != null) {
output.writeMessage(2, getCert());
}
if (sig_ != null) {
output.writeMessage(3, getSig());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getId());
}
if (cert_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getCert());
}
if (sig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getSig());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.TLSCertRevokeReq)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.TLSCertRevokeReq other = (org.hyperledger.protos.Ca.TLSCertRevokeReq) obj;
boolean result = true;
result = result && (hasId() == other.hasId());
if (hasId()) {
result = result && getId()
.equals(other.getId());
}
result = result && (hasCert() == other.hasCert());
if (hasCert()) {
result = result && getCert()
.equals(other.getCert());
}
result = result && (hasSig() == other.hasSig());
if (hasSig()) {
result = result && getSig()
.equals(other.getSig());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
if (hasCert()) {
hash = (37 * hash) + CERT_FIELD_NUMBER;
hash = (53 * hash) + getCert().hashCode();
}
if (hasSig()) {
hash = (37 * hash) + SIG_FIELD_NUMBER;
hash = (53 * hash) + getSig().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.TLSCertRevokeReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TLSCertRevokeReq 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.protos.Ca.TLSCertRevokeReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TLSCertRevokeReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.TLSCertRevokeReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TLSCertRevokeReq 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.protos.Ca.TLSCertRevokeReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TLSCertRevokeReq 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.protos.Ca.TLSCertRevokeReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TLSCertRevokeReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.TLSCertRevokeReq prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.TLSCertRevokeReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.TLSCertRevokeReq)
org.hyperledger.protos.Ca.TLSCertRevokeReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TLSCertRevokeReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TLSCertRevokeReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TLSCertRevokeReq.class, org.hyperledger.protos.Ca.TLSCertRevokeReq.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.TLSCertRevokeReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (idBuilder_ == null) {
id_ = null;
} else {
id_ = null;
idBuilder_ = null;
}
if (certBuilder_ == null) {
cert_ = null;
} else {
cert_ = null;
certBuilder_ = null;
}
if (sigBuilder_ == null) {
sig_ = null;
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_TLSCertRevokeReq_descriptor;
}
public org.hyperledger.protos.Ca.TLSCertRevokeReq getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.TLSCertRevokeReq.getDefaultInstance();
}
public org.hyperledger.protos.Ca.TLSCertRevokeReq build() {
org.hyperledger.protos.Ca.TLSCertRevokeReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.TLSCertRevokeReq buildPartial() {
org.hyperledger.protos.Ca.TLSCertRevokeReq result = new org.hyperledger.protos.Ca.TLSCertRevokeReq(this);
if (idBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
if (certBuilder_ == null) {
result.cert_ = cert_;
} else {
result.cert_ = certBuilder_.build();
}
if (sigBuilder_ == null) {
result.sig_ = sig_;
} else {
result.sig_ = sigBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.TLSCertRevokeReq) {
return mergeFrom((org.hyperledger.protos.Ca.TLSCertRevokeReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.TLSCertRevokeReq other) {
if (other == org.hyperledger.protos.Ca.TLSCertRevokeReq.getDefaultInstance()) return this;
if (other.hasId()) {
mergeId(other.getId());
}
if (other.hasCert()) {
mergeCert(other.getCert());
}
if (other.hasSig()) {
mergeSig(other.getSig());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.TLSCertRevokeReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.TLSCertRevokeReq) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.hyperledger.protos.Ca.Identity id_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder> idBuilder_;
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
public boolean hasId() {
return idBuilder_ != null || id_ != null;
}
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity getId() {
if (idBuilder_ == null) {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
} else {
return idBuilder_.getMessage();
}
}
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
public Builder setId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
idBuilder_.setMessage(value);
}
return this;
}
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
public Builder setId(
org.hyperledger.protos.Ca.Identity.Builder builderForValue) {
if (idBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
idBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
public Builder mergeId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (id_ != null) {
id_ =
org.hyperledger.protos.Ca.Identity.newBuilder(id_).mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
idBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = null;
onChanged();
} else {
id_ = null;
idBuilder_ = null;
}
return this;
}
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.Identity.Builder getIdBuilder() {
onChanged();
return getIdFieldBuilder().getBuilder();
}
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
return id_ == null ?
org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
}
/**
*
* user or admin whereby users can only revoke their own cert
*
*
* optional .protos.Identity id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>(
getId(),
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
private org.hyperledger.protos.Ca.Cert cert_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder> certBuilder_;
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public boolean hasCert() {
return certBuilder_ != null || cert_ != null;
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public org.hyperledger.protos.Ca.Cert getCert() {
if (certBuilder_ == null) {
return cert_ == null ? org.hyperledger.protos.Ca.Cert.getDefaultInstance() : cert_;
} else {
return certBuilder_.getMessage();
}
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public Builder setCert(org.hyperledger.protos.Ca.Cert value) {
if (certBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cert_ = value;
onChanged();
} else {
certBuilder_.setMessage(value);
}
return this;
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public Builder setCert(
org.hyperledger.protos.Ca.Cert.Builder builderForValue) {
if (certBuilder_ == null) {
cert_ = builderForValue.build();
onChanged();
} else {
certBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public Builder mergeCert(org.hyperledger.protos.Ca.Cert value) {
if (certBuilder_ == null) {
if (cert_ != null) {
cert_ =
org.hyperledger.protos.Ca.Cert.newBuilder(cert_).mergeFrom(value).buildPartial();
} else {
cert_ = value;
}
onChanged();
} else {
certBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public Builder clearCert() {
if (certBuilder_ == null) {
cert_ = null;
onChanged();
} else {
cert_ = null;
certBuilder_ = null;
}
return this;
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public org.hyperledger.protos.Ca.Cert.Builder getCertBuilder() {
onChanged();
return getCertFieldBuilder().getBuilder();
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
public org.hyperledger.protos.Ca.CertOrBuilder getCertOrBuilder() {
if (certBuilder_ != null) {
return certBuilder_.getMessageOrBuilder();
} else {
return cert_ == null ?
org.hyperledger.protos.Ca.Cert.getDefaultInstance() : cert_;
}
}
/**
*
* cert to revoke
*
*
* optional .protos.Cert cert = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder>
getCertFieldBuilder() {
if (certBuilder_ == null) {
certBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder>(
getCert(),
getParentForChildren(),
isClean());
cert_ = null;
}
return certBuilder_;
}
private org.hyperledger.protos.Ca.Signature sig_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder> sigBuilder_;
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public boolean hasSig() {
return sigBuilder_ != null || sig_ != null;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public org.hyperledger.protos.Ca.Signature getSig() {
if (sigBuilder_ == null) {
return sig_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
} else {
return sigBuilder_.getMessage();
}
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public Builder setSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sig_ = value;
onChanged();
} else {
sigBuilder_.setMessage(value);
}
return this;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public Builder setSig(
org.hyperledger.protos.Ca.Signature.Builder builderForValue) {
if (sigBuilder_ == null) {
sig_ = builderForValue.build();
onChanged();
} else {
sigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public Builder mergeSig(org.hyperledger.protos.Ca.Signature value) {
if (sigBuilder_ == null) {
if (sig_ != null) {
sig_ =
org.hyperledger.protos.Ca.Signature.newBuilder(sig_).mergeFrom(value).buildPartial();
} else {
sig_ = value;
}
onChanged();
} else {
sigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public Builder clearSig() {
if (sigBuilder_ == null) {
sig_ = null;
onChanged();
} else {
sig_ = null;
sigBuilder_ = null;
}
return this;
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public org.hyperledger.protos.Ca.Signature.Builder getSigBuilder() {
onChanged();
return getSigFieldBuilder().getBuilder();
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSigOrBuilder() {
if (sigBuilder_ != null) {
return sigBuilder_.getMessageOrBuilder();
} else {
return sig_ == null ?
org.hyperledger.protos.Ca.Signature.getDefaultInstance() : sig_;
}
}
/**
*
* sign(priv, id | cert)
*
*
* optional .protos.Signature sig = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>
getSigFieldBuilder() {
if (sigBuilder_ == null) {
sigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>(
getSig(),
getParentForChildren(),
isClean());
sig_ = null;
}
return sigBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.TLSCertRevokeReq)
}
// @@protoc_insertion_point(class_scope:protos.TLSCertRevokeReq)
private static final org.hyperledger.protos.Ca.TLSCertRevokeReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.TLSCertRevokeReq();
}
public static org.hyperledger.protos.Ca.TLSCertRevokeReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TLSCertRevokeReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TLSCertRevokeReq(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.TLSCertRevokeReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CertOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.Cert)
com.google.protobuf.MessageOrBuilder {
/**
*
* DER / ASN.1 encoded
*
*
* optional bytes cert = 1;
*/
com.google.protobuf.ByteString getCert();
}
/**
*
* Certificate issued by either the ECA or TCA.
*
*
* Protobuf type {@code protos.Cert}
*/
public static final class Cert extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.Cert)
CertOrBuilder {
// Use Cert.newBuilder() to construct.
private Cert(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Cert() {
cert_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Cert(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
cert_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_Cert_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_Cert_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.Cert.class, org.hyperledger.protos.Ca.Cert.Builder.class);
}
public static final int CERT_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString cert_;
/**
*
* DER / ASN.1 encoded
*
*
* optional bytes cert = 1;
*/
public com.google.protobuf.ByteString getCert() {
return cert_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!cert_.isEmpty()) {
output.writeBytes(1, cert_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!cert_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, cert_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.Cert)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.Cert other = (org.hyperledger.protos.Ca.Cert) obj;
boolean result = true;
result = result && getCert()
.equals(other.getCert());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + CERT_FIELD_NUMBER;
hash = (53 * hash) + getCert().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.Cert parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.Cert 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.protos.Ca.Cert parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.Cert parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.Cert parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.Cert 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.protos.Ca.Cert parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.Cert 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.protos.Ca.Cert parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.Cert parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.Cert prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Certificate issued by either the ECA or TCA.
*
*
* Protobuf type {@code protos.Cert}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.Cert)
org.hyperledger.protos.Ca.CertOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_Cert_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_Cert_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.Cert.class, org.hyperledger.protos.Ca.Cert.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.Cert.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
cert_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_Cert_descriptor;
}
public org.hyperledger.protos.Ca.Cert getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.Cert.getDefaultInstance();
}
public org.hyperledger.protos.Ca.Cert build() {
org.hyperledger.protos.Ca.Cert result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.Cert buildPartial() {
org.hyperledger.protos.Ca.Cert result = new org.hyperledger.protos.Ca.Cert(this);
result.cert_ = cert_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.Cert) {
return mergeFrom((org.hyperledger.protos.Ca.Cert)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.Cert other) {
if (other == org.hyperledger.protos.Ca.Cert.getDefaultInstance()) return this;
if (other.getCert() != com.google.protobuf.ByteString.EMPTY) {
setCert(other.getCert());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.Cert parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.Cert) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString cert_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* DER / ASN.1 encoded
*
*
* optional bytes cert = 1;
*/
public com.google.protobuf.ByteString getCert() {
return cert_;
}
/**
*
* DER / ASN.1 encoded
*
*
* optional bytes cert = 1;
*/
public Builder setCert(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
cert_ = value;
onChanged();
return this;
}
/**
*
* DER / ASN.1 encoded
*
*
* optional bytes cert = 1;
*/
public Builder clearCert() {
cert_ = getDefaultInstance().getCert();
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.Cert)
}
// @@protoc_insertion_point(class_scope:protos.Cert)
private static final org.hyperledger.protos.Ca.Cert DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.Cert();
}
public static org.hyperledger.protos.Ca.Cert getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Cert parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Cert(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.Cert getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TCertOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.TCert)
com.google.protobuf.MessageOrBuilder {
/**
*
* DER / ASN.1 encoded
*
*
* optional bytes cert = 1;
*/
com.google.protobuf.ByteString getCert();
/**
*
* PreK0 used to derive the keys to encrypt the TCert extensions (EnrollmentID, TCertIndex and attributes)
*
*
* optional bytes prek0 = 2;
*/
com.google.protobuf.ByteString getPrek0();
}
/**
*
* TCert
*
*
* Protobuf type {@code protos.TCert}
*/
public static final class TCert extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.TCert)
TCertOrBuilder {
// Use TCert.newBuilder() to construct.
private TCert(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TCert() {
cert_ = com.google.protobuf.ByteString.EMPTY;
prek0_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private TCert(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
cert_ = input.readBytes();
break;
}
case 18: {
prek0_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TCert_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TCert_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TCert.class, org.hyperledger.protos.Ca.TCert.Builder.class);
}
public static final int CERT_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString cert_;
/**
*
* DER / ASN.1 encoded
*
*
* optional bytes cert = 1;
*/
public com.google.protobuf.ByteString getCert() {
return cert_;
}
public static final int PREK0_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString prek0_;
/**
*
* PreK0 used to derive the keys to encrypt the TCert extensions (EnrollmentID, TCertIndex and attributes)
*
*
* optional bytes prek0 = 2;
*/
public com.google.protobuf.ByteString getPrek0() {
return prek0_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!cert_.isEmpty()) {
output.writeBytes(1, cert_);
}
if (!prek0_.isEmpty()) {
output.writeBytes(2, prek0_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!cert_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, cert_);
}
if (!prek0_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, prek0_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.TCert)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.TCert other = (org.hyperledger.protos.Ca.TCert) obj;
boolean result = true;
result = result && getCert()
.equals(other.getCert());
result = result && getPrek0()
.equals(other.getPrek0());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + CERT_FIELD_NUMBER;
hash = (53 * hash) + getCert().hashCode();
hash = (37 * hash) + PREK0_FIELD_NUMBER;
hash = (53 * hash) + getPrek0().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.TCert parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TCert 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.protos.Ca.TCert parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.TCert parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.TCert parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCert 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.protos.Ca.TCert parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCert 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.protos.Ca.TCert parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.TCert parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.TCert prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* TCert
*
*
* Protobuf type {@code protos.TCert}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.TCert)
org.hyperledger.protos.Ca.TCertOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_TCert_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_TCert_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.TCert.class, org.hyperledger.protos.Ca.TCert.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.TCert.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
cert_ = com.google.protobuf.ByteString.EMPTY;
prek0_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_TCert_descriptor;
}
public org.hyperledger.protos.Ca.TCert getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.TCert.getDefaultInstance();
}
public org.hyperledger.protos.Ca.TCert build() {
org.hyperledger.protos.Ca.TCert result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.TCert buildPartial() {
org.hyperledger.protos.Ca.TCert result = new org.hyperledger.protos.Ca.TCert(this);
result.cert_ = cert_;
result.prek0_ = prek0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.TCert) {
return mergeFrom((org.hyperledger.protos.Ca.TCert)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.TCert other) {
if (other == org.hyperledger.protos.Ca.TCert.getDefaultInstance()) return this;
if (other.getCert() != com.google.protobuf.ByteString.EMPTY) {
setCert(other.getCert());
}
if (other.getPrek0() != com.google.protobuf.ByteString.EMPTY) {
setPrek0(other.getPrek0());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.TCert parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.TCert) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString cert_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* DER / ASN.1 encoded
*
*
* optional bytes cert = 1;
*/
public com.google.protobuf.ByteString getCert() {
return cert_;
}
/**
*
* DER / ASN.1 encoded
*
*
* optional bytes cert = 1;
*/
public Builder setCert(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
cert_ = value;
onChanged();
return this;
}
/**
*
* DER / ASN.1 encoded
*
*
* optional bytes cert = 1;
*/
public Builder clearCert() {
cert_ = getDefaultInstance().getCert();
onChanged();
return this;
}
private com.google.protobuf.ByteString prek0_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* PreK0 used to derive the keys to encrypt the TCert extensions (EnrollmentID, TCertIndex and attributes)
*
*
* optional bytes prek0 = 2;
*/
public com.google.protobuf.ByteString getPrek0() {
return prek0_;
}
/**
*
* PreK0 used to derive the keys to encrypt the TCert extensions (EnrollmentID, TCertIndex and attributes)
*
*
* optional bytes prek0 = 2;
*/
public Builder setPrek0(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
prek0_ = value;
onChanged();
return this;
}
/**
*
* PreK0 used to derive the keys to encrypt the TCert extensions (EnrollmentID, TCertIndex and attributes)
*
*
* optional bytes prek0 = 2;
*/
public Builder clearPrek0() {
prek0_ = getDefaultInstance().getPrek0();
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.TCert)
}
// @@protoc_insertion_point(class_scope:protos.TCert)
private static final org.hyperledger.protos.Ca.TCert DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.TCert();
}
public static org.hyperledger.protos.Ca.TCert getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TCert parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TCert(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.TCert getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CertSetOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.CertSet)
com.google.protobuf.MessageOrBuilder {
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
boolean hasTs();
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
com.google.protobuf.Timestamp getTs();
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
com.google.protobuf.TimestampOrBuilder getTsOrBuilder();
/**
* optional .protos.Identity id = 2;
*/
boolean hasId();
/**
* optional .protos.Identity id = 2;
*/
org.hyperledger.protos.Ca.Identity getId();
/**
* optional .protos.Identity id = 2;
*/
org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder();
/**
* optional bytes key = 3;
*/
com.google.protobuf.ByteString getKey();
/**
* repeated .protos.TCert certs = 4;
*/
java.util.List
getCertsList();
/**
* repeated .protos.TCert certs = 4;
*/
org.hyperledger.protos.Ca.TCert getCerts(int index);
/**
* repeated .protos.TCert certs = 4;
*/
int getCertsCount();
/**
* repeated .protos.TCert certs = 4;
*/
java.util.List extends org.hyperledger.protos.Ca.TCertOrBuilder>
getCertsOrBuilderList();
/**
* repeated .protos.TCert certs = 4;
*/
org.hyperledger.protos.Ca.TCertOrBuilder getCertsOrBuilder(
int index);
}
/**
* Protobuf type {@code protos.CertSet}
*/
public static final class CertSet extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.CertSet)
CertSetOrBuilder {
// Use CertSet.newBuilder() to construct.
private CertSet(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CertSet() {
key_ = com.google.protobuf.ByteString.EMPTY;
certs_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private CertSet(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (ts_ != null) {
subBuilder = ts_.toBuilder();
}
ts_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ts_);
ts_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.hyperledger.protos.Ca.Identity.Builder subBuilder = null;
if (id_ != null) {
subBuilder = id_.toBuilder();
}
id_ = input.readMessage(org.hyperledger.protos.Ca.Identity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(id_);
id_ = subBuilder.buildPartial();
}
break;
}
case 26: {
key_ = input.readBytes();
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
certs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
certs_.add(
input.readMessage(org.hyperledger.protos.Ca.TCert.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
certs_ = java.util.Collections.unmodifiableList(certs_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_CertSet_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_CertSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.CertSet.class, org.hyperledger.protos.Ca.CertSet.Builder.class);
}
private int bitField0_;
public static final int TS_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp ts_;
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public boolean hasTs() {
return ts_ != null;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.Timestamp getTs() {
return ts_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.TimestampOrBuilder getTsOrBuilder() {
return getTs();
}
public static final int ID_FIELD_NUMBER = 2;
private org.hyperledger.protos.Ca.Identity id_;
/**
* optional .protos.Identity id = 2;
*/
public boolean hasId() {
return id_ != null;
}
/**
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.Identity getId() {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
/**
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
return getId();
}
public static final int KEY_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString key_;
/**
* optional bytes key = 3;
*/
public com.google.protobuf.ByteString getKey() {
return key_;
}
public static final int CERTS_FIELD_NUMBER = 4;
private java.util.List certs_;
/**
* repeated .protos.TCert certs = 4;
*/
public java.util.List getCertsList() {
return certs_;
}
/**
* repeated .protos.TCert certs = 4;
*/
public java.util.List extends org.hyperledger.protos.Ca.TCertOrBuilder>
getCertsOrBuilderList() {
return certs_;
}
/**
* repeated .protos.TCert certs = 4;
*/
public int getCertsCount() {
return certs_.size();
}
/**
* repeated .protos.TCert certs = 4;
*/
public org.hyperledger.protos.Ca.TCert getCerts(int index) {
return certs_.get(index);
}
/**
* repeated .protos.TCert certs = 4;
*/
public org.hyperledger.protos.Ca.TCertOrBuilder getCertsOrBuilder(
int index) {
return certs_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (ts_ != null) {
output.writeMessage(1, getTs());
}
if (id_ != null) {
output.writeMessage(2, getId());
}
if (!key_.isEmpty()) {
output.writeBytes(3, key_);
}
for (int i = 0; i < certs_.size(); i++) {
output.writeMessage(4, certs_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (ts_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTs());
}
if (id_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getId());
}
if (!key_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, key_);
}
for (int i = 0; i < certs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, certs_.get(i));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.CertSet)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.CertSet other = (org.hyperledger.protos.Ca.CertSet) obj;
boolean result = true;
result = result && (hasTs() == other.hasTs());
if (hasTs()) {
result = result && getTs()
.equals(other.getTs());
}
result = result && (hasId() == other.hasId());
if (hasId()) {
result = result && getId()
.equals(other.getId());
}
result = result && getKey()
.equals(other.getKey());
result = result && getCertsList()
.equals(other.getCertsList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasTs()) {
hash = (37 * hash) + TS_FIELD_NUMBER;
hash = (53 * hash) + getTs().hashCode();
}
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
if (getCertsCount() > 0) {
hash = (37 * hash) + CERTS_FIELD_NUMBER;
hash = (53 * hash) + getCertsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.CertSet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.CertSet 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.protos.Ca.CertSet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.CertSet parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.CertSet parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.CertSet 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.protos.Ca.CertSet parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.CertSet 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.protos.Ca.CertSet parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.CertSet parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.CertSet prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.CertSet}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.CertSet)
org.hyperledger.protos.Ca.CertSetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_CertSet_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_CertSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.CertSet.class, org.hyperledger.protos.Ca.CertSet.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.CertSet.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCertsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (tsBuilder_ == null) {
ts_ = null;
} else {
ts_ = null;
tsBuilder_ = null;
}
if (idBuilder_ == null) {
id_ = null;
} else {
id_ = null;
idBuilder_ = null;
}
key_ = com.google.protobuf.ByteString.EMPTY;
if (certsBuilder_ == null) {
certs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
certsBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_CertSet_descriptor;
}
public org.hyperledger.protos.Ca.CertSet getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.CertSet.getDefaultInstance();
}
public org.hyperledger.protos.Ca.CertSet build() {
org.hyperledger.protos.Ca.CertSet result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.CertSet buildPartial() {
org.hyperledger.protos.Ca.CertSet result = new org.hyperledger.protos.Ca.CertSet(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (tsBuilder_ == null) {
result.ts_ = ts_;
} else {
result.ts_ = tsBuilder_.build();
}
if (idBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
result.key_ = key_;
if (certsBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
certs_ = java.util.Collections.unmodifiableList(certs_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.certs_ = certs_;
} else {
result.certs_ = certsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.CertSet) {
return mergeFrom((org.hyperledger.protos.Ca.CertSet)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.CertSet other) {
if (other == org.hyperledger.protos.Ca.CertSet.getDefaultInstance()) return this;
if (other.hasTs()) {
mergeTs(other.getTs());
}
if (other.hasId()) {
mergeId(other.getId());
}
if (other.getKey() != com.google.protobuf.ByteString.EMPTY) {
setKey(other.getKey());
}
if (certsBuilder_ == null) {
if (!other.certs_.isEmpty()) {
if (certs_.isEmpty()) {
certs_ = other.certs_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureCertsIsMutable();
certs_.addAll(other.certs_);
}
onChanged();
}
} else {
if (!other.certs_.isEmpty()) {
if (certsBuilder_.isEmpty()) {
certsBuilder_.dispose();
certsBuilder_ = null;
certs_ = other.certs_;
bitField0_ = (bitField0_ & ~0x00000008);
certsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCertsFieldBuilder() : null;
} else {
certsBuilder_.addAllMessages(other.certs_);
}
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.CertSet parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.CertSet) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.Timestamp ts_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> tsBuilder_;
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public boolean hasTs() {
return tsBuilder_ != null || ts_ != null;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.Timestamp getTs() {
if (tsBuilder_ == null) {
return ts_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
} else {
return tsBuilder_.getMessage();
}
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder setTs(com.google.protobuf.Timestamp value) {
if (tsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ts_ = value;
onChanged();
} else {
tsBuilder_.setMessage(value);
}
return this;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder setTs(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (tsBuilder_ == null) {
ts_ = builderForValue.build();
onChanged();
} else {
tsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder mergeTs(com.google.protobuf.Timestamp value) {
if (tsBuilder_ == null) {
if (ts_ != null) {
ts_ =
com.google.protobuf.Timestamp.newBuilder(ts_).mergeFrom(value).buildPartial();
} else {
ts_ = value;
}
onChanged();
} else {
tsBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder clearTs() {
if (tsBuilder_ == null) {
ts_ = null;
onChanged();
} else {
ts_ = null;
tsBuilder_ = null;
}
return this;
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.Timestamp.Builder getTsBuilder() {
onChanged();
return getTsFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.TimestampOrBuilder getTsOrBuilder() {
if (tsBuilder_ != null) {
return tsBuilder_.getMessageOrBuilder();
} else {
return ts_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
}
}
/**
* optional .google.protobuf.Timestamp ts = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getTsFieldBuilder() {
if (tsBuilder_ == null) {
tsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getTs(),
getParentForChildren(),
isClean());
ts_ = null;
}
return tsBuilder_;
}
private org.hyperledger.protos.Ca.Identity id_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder> idBuilder_;
/**
* optional .protos.Identity id = 2;
*/
public boolean hasId() {
return idBuilder_ != null || id_ != null;
}
/**
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.Identity getId() {
if (idBuilder_ == null) {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
} else {
return idBuilder_.getMessage();
}
}
/**
* optional .protos.Identity id = 2;
*/
public Builder setId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
idBuilder_.setMessage(value);
}
return this;
}
/**
* optional .protos.Identity id = 2;
*/
public Builder setId(
org.hyperledger.protos.Ca.Identity.Builder builderForValue) {
if (idBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
idBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .protos.Identity id = 2;
*/
public Builder mergeId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (id_ != null) {
id_ =
org.hyperledger.protos.Ca.Identity.newBuilder(id_).mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
idBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .protos.Identity id = 2;
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = null;
onChanged();
} else {
id_ = null;
idBuilder_ = null;
}
return this;
}
/**
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.Identity.Builder getIdBuilder() {
onChanged();
return getIdFieldBuilder().getBuilder();
}
/**
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
return id_ == null ?
org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
}
/**
* optional .protos.Identity id = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>(
getId(),
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes key = 3;
*/
public com.google.protobuf.ByteString getKey() {
return key_;
}
/**
* optional bytes key = 3;
*/
public Builder setKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
return this;
}
/**
* optional bytes key = 3;
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
private java.util.List certs_ =
java.util.Collections.emptyList();
private void ensureCertsIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
certs_ = new java.util.ArrayList(certs_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.hyperledger.protos.Ca.TCert, org.hyperledger.protos.Ca.TCert.Builder, org.hyperledger.protos.Ca.TCertOrBuilder> certsBuilder_;
/**
* repeated .protos.TCert certs = 4;
*/
public java.util.List getCertsList() {
if (certsBuilder_ == null) {
return java.util.Collections.unmodifiableList(certs_);
} else {
return certsBuilder_.getMessageList();
}
}
/**
* repeated .protos.TCert certs = 4;
*/
public int getCertsCount() {
if (certsBuilder_ == null) {
return certs_.size();
} else {
return certsBuilder_.getCount();
}
}
/**
* repeated .protos.TCert certs = 4;
*/
public org.hyperledger.protos.Ca.TCert getCerts(int index) {
if (certsBuilder_ == null) {
return certs_.get(index);
} else {
return certsBuilder_.getMessage(index);
}
}
/**
* repeated .protos.TCert certs = 4;
*/
public Builder setCerts(
int index, org.hyperledger.protos.Ca.TCert value) {
if (certsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCertsIsMutable();
certs_.set(index, value);
onChanged();
} else {
certsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protos.TCert certs = 4;
*/
public Builder setCerts(
int index, org.hyperledger.protos.Ca.TCert.Builder builderForValue) {
if (certsBuilder_ == null) {
ensureCertsIsMutable();
certs_.set(index, builderForValue.build());
onChanged();
} else {
certsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protos.TCert certs = 4;
*/
public Builder addCerts(org.hyperledger.protos.Ca.TCert value) {
if (certsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCertsIsMutable();
certs_.add(value);
onChanged();
} else {
certsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protos.TCert certs = 4;
*/
public Builder addCerts(
int index, org.hyperledger.protos.Ca.TCert value) {
if (certsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCertsIsMutable();
certs_.add(index, value);
onChanged();
} else {
certsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protos.TCert certs = 4;
*/
public Builder addCerts(
org.hyperledger.protos.Ca.TCert.Builder builderForValue) {
if (certsBuilder_ == null) {
ensureCertsIsMutable();
certs_.add(builderForValue.build());
onChanged();
} else {
certsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protos.TCert certs = 4;
*/
public Builder addCerts(
int index, org.hyperledger.protos.Ca.TCert.Builder builderForValue) {
if (certsBuilder_ == null) {
ensureCertsIsMutable();
certs_.add(index, builderForValue.build());
onChanged();
} else {
certsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protos.TCert certs = 4;
*/
public Builder addAllCerts(
java.lang.Iterable extends org.hyperledger.protos.Ca.TCert> values) {
if (certsBuilder_ == null) {
ensureCertsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, certs_);
onChanged();
} else {
certsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protos.TCert certs = 4;
*/
public Builder clearCerts() {
if (certsBuilder_ == null) {
certs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
certsBuilder_.clear();
}
return this;
}
/**
* repeated .protos.TCert certs = 4;
*/
public Builder removeCerts(int index) {
if (certsBuilder_ == null) {
ensureCertsIsMutable();
certs_.remove(index);
onChanged();
} else {
certsBuilder_.remove(index);
}
return this;
}
/**
* repeated .protos.TCert certs = 4;
*/
public org.hyperledger.protos.Ca.TCert.Builder getCertsBuilder(
int index) {
return getCertsFieldBuilder().getBuilder(index);
}
/**
* repeated .protos.TCert certs = 4;
*/
public org.hyperledger.protos.Ca.TCertOrBuilder getCertsOrBuilder(
int index) {
if (certsBuilder_ == null) {
return certs_.get(index); } else {
return certsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protos.TCert certs = 4;
*/
public java.util.List extends org.hyperledger.protos.Ca.TCertOrBuilder>
getCertsOrBuilderList() {
if (certsBuilder_ != null) {
return certsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(certs_);
}
}
/**
* repeated .protos.TCert certs = 4;
*/
public org.hyperledger.protos.Ca.TCert.Builder addCertsBuilder() {
return getCertsFieldBuilder().addBuilder(
org.hyperledger.protos.Ca.TCert.getDefaultInstance());
}
/**
* repeated .protos.TCert certs = 4;
*/
public org.hyperledger.protos.Ca.TCert.Builder addCertsBuilder(
int index) {
return getCertsFieldBuilder().addBuilder(
index, org.hyperledger.protos.Ca.TCert.getDefaultInstance());
}
/**
* repeated .protos.TCert certs = 4;
*/
public java.util.List
getCertsBuilderList() {
return getCertsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.hyperledger.protos.Ca.TCert, org.hyperledger.protos.Ca.TCert.Builder, org.hyperledger.protos.Ca.TCertOrBuilder>
getCertsFieldBuilder() {
if (certsBuilder_ == null) {
certsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.hyperledger.protos.Ca.TCert, org.hyperledger.protos.Ca.TCert.Builder, org.hyperledger.protos.Ca.TCertOrBuilder>(
certs_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
certs_ = null;
}
return certsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.CertSet)
}
// @@protoc_insertion_point(class_scope:protos.CertSet)
private static final org.hyperledger.protos.Ca.CertSet DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.CertSet();
}
public static org.hyperledger.protos.Ca.CertSet getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CertSet parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CertSet(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.CertSet getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CertSetsOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.CertSets)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .protos.CertSet sets = 1;
*/
java.util.List
getSetsList();
/**
* repeated .protos.CertSet sets = 1;
*/
org.hyperledger.protos.Ca.CertSet getSets(int index);
/**
* repeated .protos.CertSet sets = 1;
*/
int getSetsCount();
/**
* repeated .protos.CertSet sets = 1;
*/
java.util.List extends org.hyperledger.protos.Ca.CertSetOrBuilder>
getSetsOrBuilderList();
/**
* repeated .protos.CertSet sets = 1;
*/
org.hyperledger.protos.Ca.CertSetOrBuilder getSetsOrBuilder(
int index);
}
/**
* Protobuf type {@code protos.CertSets}
*/
public static final class CertSets extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.CertSets)
CertSetsOrBuilder {
// Use CertSets.newBuilder() to construct.
private CertSets(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CertSets() {
sets_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private CertSets(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
sets_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
sets_.add(
input.readMessage(org.hyperledger.protos.Ca.CertSet.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
sets_ = java.util.Collections.unmodifiableList(sets_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_CertSets_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_CertSets_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.CertSets.class, org.hyperledger.protos.Ca.CertSets.Builder.class);
}
public static final int SETS_FIELD_NUMBER = 1;
private java.util.List sets_;
/**
* repeated .protos.CertSet sets = 1;
*/
public java.util.List getSetsList() {
return sets_;
}
/**
* repeated .protos.CertSet sets = 1;
*/
public java.util.List extends org.hyperledger.protos.Ca.CertSetOrBuilder>
getSetsOrBuilderList() {
return sets_;
}
/**
* repeated .protos.CertSet sets = 1;
*/
public int getSetsCount() {
return sets_.size();
}
/**
* repeated .protos.CertSet sets = 1;
*/
public org.hyperledger.protos.Ca.CertSet getSets(int index) {
return sets_.get(index);
}
/**
* repeated .protos.CertSet sets = 1;
*/
public org.hyperledger.protos.Ca.CertSetOrBuilder getSetsOrBuilder(
int index) {
return sets_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < sets_.size(); i++) {
output.writeMessage(1, sets_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < sets_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, sets_.get(i));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.CertSets)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.CertSets other = (org.hyperledger.protos.Ca.CertSets) obj;
boolean result = true;
result = result && getSetsList()
.equals(other.getSetsList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getSetsCount() > 0) {
hash = (37 * hash) + SETS_FIELD_NUMBER;
hash = (53 * hash) + getSetsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.CertSets parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.CertSets 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.protos.Ca.CertSets parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.CertSets parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.CertSets parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.CertSets 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.protos.Ca.CertSets parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.CertSets 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.protos.Ca.CertSets parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.CertSets parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.CertSets prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.CertSets}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.CertSets)
org.hyperledger.protos.Ca.CertSetsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_CertSets_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_CertSets_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.CertSets.class, org.hyperledger.protos.Ca.CertSets.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.CertSets.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSetsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (setsBuilder_ == null) {
sets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
setsBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_CertSets_descriptor;
}
public org.hyperledger.protos.Ca.CertSets getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.CertSets.getDefaultInstance();
}
public org.hyperledger.protos.Ca.CertSets build() {
org.hyperledger.protos.Ca.CertSets result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.CertSets buildPartial() {
org.hyperledger.protos.Ca.CertSets result = new org.hyperledger.protos.Ca.CertSets(this);
int from_bitField0_ = bitField0_;
if (setsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
sets_ = java.util.Collections.unmodifiableList(sets_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.sets_ = sets_;
} else {
result.sets_ = setsBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.CertSets) {
return mergeFrom((org.hyperledger.protos.Ca.CertSets)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.CertSets other) {
if (other == org.hyperledger.protos.Ca.CertSets.getDefaultInstance()) return this;
if (setsBuilder_ == null) {
if (!other.sets_.isEmpty()) {
if (sets_.isEmpty()) {
sets_ = other.sets_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSetsIsMutable();
sets_.addAll(other.sets_);
}
onChanged();
}
} else {
if (!other.sets_.isEmpty()) {
if (setsBuilder_.isEmpty()) {
setsBuilder_.dispose();
setsBuilder_ = null;
sets_ = other.sets_;
bitField0_ = (bitField0_ & ~0x00000001);
setsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSetsFieldBuilder() : null;
} else {
setsBuilder_.addAllMessages(other.sets_);
}
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.CertSets parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.CertSets) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List sets_ =
java.util.Collections.emptyList();
private void ensureSetsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
sets_ = new java.util.ArrayList(sets_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.hyperledger.protos.Ca.CertSet, org.hyperledger.protos.Ca.CertSet.Builder, org.hyperledger.protos.Ca.CertSetOrBuilder> setsBuilder_;
/**
* repeated .protos.CertSet sets = 1;
*/
public java.util.List getSetsList() {
if (setsBuilder_ == null) {
return java.util.Collections.unmodifiableList(sets_);
} else {
return setsBuilder_.getMessageList();
}
}
/**
* repeated .protos.CertSet sets = 1;
*/
public int getSetsCount() {
if (setsBuilder_ == null) {
return sets_.size();
} else {
return setsBuilder_.getCount();
}
}
/**
* repeated .protos.CertSet sets = 1;
*/
public org.hyperledger.protos.Ca.CertSet getSets(int index) {
if (setsBuilder_ == null) {
return sets_.get(index);
} else {
return setsBuilder_.getMessage(index);
}
}
/**
* repeated .protos.CertSet sets = 1;
*/
public Builder setSets(
int index, org.hyperledger.protos.Ca.CertSet value) {
if (setsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSetsIsMutable();
sets_.set(index, value);
onChanged();
} else {
setsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protos.CertSet sets = 1;
*/
public Builder setSets(
int index, org.hyperledger.protos.Ca.CertSet.Builder builderForValue) {
if (setsBuilder_ == null) {
ensureSetsIsMutable();
sets_.set(index, builderForValue.build());
onChanged();
} else {
setsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protos.CertSet sets = 1;
*/
public Builder addSets(org.hyperledger.protos.Ca.CertSet value) {
if (setsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSetsIsMutable();
sets_.add(value);
onChanged();
} else {
setsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protos.CertSet sets = 1;
*/
public Builder addSets(
int index, org.hyperledger.protos.Ca.CertSet value) {
if (setsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSetsIsMutable();
sets_.add(index, value);
onChanged();
} else {
setsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protos.CertSet sets = 1;
*/
public Builder addSets(
org.hyperledger.protos.Ca.CertSet.Builder builderForValue) {
if (setsBuilder_ == null) {
ensureSetsIsMutable();
sets_.add(builderForValue.build());
onChanged();
} else {
setsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protos.CertSet sets = 1;
*/
public Builder addSets(
int index, org.hyperledger.protos.Ca.CertSet.Builder builderForValue) {
if (setsBuilder_ == null) {
ensureSetsIsMutable();
sets_.add(index, builderForValue.build());
onChanged();
} else {
setsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protos.CertSet sets = 1;
*/
public Builder addAllSets(
java.lang.Iterable extends org.hyperledger.protos.Ca.CertSet> values) {
if (setsBuilder_ == null) {
ensureSetsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sets_);
onChanged();
} else {
setsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protos.CertSet sets = 1;
*/
public Builder clearSets() {
if (setsBuilder_ == null) {
sets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
setsBuilder_.clear();
}
return this;
}
/**
* repeated .protos.CertSet sets = 1;
*/
public Builder removeSets(int index) {
if (setsBuilder_ == null) {
ensureSetsIsMutable();
sets_.remove(index);
onChanged();
} else {
setsBuilder_.remove(index);
}
return this;
}
/**
* repeated .protos.CertSet sets = 1;
*/
public org.hyperledger.protos.Ca.CertSet.Builder getSetsBuilder(
int index) {
return getSetsFieldBuilder().getBuilder(index);
}
/**
* repeated .protos.CertSet sets = 1;
*/
public org.hyperledger.protos.Ca.CertSetOrBuilder getSetsOrBuilder(
int index) {
if (setsBuilder_ == null) {
return sets_.get(index); } else {
return setsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protos.CertSet sets = 1;
*/
public java.util.List extends org.hyperledger.protos.Ca.CertSetOrBuilder>
getSetsOrBuilderList() {
if (setsBuilder_ != null) {
return setsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(sets_);
}
}
/**
* repeated .protos.CertSet sets = 1;
*/
public org.hyperledger.protos.Ca.CertSet.Builder addSetsBuilder() {
return getSetsFieldBuilder().addBuilder(
org.hyperledger.protos.Ca.CertSet.getDefaultInstance());
}
/**
* repeated .protos.CertSet sets = 1;
*/
public org.hyperledger.protos.Ca.CertSet.Builder addSetsBuilder(
int index) {
return getSetsFieldBuilder().addBuilder(
index, org.hyperledger.protos.Ca.CertSet.getDefaultInstance());
}
/**
* repeated .protos.CertSet sets = 1;
*/
public java.util.List
getSetsBuilderList() {
return getSetsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.hyperledger.protos.Ca.CertSet, org.hyperledger.protos.Ca.CertSet.Builder, org.hyperledger.protos.Ca.CertSetOrBuilder>
getSetsFieldBuilder() {
if (setsBuilder_ == null) {
setsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.hyperledger.protos.Ca.CertSet, org.hyperledger.protos.Ca.CertSet.Builder, org.hyperledger.protos.Ca.CertSetOrBuilder>(
sets_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
sets_ = null;
}
return setsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.CertSets)
}
// @@protoc_insertion_point(class_scope:protos.CertSets)
private static final org.hyperledger.protos.Ca.CertSets DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.CertSets();
}
public static org.hyperledger.protos.Ca.CertSets getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CertSets parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CertSets(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.CertSets getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CertPairOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.CertPair)
com.google.protobuf.MessageOrBuilder {
/**
*
* signature certificate, DER / ASN.1 encoded
*
*
* optional bytes sign = 1;
*/
com.google.protobuf.ByteString getSign();
/**
*
* encryption certificate, DER / ASN.1 encoded
*
*
* optional bytes enc = 2;
*/
com.google.protobuf.ByteString getEnc();
}
/**
* Protobuf type {@code protos.CertPair}
*/
public static final class CertPair extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.CertPair)
CertPairOrBuilder {
// Use CertPair.newBuilder() to construct.
private CertPair(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CertPair() {
sign_ = com.google.protobuf.ByteString.EMPTY;
enc_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private CertPair(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
sign_ = input.readBytes();
break;
}
case 18: {
enc_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_CertPair_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_CertPair_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.CertPair.class, org.hyperledger.protos.Ca.CertPair.Builder.class);
}
public static final int SIGN_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString sign_;
/**
*
* signature certificate, DER / ASN.1 encoded
*
*
* optional bytes sign = 1;
*/
public com.google.protobuf.ByteString getSign() {
return sign_;
}
public static final int ENC_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString enc_;
/**
*
* encryption certificate, DER / ASN.1 encoded
*
*
* optional bytes enc = 2;
*/
public com.google.protobuf.ByteString getEnc() {
return enc_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!sign_.isEmpty()) {
output.writeBytes(1, sign_);
}
if (!enc_.isEmpty()) {
output.writeBytes(2, enc_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!sign_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, sign_);
}
if (!enc_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, enc_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.CertPair)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.CertPair other = (org.hyperledger.protos.Ca.CertPair) obj;
boolean result = true;
result = result && getSign()
.equals(other.getSign());
result = result && getEnc()
.equals(other.getEnc());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + SIGN_FIELD_NUMBER;
hash = (53 * hash) + getSign().hashCode();
hash = (37 * hash) + ENC_FIELD_NUMBER;
hash = (53 * hash) + getEnc().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.CertPair parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.CertPair 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.protos.Ca.CertPair parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.CertPair parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.CertPair parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.CertPair 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.protos.Ca.CertPair parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.CertPair 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.protos.Ca.CertPair parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.CertPair parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.CertPair prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protos.CertPair}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.CertPair)
org.hyperledger.protos.Ca.CertPairOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_CertPair_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_CertPair_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.CertPair.class, org.hyperledger.protos.Ca.CertPair.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.CertPair.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
sign_ = com.google.protobuf.ByteString.EMPTY;
enc_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_CertPair_descriptor;
}
public org.hyperledger.protos.Ca.CertPair getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.CertPair.getDefaultInstance();
}
public org.hyperledger.protos.Ca.CertPair build() {
org.hyperledger.protos.Ca.CertPair result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.CertPair buildPartial() {
org.hyperledger.protos.Ca.CertPair result = new org.hyperledger.protos.Ca.CertPair(this);
result.sign_ = sign_;
result.enc_ = enc_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.CertPair) {
return mergeFrom((org.hyperledger.protos.Ca.CertPair)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.CertPair other) {
if (other == org.hyperledger.protos.Ca.CertPair.getDefaultInstance()) return this;
if (other.getSign() != com.google.protobuf.ByteString.EMPTY) {
setSign(other.getSign());
}
if (other.getEnc() != com.google.protobuf.ByteString.EMPTY) {
setEnc(other.getEnc());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.CertPair parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.CertPair) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString sign_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* signature certificate, DER / ASN.1 encoded
*
*
* optional bytes sign = 1;
*/
public com.google.protobuf.ByteString getSign() {
return sign_;
}
/**
*
* signature certificate, DER / ASN.1 encoded
*
*
* optional bytes sign = 1;
*/
public Builder setSign(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
sign_ = value;
onChanged();
return this;
}
/**
*
* signature certificate, DER / ASN.1 encoded
*
*
* optional bytes sign = 1;
*/
public Builder clearSign() {
sign_ = getDefaultInstance().getSign();
onChanged();
return this;
}
private com.google.protobuf.ByteString enc_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* encryption certificate, DER / ASN.1 encoded
*
*
* optional bytes enc = 2;
*/
public com.google.protobuf.ByteString getEnc() {
return enc_;
}
/**
*
* encryption certificate, DER / ASN.1 encoded
*
*
* optional bytes enc = 2;
*/
public Builder setEnc(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
enc_ = value;
onChanged();
return this;
}
/**
*
* encryption certificate, DER / ASN.1 encoded
*
*
* optional bytes enc = 2;
*/
public Builder clearEnc() {
enc_ = getDefaultInstance().getEnc();
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.CertPair)
}
// @@protoc_insertion_point(class_scope:protos.CertPair)
private static final org.hyperledger.protos.Ca.CertPair DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.CertPair();
}
public static org.hyperledger.protos.Ca.CertPair getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CertPair parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CertPair(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.CertPair getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ACAAttrReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.ACAAttrReq)
com.google.protobuf.MessageOrBuilder {
/**
*
* Request time
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
boolean hasTs();
/**
*
* Request time
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
com.google.protobuf.Timestamp getTs();
/**
*
* Request time
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
com.google.protobuf.TimestampOrBuilder getTsOrBuilder();
/**
*
* User identity
*
*
* optional .protos.Identity id = 2;
*/
boolean hasId();
/**
*
* User identity
*
*
* optional .protos.Identity id = 2;
*/
org.hyperledger.protos.Ca.Identity getId();
/**
*
* User identity
*
*
* optional .protos.Identity id = 2;
*/
org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder();
/**
*
* Enrollment certificate
*
*
* optional .protos.Cert eCert = 3;
*/
boolean hasECert();
/**
*
* Enrollment certificate
*
*
* optional .protos.Cert eCert = 3;
*/
org.hyperledger.protos.Ca.Cert getECert();
/**
*
* Enrollment certificate
*
*
* optional .protos.Cert eCert = 3;
*/
org.hyperledger.protos.Ca.CertOrBuilder getECertOrBuilder();
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
java.util.List
getAttributesList();
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
org.hyperledger.protos.Ca.TCertAttribute getAttributes(int index);
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
int getAttributesCount();
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
java.util.List extends org.hyperledger.protos.Ca.TCertAttributeOrBuilder>
getAttributesOrBuilderList();
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
org.hyperledger.protos.Ca.TCertAttributeOrBuilder getAttributesOrBuilder(
int index);
/**
*
* The request is signed by the TCA.
*
*
* optional .protos.Signature signature = 5;
*/
boolean hasSignature();
/**
*
* The request is signed by the TCA.
*
*
* optional .protos.Signature signature = 5;
*/
org.hyperledger.protos.Ca.Signature getSignature();
/**
*
* The request is signed by the TCA.
*
*
* optional .protos.Signature signature = 5;
*/
org.hyperledger.protos.Ca.SignatureOrBuilder getSignatureOrBuilder();
}
/**
*
*ACAAttrReq is sent to request an ACert (attributes certificate) to the Attribute Certificate Authority (ACA).
*
*
* Protobuf type {@code protos.ACAAttrReq}
*/
public static final class ACAAttrReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.ACAAttrReq)
ACAAttrReqOrBuilder {
// Use ACAAttrReq.newBuilder() to construct.
private ACAAttrReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ACAAttrReq() {
attributes_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ACAAttrReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (ts_ != null) {
subBuilder = ts_.toBuilder();
}
ts_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ts_);
ts_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.hyperledger.protos.Ca.Identity.Builder subBuilder = null;
if (id_ != null) {
subBuilder = id_.toBuilder();
}
id_ = input.readMessage(org.hyperledger.protos.Ca.Identity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(id_);
id_ = subBuilder.buildPartial();
}
break;
}
case 26: {
org.hyperledger.protos.Ca.Cert.Builder subBuilder = null;
if (eCert_ != null) {
subBuilder = eCert_.toBuilder();
}
eCert_ = input.readMessage(org.hyperledger.protos.Ca.Cert.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(eCert_);
eCert_ = subBuilder.buildPartial();
}
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
attributes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
attributes_.add(
input.readMessage(org.hyperledger.protos.Ca.TCertAttribute.parser(), extensionRegistry));
break;
}
case 42: {
org.hyperledger.protos.Ca.Signature.Builder subBuilder = null;
if (signature_ != null) {
subBuilder = signature_.toBuilder();
}
signature_ = input.readMessage(org.hyperledger.protos.Ca.Signature.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(signature_);
signature_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
attributes_ = java.util.Collections.unmodifiableList(attributes_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_ACAAttrReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_ACAAttrReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.ACAAttrReq.class, org.hyperledger.protos.Ca.ACAAttrReq.Builder.class);
}
private int bitField0_;
public static final int TS_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp ts_;
/**
*
* Request time
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
public boolean hasTs() {
return ts_ != null;
}
/**
*
* Request time
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.Timestamp getTs() {
return ts_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
}
/**
*
* Request time
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.TimestampOrBuilder getTsOrBuilder() {
return getTs();
}
public static final int ID_FIELD_NUMBER = 2;
private org.hyperledger.protos.Ca.Identity id_;
/**
*
* User identity
*
*
* optional .protos.Identity id = 2;
*/
public boolean hasId() {
return id_ != null;
}
/**
*
* User identity
*
*
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.Identity getId() {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
/**
*
* User identity
*
*
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
return getId();
}
public static final int ECERT_FIELD_NUMBER = 3;
private org.hyperledger.protos.Ca.Cert eCert_;
/**
*
* Enrollment certificate
*
*
* optional .protos.Cert eCert = 3;
*/
public boolean hasECert() {
return eCert_ != null;
}
/**
*
* Enrollment certificate
*
*
* optional .protos.Cert eCert = 3;
*/
public org.hyperledger.protos.Ca.Cert getECert() {
return eCert_ == null ? org.hyperledger.protos.Ca.Cert.getDefaultInstance() : eCert_;
}
/**
*
* Enrollment certificate
*
*
* optional .protos.Cert eCert = 3;
*/
public org.hyperledger.protos.Ca.CertOrBuilder getECertOrBuilder() {
return getECert();
}
public static final int ATTRIBUTES_FIELD_NUMBER = 4;
private java.util.List attributes_;
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public java.util.List getAttributesList() {
return attributes_;
}
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public java.util.List extends org.hyperledger.protos.Ca.TCertAttributeOrBuilder>
getAttributesOrBuilderList() {
return attributes_;
}
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public int getAttributesCount() {
return attributes_.size();
}
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public org.hyperledger.protos.Ca.TCertAttribute getAttributes(int index) {
return attributes_.get(index);
}
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public org.hyperledger.protos.Ca.TCertAttributeOrBuilder getAttributesOrBuilder(
int index) {
return attributes_.get(index);
}
public static final int SIGNATURE_FIELD_NUMBER = 5;
private org.hyperledger.protos.Ca.Signature signature_;
/**
*
* The request is signed by the TCA.
*
*
* optional .protos.Signature signature = 5;
*/
public boolean hasSignature() {
return signature_ != null;
}
/**
*
* The request is signed by the TCA.
*
*
* optional .protos.Signature signature = 5;
*/
public org.hyperledger.protos.Ca.Signature getSignature() {
return signature_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : signature_;
}
/**
*
* The request is signed by the TCA.
*
*
* optional .protos.Signature signature = 5;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSignatureOrBuilder() {
return getSignature();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (ts_ != null) {
output.writeMessage(1, getTs());
}
if (id_ != null) {
output.writeMessage(2, getId());
}
if (eCert_ != null) {
output.writeMessage(3, getECert());
}
for (int i = 0; i < attributes_.size(); i++) {
output.writeMessage(4, attributes_.get(i));
}
if (signature_ != null) {
output.writeMessage(5, getSignature());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (ts_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTs());
}
if (id_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getId());
}
if (eCert_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getECert());
}
for (int i = 0; i < attributes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, attributes_.get(i));
}
if (signature_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getSignature());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.ACAAttrReq)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.ACAAttrReq other = (org.hyperledger.protos.Ca.ACAAttrReq) obj;
boolean result = true;
result = result && (hasTs() == other.hasTs());
if (hasTs()) {
result = result && getTs()
.equals(other.getTs());
}
result = result && (hasId() == other.hasId());
if (hasId()) {
result = result && getId()
.equals(other.getId());
}
result = result && (hasECert() == other.hasECert());
if (hasECert()) {
result = result && getECert()
.equals(other.getECert());
}
result = result && getAttributesList()
.equals(other.getAttributesList());
result = result && (hasSignature() == other.hasSignature());
if (hasSignature()) {
result = result && getSignature()
.equals(other.getSignature());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasTs()) {
hash = (37 * hash) + TS_FIELD_NUMBER;
hash = (53 * hash) + getTs().hashCode();
}
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
if (hasECert()) {
hash = (37 * hash) + ECERT_FIELD_NUMBER;
hash = (53 * hash) + getECert().hashCode();
}
if (getAttributesCount() > 0) {
hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER;
hash = (53 * hash) + getAttributesList().hashCode();
}
if (hasSignature()) {
hash = (37 * hash) + SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getSignature().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.ACAAttrReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.ACAAttrReq 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.protos.Ca.ACAAttrReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.ACAAttrReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.ACAAttrReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ACAAttrReq 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.protos.Ca.ACAAttrReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ACAAttrReq 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.protos.Ca.ACAAttrReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ACAAttrReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.ACAAttrReq prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*ACAAttrReq is sent to request an ACert (attributes certificate) to the Attribute Certificate Authority (ACA).
*
*
* Protobuf type {@code protos.ACAAttrReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.ACAAttrReq)
org.hyperledger.protos.Ca.ACAAttrReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_ACAAttrReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_ACAAttrReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.ACAAttrReq.class, org.hyperledger.protos.Ca.ACAAttrReq.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.ACAAttrReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAttributesFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (tsBuilder_ == null) {
ts_ = null;
} else {
ts_ = null;
tsBuilder_ = null;
}
if (idBuilder_ == null) {
id_ = null;
} else {
id_ = null;
idBuilder_ = null;
}
if (eCertBuilder_ == null) {
eCert_ = null;
} else {
eCert_ = null;
eCertBuilder_ = null;
}
if (attributesBuilder_ == null) {
attributes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
attributesBuilder_.clear();
}
if (signatureBuilder_ == null) {
signature_ = null;
} else {
signature_ = null;
signatureBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_ACAAttrReq_descriptor;
}
public org.hyperledger.protos.Ca.ACAAttrReq getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.ACAAttrReq.getDefaultInstance();
}
public org.hyperledger.protos.Ca.ACAAttrReq build() {
org.hyperledger.protos.Ca.ACAAttrReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.ACAAttrReq buildPartial() {
org.hyperledger.protos.Ca.ACAAttrReq result = new org.hyperledger.protos.Ca.ACAAttrReq(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (tsBuilder_ == null) {
result.ts_ = ts_;
} else {
result.ts_ = tsBuilder_.build();
}
if (idBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
if (eCertBuilder_ == null) {
result.eCert_ = eCert_;
} else {
result.eCert_ = eCertBuilder_.build();
}
if (attributesBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
attributes_ = java.util.Collections.unmodifiableList(attributes_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.attributes_ = attributes_;
} else {
result.attributes_ = attributesBuilder_.build();
}
if (signatureBuilder_ == null) {
result.signature_ = signature_;
} else {
result.signature_ = signatureBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.ACAAttrReq) {
return mergeFrom((org.hyperledger.protos.Ca.ACAAttrReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.ACAAttrReq other) {
if (other == org.hyperledger.protos.Ca.ACAAttrReq.getDefaultInstance()) return this;
if (other.hasTs()) {
mergeTs(other.getTs());
}
if (other.hasId()) {
mergeId(other.getId());
}
if (other.hasECert()) {
mergeECert(other.getECert());
}
if (attributesBuilder_ == null) {
if (!other.attributes_.isEmpty()) {
if (attributes_.isEmpty()) {
attributes_ = other.attributes_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureAttributesIsMutable();
attributes_.addAll(other.attributes_);
}
onChanged();
}
} else {
if (!other.attributes_.isEmpty()) {
if (attributesBuilder_.isEmpty()) {
attributesBuilder_.dispose();
attributesBuilder_ = null;
attributes_ = other.attributes_;
bitField0_ = (bitField0_ & ~0x00000008);
attributesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAttributesFieldBuilder() : null;
} else {
attributesBuilder_.addAllMessages(other.attributes_);
}
}
}
if (other.hasSignature()) {
mergeSignature(other.getSignature());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.ACAAttrReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.ACAAttrReq) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.Timestamp ts_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> tsBuilder_;
/**
*
* Request time
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
public boolean hasTs() {
return tsBuilder_ != null || ts_ != null;
}
/**
*
* Request time
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.Timestamp getTs() {
if (tsBuilder_ == null) {
return ts_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
} else {
return tsBuilder_.getMessage();
}
}
/**
*
* Request time
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder setTs(com.google.protobuf.Timestamp value) {
if (tsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ts_ = value;
onChanged();
} else {
tsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Request time
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder setTs(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (tsBuilder_ == null) {
ts_ = builderForValue.build();
onChanged();
} else {
tsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Request time
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder mergeTs(com.google.protobuf.Timestamp value) {
if (tsBuilder_ == null) {
if (ts_ != null) {
ts_ =
com.google.protobuf.Timestamp.newBuilder(ts_).mergeFrom(value).buildPartial();
} else {
ts_ = value;
}
onChanged();
} else {
tsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Request time
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder clearTs() {
if (tsBuilder_ == null) {
ts_ = null;
onChanged();
} else {
ts_ = null;
tsBuilder_ = null;
}
return this;
}
/**
*
* Request time
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.Timestamp.Builder getTsBuilder() {
onChanged();
return getTsFieldBuilder().getBuilder();
}
/**
*
* Request time
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.TimestampOrBuilder getTsOrBuilder() {
if (tsBuilder_ != null) {
return tsBuilder_.getMessageOrBuilder();
} else {
return ts_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
}
}
/**
*
* Request time
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getTsFieldBuilder() {
if (tsBuilder_ == null) {
tsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getTs(),
getParentForChildren(),
isClean());
ts_ = null;
}
return tsBuilder_;
}
private org.hyperledger.protos.Ca.Identity id_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder> idBuilder_;
/**
*
* User identity
*
*
* optional .protos.Identity id = 2;
*/
public boolean hasId() {
return idBuilder_ != null || id_ != null;
}
/**
*
* User identity
*
*
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.Identity getId() {
if (idBuilder_ == null) {
return id_ == null ? org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
} else {
return idBuilder_.getMessage();
}
}
/**
*
* User identity
*
*
* optional .protos.Identity id = 2;
*/
public Builder setId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
idBuilder_.setMessage(value);
}
return this;
}
/**
*
* User identity
*
*
* optional .protos.Identity id = 2;
*/
public Builder setId(
org.hyperledger.protos.Ca.Identity.Builder builderForValue) {
if (idBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
idBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* User identity
*
*
* optional .protos.Identity id = 2;
*/
public Builder mergeId(org.hyperledger.protos.Ca.Identity value) {
if (idBuilder_ == null) {
if (id_ != null) {
id_ =
org.hyperledger.protos.Ca.Identity.newBuilder(id_).mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
idBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* User identity
*
*
* optional .protos.Identity id = 2;
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = null;
onChanged();
} else {
id_ = null;
idBuilder_ = null;
}
return this;
}
/**
*
* User identity
*
*
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.Identity.Builder getIdBuilder() {
onChanged();
return getIdFieldBuilder().getBuilder();
}
/**
*
* User identity
*
*
* optional .protos.Identity id = 2;
*/
public org.hyperledger.protos.Ca.IdentityOrBuilder getIdOrBuilder() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
return id_ == null ?
org.hyperledger.protos.Ca.Identity.getDefaultInstance() : id_;
}
}
/**
*
* User identity
*
*
* optional .protos.Identity id = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Identity, org.hyperledger.protos.Ca.Identity.Builder, org.hyperledger.protos.Ca.IdentityOrBuilder>(
getId(),
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
private org.hyperledger.protos.Ca.Cert eCert_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder> eCertBuilder_;
/**
*
* Enrollment certificate
*
*
* optional .protos.Cert eCert = 3;
*/
public boolean hasECert() {
return eCertBuilder_ != null || eCert_ != null;
}
/**
*
* Enrollment certificate
*
*
* optional .protos.Cert eCert = 3;
*/
public org.hyperledger.protos.Ca.Cert getECert() {
if (eCertBuilder_ == null) {
return eCert_ == null ? org.hyperledger.protos.Ca.Cert.getDefaultInstance() : eCert_;
} else {
return eCertBuilder_.getMessage();
}
}
/**
*
* Enrollment certificate
*
*
* optional .protos.Cert eCert = 3;
*/
public Builder setECert(org.hyperledger.protos.Ca.Cert value) {
if (eCertBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
eCert_ = value;
onChanged();
} else {
eCertBuilder_.setMessage(value);
}
return this;
}
/**
*
* Enrollment certificate
*
*
* optional .protos.Cert eCert = 3;
*/
public Builder setECert(
org.hyperledger.protos.Ca.Cert.Builder builderForValue) {
if (eCertBuilder_ == null) {
eCert_ = builderForValue.build();
onChanged();
} else {
eCertBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Enrollment certificate
*
*
* optional .protos.Cert eCert = 3;
*/
public Builder mergeECert(org.hyperledger.protos.Ca.Cert value) {
if (eCertBuilder_ == null) {
if (eCert_ != null) {
eCert_ =
org.hyperledger.protos.Ca.Cert.newBuilder(eCert_).mergeFrom(value).buildPartial();
} else {
eCert_ = value;
}
onChanged();
} else {
eCertBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Enrollment certificate
*
*
* optional .protos.Cert eCert = 3;
*/
public Builder clearECert() {
if (eCertBuilder_ == null) {
eCert_ = null;
onChanged();
} else {
eCert_ = null;
eCertBuilder_ = null;
}
return this;
}
/**
*
* Enrollment certificate
*
*
* optional .protos.Cert eCert = 3;
*/
public org.hyperledger.protos.Ca.Cert.Builder getECertBuilder() {
onChanged();
return getECertFieldBuilder().getBuilder();
}
/**
*
* Enrollment certificate
*
*
* optional .protos.Cert eCert = 3;
*/
public org.hyperledger.protos.Ca.CertOrBuilder getECertOrBuilder() {
if (eCertBuilder_ != null) {
return eCertBuilder_.getMessageOrBuilder();
} else {
return eCert_ == null ?
org.hyperledger.protos.Ca.Cert.getDefaultInstance() : eCert_;
}
}
/**
*
* Enrollment certificate
*
*
* optional .protos.Cert eCert = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder>
getECertFieldBuilder() {
if (eCertBuilder_ == null) {
eCertBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder>(
getECert(),
getParentForChildren(),
isClean());
eCert_ = null;
}
return eCertBuilder_;
}
private java.util.List attributes_ =
java.util.Collections.emptyList();
private void ensureAttributesIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
attributes_ = new java.util.ArrayList(attributes_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.hyperledger.protos.Ca.TCertAttribute, org.hyperledger.protos.Ca.TCertAttribute.Builder, org.hyperledger.protos.Ca.TCertAttributeOrBuilder> attributesBuilder_;
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public java.util.List getAttributesList() {
if (attributesBuilder_ == null) {
return java.util.Collections.unmodifiableList(attributes_);
} else {
return attributesBuilder_.getMessageList();
}
}
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public int getAttributesCount() {
if (attributesBuilder_ == null) {
return attributes_.size();
} else {
return attributesBuilder_.getCount();
}
}
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public org.hyperledger.protos.Ca.TCertAttribute getAttributes(int index) {
if (attributesBuilder_ == null) {
return attributes_.get(index);
} else {
return attributesBuilder_.getMessage(index);
}
}
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public Builder setAttributes(
int index, org.hyperledger.protos.Ca.TCertAttribute value) {
if (attributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesIsMutable();
attributes_.set(index, value);
onChanged();
} else {
attributesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public Builder setAttributes(
int index, org.hyperledger.protos.Ca.TCertAttribute.Builder builderForValue) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.set(index, builderForValue.build());
onChanged();
} else {
attributesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public Builder addAttributes(org.hyperledger.protos.Ca.TCertAttribute value) {
if (attributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesIsMutable();
attributes_.add(value);
onChanged();
} else {
attributesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public Builder addAttributes(
int index, org.hyperledger.protos.Ca.TCertAttribute value) {
if (attributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesIsMutable();
attributes_.add(index, value);
onChanged();
} else {
attributesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public Builder addAttributes(
org.hyperledger.protos.Ca.TCertAttribute.Builder builderForValue) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.add(builderForValue.build());
onChanged();
} else {
attributesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public Builder addAttributes(
int index, org.hyperledger.protos.Ca.TCertAttribute.Builder builderForValue) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.add(index, builderForValue.build());
onChanged();
} else {
attributesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public Builder addAllAttributes(
java.lang.Iterable extends org.hyperledger.protos.Ca.TCertAttribute> values) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, attributes_);
onChanged();
} else {
attributesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public Builder clearAttributes() {
if (attributesBuilder_ == null) {
attributes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
attributesBuilder_.clear();
}
return this;
}
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public Builder removeAttributes(int index) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.remove(index);
onChanged();
} else {
attributesBuilder_.remove(index);
}
return this;
}
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public org.hyperledger.protos.Ca.TCertAttribute.Builder getAttributesBuilder(
int index) {
return getAttributesFieldBuilder().getBuilder(index);
}
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public org.hyperledger.protos.Ca.TCertAttributeOrBuilder getAttributesOrBuilder(
int index) {
if (attributesBuilder_ == null) {
return attributes_.get(index); } else {
return attributesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public java.util.List extends org.hyperledger.protos.Ca.TCertAttributeOrBuilder>
getAttributesOrBuilderList() {
if (attributesBuilder_ != null) {
return attributesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(attributes_);
}
}
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public org.hyperledger.protos.Ca.TCertAttribute.Builder addAttributesBuilder() {
return getAttributesFieldBuilder().addBuilder(
org.hyperledger.protos.Ca.TCertAttribute.getDefaultInstance());
}
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public org.hyperledger.protos.Ca.TCertAttribute.Builder addAttributesBuilder(
int index) {
return getAttributesFieldBuilder().addBuilder(
index, org.hyperledger.protos.Ca.TCertAttribute.getDefaultInstance());
}
/**
*
* Collection of requested attributes including the attribute name and its respective value hash.
*
*
* repeated .protos.TCertAttribute attributes = 4;
*/
public java.util.List
getAttributesBuilderList() {
return getAttributesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.hyperledger.protos.Ca.TCertAttribute, org.hyperledger.protos.Ca.TCertAttribute.Builder, org.hyperledger.protos.Ca.TCertAttributeOrBuilder>
getAttributesFieldBuilder() {
if (attributesBuilder_ == null) {
attributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.hyperledger.protos.Ca.TCertAttribute, org.hyperledger.protos.Ca.TCertAttribute.Builder, org.hyperledger.protos.Ca.TCertAttributeOrBuilder>(
attributes_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
attributes_ = null;
}
return attributesBuilder_;
}
private org.hyperledger.protos.Ca.Signature signature_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder> signatureBuilder_;
/**
*
* The request is signed by the TCA.
*
*
* optional .protos.Signature signature = 5;
*/
public boolean hasSignature() {
return signatureBuilder_ != null || signature_ != null;
}
/**
*
* The request is signed by the TCA.
*
*
* optional .protos.Signature signature = 5;
*/
public org.hyperledger.protos.Ca.Signature getSignature() {
if (signatureBuilder_ == null) {
return signature_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : signature_;
} else {
return signatureBuilder_.getMessage();
}
}
/**
*
* The request is signed by the TCA.
*
*
* optional .protos.Signature signature = 5;
*/
public Builder setSignature(org.hyperledger.protos.Ca.Signature value) {
if (signatureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
signature_ = value;
onChanged();
} else {
signatureBuilder_.setMessage(value);
}
return this;
}
/**
*
* The request is signed by the TCA.
*
*
* optional .protos.Signature signature = 5;
*/
public Builder setSignature(
org.hyperledger.protos.Ca.Signature.Builder builderForValue) {
if (signatureBuilder_ == null) {
signature_ = builderForValue.build();
onChanged();
} else {
signatureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The request is signed by the TCA.
*
*
* optional .protos.Signature signature = 5;
*/
public Builder mergeSignature(org.hyperledger.protos.Ca.Signature value) {
if (signatureBuilder_ == null) {
if (signature_ != null) {
signature_ =
org.hyperledger.protos.Ca.Signature.newBuilder(signature_).mergeFrom(value).buildPartial();
} else {
signature_ = value;
}
onChanged();
} else {
signatureBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The request is signed by the TCA.
*
*
* optional .protos.Signature signature = 5;
*/
public Builder clearSignature() {
if (signatureBuilder_ == null) {
signature_ = null;
onChanged();
} else {
signature_ = null;
signatureBuilder_ = null;
}
return this;
}
/**
*
* The request is signed by the TCA.
*
*
* optional .protos.Signature signature = 5;
*/
public org.hyperledger.protos.Ca.Signature.Builder getSignatureBuilder() {
onChanged();
return getSignatureFieldBuilder().getBuilder();
}
/**
*
* The request is signed by the TCA.
*
*
* optional .protos.Signature signature = 5;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSignatureOrBuilder() {
if (signatureBuilder_ != null) {
return signatureBuilder_.getMessageOrBuilder();
} else {
return signature_ == null ?
org.hyperledger.protos.Ca.Signature.getDefaultInstance() : signature_;
}
}
/**
*
* The request is signed by the TCA.
*
*
* optional .protos.Signature signature = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>
getSignatureFieldBuilder() {
if (signatureBuilder_ == null) {
signatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>(
getSignature(),
getParentForChildren(),
isClean());
signature_ = null;
}
return signatureBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.ACAAttrReq)
}
// @@protoc_insertion_point(class_scope:protos.ACAAttrReq)
private static final org.hyperledger.protos.Ca.ACAAttrReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.ACAAttrReq();
}
public static org.hyperledger.protos.Ca.ACAAttrReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ACAAttrReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ACAAttrReq(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.ACAAttrReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ACAAttrRespOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.ACAAttrResp)
com.google.protobuf.MessageOrBuilder {
/**
*
* Indicates the request process status.
*
*
* optional .protos.ACAAttrResp.StatusCode status = 1;
*/
int getStatusValue();
/**
*
* Indicates the request process status.
*
*
* optional .protos.ACAAttrResp.StatusCode status = 1;
*/
org.hyperledger.protos.Ca.ACAAttrResp.StatusCode getStatus();
/**
*
* Attribute certificate. Include all the attributes certificated.
*
*
* optional .protos.Cert cert = 2;
*/
boolean hasCert();
/**
*
* Attribute certificate. Include all the attributes certificated.
*
*
* optional .protos.Cert cert = 2;
*/
org.hyperledger.protos.Ca.Cert getCert();
/**
*
* Attribute certificate. Include all the attributes certificated.
*
*
* optional .protos.Cert cert = 2;
*/
org.hyperledger.protos.Ca.CertOrBuilder getCertOrBuilder();
/**
*
* The response is signed by the ACA.
*
*
* optional .protos.Signature signature = 3;
*/
boolean hasSignature();
/**
*
* The response is signed by the ACA.
*
*
* optional .protos.Signature signature = 3;
*/
org.hyperledger.protos.Ca.Signature getSignature();
/**
*
* The response is signed by the ACA.
*
*
* optional .protos.Signature signature = 3;
*/
org.hyperledger.protos.Ca.SignatureOrBuilder getSignatureOrBuilder();
}
/**
*
*ACAAttrResp is the response of Attribute Certificate Authority (ACA) to the attribute request. Is composed by the following fields:
*
*
* Protobuf type {@code protos.ACAAttrResp}
*/
public static final class ACAAttrResp extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.ACAAttrResp)
ACAAttrRespOrBuilder {
// Use ACAAttrResp.newBuilder() to construct.
private ACAAttrResp(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ACAAttrResp() {
status_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ACAAttrResp(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
case 18: {
org.hyperledger.protos.Ca.Cert.Builder subBuilder = null;
if (cert_ != null) {
subBuilder = cert_.toBuilder();
}
cert_ = input.readMessage(org.hyperledger.protos.Ca.Cert.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(cert_);
cert_ = subBuilder.buildPartial();
}
break;
}
case 26: {
org.hyperledger.protos.Ca.Signature.Builder subBuilder = null;
if (signature_ != null) {
subBuilder = signature_.toBuilder();
}
signature_ = input.readMessage(org.hyperledger.protos.Ca.Signature.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(signature_);
signature_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_ACAAttrResp_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_ACAAttrResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.ACAAttrResp.class, org.hyperledger.protos.Ca.ACAAttrResp.Builder.class);
}
/**
* Protobuf enum {@code protos.ACAAttrResp.StatusCode}
*/
public enum StatusCode
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Processed OK and all attributes included.
*
*
* FULL_SUCCESSFUL = 0;
*/
FULL_SUCCESSFUL(0, 0),
/**
*
* Processed OK but some attributes included.
*
*
* PARTIAL_SUCCESSFUL = 1;
*/
PARTIAL_SUCCESSFUL(1, 1),
/**
*
* Processed OK but no attributes included.
*
*
* NO_ATTRIBUTES_FOUND = 8;
*/
NO_ATTRIBUTES_FOUND(2, 8),
/**
* FAILURE_MINVAL = 100;
*/
FAILURE_MINVAL(3, 100),
/**
* BAD_REQUEST = 200;
*/
BAD_REQUEST(5, 200),
/**
*
* Missing parameters
*
*
* FAIL_NIL_TS = 201;
*/
FAIL_NIL_TS(6, 201),
/**
* FAIL_NIL_ID = 202;
*/
FAIL_NIL_ID(7, 202),
/**
* FAIL_NIL_ECERT = 203;
*/
FAIL_NIL_ECERT(8, 203),
/**
* FAIL_NIL_SIGNATURE = 204;
*/
FAIL_NIL_SIGNATURE(9, 204),
/**
* FAIL_NIL_ATTRIBUTES = 205;
*/
FAIL_NIL_ATTRIBUTES(10, 205),
UNRECOGNIZED(-1, -1),
;
/**
* FAILURE = 100;
*/
public static final StatusCode FAILURE = FAILURE_MINVAL;
/**
* FAILURE_MAXVAL = 205;
*/
public static final StatusCode FAILURE_MAXVAL = FAIL_NIL_ATTRIBUTES;
/**
*
* Processed OK and all attributes included.
*
*
* FULL_SUCCESSFUL = 0;
*/
public static final int FULL_SUCCESSFUL_VALUE = 0;
/**
*
* Processed OK but some attributes included.
*
*
* PARTIAL_SUCCESSFUL = 1;
*/
public static final int PARTIAL_SUCCESSFUL_VALUE = 1;
/**
*
* Processed OK but no attributes included.
*
*
* NO_ATTRIBUTES_FOUND = 8;
*/
public static final int NO_ATTRIBUTES_FOUND_VALUE = 8;
/**
* FAILURE_MINVAL = 100;
*/
public static final int FAILURE_MINVAL_VALUE = 100;
/**
* FAILURE = 100;
*/
public static final int FAILURE_VALUE = 100;
/**
* BAD_REQUEST = 200;
*/
public static final int BAD_REQUEST_VALUE = 200;
/**
*
* Missing parameters
*
*
* FAIL_NIL_TS = 201;
*/
public static final int FAIL_NIL_TS_VALUE = 201;
/**
* FAIL_NIL_ID = 202;
*/
public static final int FAIL_NIL_ID_VALUE = 202;
/**
* FAIL_NIL_ECERT = 203;
*/
public static final int FAIL_NIL_ECERT_VALUE = 203;
/**
* FAIL_NIL_SIGNATURE = 204;
*/
public static final int FAIL_NIL_SIGNATURE_VALUE = 204;
/**
* FAIL_NIL_ATTRIBUTES = 205;
*/
public static final int FAIL_NIL_ATTRIBUTES_VALUE = 205;
/**
* FAILURE_MAXVAL = 205;
*/
public static final int FAILURE_MAXVAL_VALUE = 205;
public final int getNumber() {
if (index == -1) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static StatusCode valueOf(int value) {
return forNumber(value);
}
public static StatusCode forNumber(int value) {
switch (value) {
case 0: return FULL_SUCCESSFUL;
case 1: return PARTIAL_SUCCESSFUL;
case 8: return NO_ATTRIBUTES_FOUND;
case 100: return FAILURE_MINVAL;
case 200: return BAD_REQUEST;
case 201: return FAIL_NIL_TS;
case 202: return FAIL_NIL_ID;
case 203: return FAIL_NIL_ECERT;
case 204: return FAIL_NIL_SIGNATURE;
case 205: return FAIL_NIL_ATTRIBUTES;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
StatusCode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public StatusCode findValueByNumber(int number) {
return StatusCode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.hyperledger.protos.Ca.ACAAttrResp.getDescriptor().getEnumTypes().get(0);
}
private static final StatusCode[] VALUES = {
FULL_SUCCESSFUL, PARTIAL_SUCCESSFUL, NO_ATTRIBUTES_FOUND, FAILURE_MINVAL, FAILURE, BAD_REQUEST, FAIL_NIL_TS, FAIL_NIL_ID, FAIL_NIL_ECERT, FAIL_NIL_SIGNATURE, FAIL_NIL_ATTRIBUTES, FAILURE_MAXVAL,
};
public static StatusCode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private StatusCode(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:protos.ACAAttrResp.StatusCode)
}
public static final int STATUS_FIELD_NUMBER = 1;
private int status_;
/**
*
* Indicates the request process status.
*
*
* optional .protos.ACAAttrResp.StatusCode status = 1;
*/
public int getStatusValue() {
return status_;
}
/**
*
* Indicates the request process status.
*
*
* optional .protos.ACAAttrResp.StatusCode status = 1;
*/
public org.hyperledger.protos.Ca.ACAAttrResp.StatusCode getStatus() {
org.hyperledger.protos.Ca.ACAAttrResp.StatusCode result = org.hyperledger.protos.Ca.ACAAttrResp.StatusCode.valueOf(status_);
return result == null ? org.hyperledger.protos.Ca.ACAAttrResp.StatusCode.UNRECOGNIZED : result;
}
public static final int CERT_FIELD_NUMBER = 2;
private org.hyperledger.protos.Ca.Cert cert_;
/**
*
* Attribute certificate. Include all the attributes certificated.
*
*
* optional .protos.Cert cert = 2;
*/
public boolean hasCert() {
return cert_ != null;
}
/**
*
* Attribute certificate. Include all the attributes certificated.
*
*
* optional .protos.Cert cert = 2;
*/
public org.hyperledger.protos.Ca.Cert getCert() {
return cert_ == null ? org.hyperledger.protos.Ca.Cert.getDefaultInstance() : cert_;
}
/**
*
* Attribute certificate. Include all the attributes certificated.
*
*
* optional .protos.Cert cert = 2;
*/
public org.hyperledger.protos.Ca.CertOrBuilder getCertOrBuilder() {
return getCert();
}
public static final int SIGNATURE_FIELD_NUMBER = 3;
private org.hyperledger.protos.Ca.Signature signature_;
/**
*
* The response is signed by the ACA.
*
*
* optional .protos.Signature signature = 3;
*/
public boolean hasSignature() {
return signature_ != null;
}
/**
*
* The response is signed by the ACA.
*
*
* optional .protos.Signature signature = 3;
*/
public org.hyperledger.protos.Ca.Signature getSignature() {
return signature_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : signature_;
}
/**
*
* The response is signed by the ACA.
*
*
* optional .protos.Signature signature = 3;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSignatureOrBuilder() {
return getSignature();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (status_ != org.hyperledger.protos.Ca.ACAAttrResp.StatusCode.FULL_SUCCESSFUL.getNumber()) {
output.writeEnum(1, status_);
}
if (cert_ != null) {
output.writeMessage(2, getCert());
}
if (signature_ != null) {
output.writeMessage(3, getSignature());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != org.hyperledger.protos.Ca.ACAAttrResp.StatusCode.FULL_SUCCESSFUL.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, status_);
}
if (cert_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getCert());
}
if (signature_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getSignature());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.ACAAttrResp)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.ACAAttrResp other = (org.hyperledger.protos.Ca.ACAAttrResp) obj;
boolean result = true;
result = result && status_ == other.status_;
result = result && (hasCert() == other.hasCert());
if (hasCert()) {
result = result && getCert()
.equals(other.getCert());
}
result = result && (hasSignature() == other.hasSignature());
if (hasSignature()) {
result = result && getSignature()
.equals(other.getSignature());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (hasCert()) {
hash = (37 * hash) + CERT_FIELD_NUMBER;
hash = (53 * hash) + getCert().hashCode();
}
if (hasSignature()) {
hash = (37 * hash) + SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getSignature().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.ACAAttrResp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.ACAAttrResp 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.protos.Ca.ACAAttrResp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.ACAAttrResp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.ACAAttrResp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ACAAttrResp 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.protos.Ca.ACAAttrResp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ACAAttrResp 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.protos.Ca.ACAAttrResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ACAAttrResp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.ACAAttrResp prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*ACAAttrResp is the response of Attribute Certificate Authority (ACA) to the attribute request. Is composed by the following fields:
*
*
* Protobuf type {@code protos.ACAAttrResp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.ACAAttrResp)
org.hyperledger.protos.Ca.ACAAttrRespOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_ACAAttrResp_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_ACAAttrResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.ACAAttrResp.class, org.hyperledger.protos.Ca.ACAAttrResp.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.ACAAttrResp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
status_ = 0;
if (certBuilder_ == null) {
cert_ = null;
} else {
cert_ = null;
certBuilder_ = null;
}
if (signatureBuilder_ == null) {
signature_ = null;
} else {
signature_ = null;
signatureBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_ACAAttrResp_descriptor;
}
public org.hyperledger.protos.Ca.ACAAttrResp getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.ACAAttrResp.getDefaultInstance();
}
public org.hyperledger.protos.Ca.ACAAttrResp build() {
org.hyperledger.protos.Ca.ACAAttrResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.ACAAttrResp buildPartial() {
org.hyperledger.protos.Ca.ACAAttrResp result = new org.hyperledger.protos.Ca.ACAAttrResp(this);
result.status_ = status_;
if (certBuilder_ == null) {
result.cert_ = cert_;
} else {
result.cert_ = certBuilder_.build();
}
if (signatureBuilder_ == null) {
result.signature_ = signature_;
} else {
result.signature_ = signatureBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.ACAAttrResp) {
return mergeFrom((org.hyperledger.protos.Ca.ACAAttrResp)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.ACAAttrResp other) {
if (other == org.hyperledger.protos.Ca.ACAAttrResp.getDefaultInstance()) return this;
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (other.hasCert()) {
mergeCert(other.getCert());
}
if (other.hasSignature()) {
mergeSignature(other.getSignature());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.ACAAttrResp parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.ACAAttrResp) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int status_ = 0;
/**
*
* Indicates the request process status.
*
*
* optional .protos.ACAAttrResp.StatusCode status = 1;
*/
public int getStatusValue() {
return status_;
}
/**
*
* Indicates the request process status.
*
*
* optional .protos.ACAAttrResp.StatusCode status = 1;
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
*
* Indicates the request process status.
*
*
* optional .protos.ACAAttrResp.StatusCode status = 1;
*/
public org.hyperledger.protos.Ca.ACAAttrResp.StatusCode getStatus() {
org.hyperledger.protos.Ca.ACAAttrResp.StatusCode result = org.hyperledger.protos.Ca.ACAAttrResp.StatusCode.valueOf(status_);
return result == null ? org.hyperledger.protos.Ca.ACAAttrResp.StatusCode.UNRECOGNIZED : result;
}
/**
*
* Indicates the request process status.
*
*
* optional .protos.ACAAttrResp.StatusCode status = 1;
*/
public Builder setStatus(org.hyperledger.protos.Ca.ACAAttrResp.StatusCode value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Indicates the request process status.
*
*
* optional .protos.ACAAttrResp.StatusCode status = 1;
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private org.hyperledger.protos.Ca.Cert cert_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder> certBuilder_;
/**
*
* Attribute certificate. Include all the attributes certificated.
*
*
* optional .protos.Cert cert = 2;
*/
public boolean hasCert() {
return certBuilder_ != null || cert_ != null;
}
/**
*
* Attribute certificate. Include all the attributes certificated.
*
*
* optional .protos.Cert cert = 2;
*/
public org.hyperledger.protos.Ca.Cert getCert() {
if (certBuilder_ == null) {
return cert_ == null ? org.hyperledger.protos.Ca.Cert.getDefaultInstance() : cert_;
} else {
return certBuilder_.getMessage();
}
}
/**
*
* Attribute certificate. Include all the attributes certificated.
*
*
* optional .protos.Cert cert = 2;
*/
public Builder setCert(org.hyperledger.protos.Ca.Cert value) {
if (certBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cert_ = value;
onChanged();
} else {
certBuilder_.setMessage(value);
}
return this;
}
/**
*
* Attribute certificate. Include all the attributes certificated.
*
*
* optional .protos.Cert cert = 2;
*/
public Builder setCert(
org.hyperledger.protos.Ca.Cert.Builder builderForValue) {
if (certBuilder_ == null) {
cert_ = builderForValue.build();
onChanged();
} else {
certBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Attribute certificate. Include all the attributes certificated.
*
*
* optional .protos.Cert cert = 2;
*/
public Builder mergeCert(org.hyperledger.protos.Ca.Cert value) {
if (certBuilder_ == null) {
if (cert_ != null) {
cert_ =
org.hyperledger.protos.Ca.Cert.newBuilder(cert_).mergeFrom(value).buildPartial();
} else {
cert_ = value;
}
onChanged();
} else {
certBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Attribute certificate. Include all the attributes certificated.
*
*
* optional .protos.Cert cert = 2;
*/
public Builder clearCert() {
if (certBuilder_ == null) {
cert_ = null;
onChanged();
} else {
cert_ = null;
certBuilder_ = null;
}
return this;
}
/**
*
* Attribute certificate. Include all the attributes certificated.
*
*
* optional .protos.Cert cert = 2;
*/
public org.hyperledger.protos.Ca.Cert.Builder getCertBuilder() {
onChanged();
return getCertFieldBuilder().getBuilder();
}
/**
*
* Attribute certificate. Include all the attributes certificated.
*
*
* optional .protos.Cert cert = 2;
*/
public org.hyperledger.protos.Ca.CertOrBuilder getCertOrBuilder() {
if (certBuilder_ != null) {
return certBuilder_.getMessageOrBuilder();
} else {
return cert_ == null ?
org.hyperledger.protos.Ca.Cert.getDefaultInstance() : cert_;
}
}
/**
*
* Attribute certificate. Include all the attributes certificated.
*
*
* optional .protos.Cert cert = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder>
getCertFieldBuilder() {
if (certBuilder_ == null) {
certBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder>(
getCert(),
getParentForChildren(),
isClean());
cert_ = null;
}
return certBuilder_;
}
private org.hyperledger.protos.Ca.Signature signature_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder> signatureBuilder_;
/**
*
* The response is signed by the ACA.
*
*
* optional .protos.Signature signature = 3;
*/
public boolean hasSignature() {
return signatureBuilder_ != null || signature_ != null;
}
/**
*
* The response is signed by the ACA.
*
*
* optional .protos.Signature signature = 3;
*/
public org.hyperledger.protos.Ca.Signature getSignature() {
if (signatureBuilder_ == null) {
return signature_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : signature_;
} else {
return signatureBuilder_.getMessage();
}
}
/**
*
* The response is signed by the ACA.
*
*
* optional .protos.Signature signature = 3;
*/
public Builder setSignature(org.hyperledger.protos.Ca.Signature value) {
if (signatureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
signature_ = value;
onChanged();
} else {
signatureBuilder_.setMessage(value);
}
return this;
}
/**
*
* The response is signed by the ACA.
*
*
* optional .protos.Signature signature = 3;
*/
public Builder setSignature(
org.hyperledger.protos.Ca.Signature.Builder builderForValue) {
if (signatureBuilder_ == null) {
signature_ = builderForValue.build();
onChanged();
} else {
signatureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The response is signed by the ACA.
*
*
* optional .protos.Signature signature = 3;
*/
public Builder mergeSignature(org.hyperledger.protos.Ca.Signature value) {
if (signatureBuilder_ == null) {
if (signature_ != null) {
signature_ =
org.hyperledger.protos.Ca.Signature.newBuilder(signature_).mergeFrom(value).buildPartial();
} else {
signature_ = value;
}
onChanged();
} else {
signatureBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The response is signed by the ACA.
*
*
* optional .protos.Signature signature = 3;
*/
public Builder clearSignature() {
if (signatureBuilder_ == null) {
signature_ = null;
onChanged();
} else {
signature_ = null;
signatureBuilder_ = null;
}
return this;
}
/**
*
* The response is signed by the ACA.
*
*
* optional .protos.Signature signature = 3;
*/
public org.hyperledger.protos.Ca.Signature.Builder getSignatureBuilder() {
onChanged();
return getSignatureFieldBuilder().getBuilder();
}
/**
*
* The response is signed by the ACA.
*
*
* optional .protos.Signature signature = 3;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSignatureOrBuilder() {
if (signatureBuilder_ != null) {
return signatureBuilder_.getMessageOrBuilder();
} else {
return signature_ == null ?
org.hyperledger.protos.Ca.Signature.getDefaultInstance() : signature_;
}
}
/**
*
* The response is signed by the ACA.
*
*
* optional .protos.Signature signature = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>
getSignatureFieldBuilder() {
if (signatureBuilder_ == null) {
signatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>(
getSignature(),
getParentForChildren(),
isClean());
signature_ = null;
}
return signatureBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.ACAAttrResp)
}
// @@protoc_insertion_point(class_scope:protos.ACAAttrResp)
private static final org.hyperledger.protos.Ca.ACAAttrResp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.ACAAttrResp();
}
public static org.hyperledger.protos.Ca.ACAAttrResp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ACAAttrResp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ACAAttrResp(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.ACAAttrResp getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ACAFetchAttrReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.ACAFetchAttrReq)
com.google.protobuf.MessageOrBuilder {
/**
*
* Request timestamp
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
boolean hasTs();
/**
*
* Request timestamp
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
com.google.protobuf.Timestamp getTs();
/**
*
* Request timestamp
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
com.google.protobuf.TimestampOrBuilder getTsOrBuilder();
/**
*
* Enrollment certificate.
*
*
* optional .protos.Cert eCert = 2;
*/
boolean hasECert();
/**
*
* Enrollment certificate.
*
*
* optional .protos.Cert eCert = 2;
*/
org.hyperledger.protos.Ca.Cert getECert();
/**
*
* Enrollment certificate.
*
*
* optional .protos.Cert eCert = 2;
*/
org.hyperledger.protos.Ca.CertOrBuilder getECertOrBuilder();
/**
*
* The request is signed by the ECA.
*
*
* optional .protos.Signature signature = 3;
*/
boolean hasSignature();
/**
*
* The request is signed by the ECA.
*
*
* optional .protos.Signature signature = 3;
*/
org.hyperledger.protos.Ca.Signature getSignature();
/**
*
* The request is signed by the ECA.
*
*
* optional .protos.Signature signature = 3;
*/
org.hyperledger.protos.Ca.SignatureOrBuilder getSignatureOrBuilder();
}
/**
*
*ACAFetchAttrReq is a request to the Attribute Certificate Authority (ACA) to refresh attributes values from the sources.
*
*
* Protobuf type {@code protos.ACAFetchAttrReq}
*/
public static final class ACAFetchAttrReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.ACAFetchAttrReq)
ACAFetchAttrReqOrBuilder {
// Use ACAFetchAttrReq.newBuilder() to construct.
private ACAFetchAttrReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ACAFetchAttrReq() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ACAFetchAttrReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (ts_ != null) {
subBuilder = ts_.toBuilder();
}
ts_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ts_);
ts_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.hyperledger.protos.Ca.Cert.Builder subBuilder = null;
if (eCert_ != null) {
subBuilder = eCert_.toBuilder();
}
eCert_ = input.readMessage(org.hyperledger.protos.Ca.Cert.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(eCert_);
eCert_ = subBuilder.buildPartial();
}
break;
}
case 26: {
org.hyperledger.protos.Ca.Signature.Builder subBuilder = null;
if (signature_ != null) {
subBuilder = signature_.toBuilder();
}
signature_ = input.readMessage(org.hyperledger.protos.Ca.Signature.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(signature_);
signature_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_ACAFetchAttrReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_ACAFetchAttrReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.ACAFetchAttrReq.class, org.hyperledger.protos.Ca.ACAFetchAttrReq.Builder.class);
}
public static final int TS_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp ts_;
/**
*
* Request timestamp
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
public boolean hasTs() {
return ts_ != null;
}
/**
*
* Request timestamp
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.Timestamp getTs() {
return ts_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
}
/**
*
* Request timestamp
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.TimestampOrBuilder getTsOrBuilder() {
return getTs();
}
public static final int ECERT_FIELD_NUMBER = 2;
private org.hyperledger.protos.Ca.Cert eCert_;
/**
*
* Enrollment certificate.
*
*
* optional .protos.Cert eCert = 2;
*/
public boolean hasECert() {
return eCert_ != null;
}
/**
*
* Enrollment certificate.
*
*
* optional .protos.Cert eCert = 2;
*/
public org.hyperledger.protos.Ca.Cert getECert() {
return eCert_ == null ? org.hyperledger.protos.Ca.Cert.getDefaultInstance() : eCert_;
}
/**
*
* Enrollment certificate.
*
*
* optional .protos.Cert eCert = 2;
*/
public org.hyperledger.protos.Ca.CertOrBuilder getECertOrBuilder() {
return getECert();
}
public static final int SIGNATURE_FIELD_NUMBER = 3;
private org.hyperledger.protos.Ca.Signature signature_;
/**
*
* The request is signed by the ECA.
*
*
* optional .protos.Signature signature = 3;
*/
public boolean hasSignature() {
return signature_ != null;
}
/**
*
* The request is signed by the ECA.
*
*
* optional .protos.Signature signature = 3;
*/
public org.hyperledger.protos.Ca.Signature getSignature() {
return signature_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : signature_;
}
/**
*
* The request is signed by the ECA.
*
*
* optional .protos.Signature signature = 3;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSignatureOrBuilder() {
return getSignature();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (ts_ != null) {
output.writeMessage(1, getTs());
}
if (eCert_ != null) {
output.writeMessage(2, getECert());
}
if (signature_ != null) {
output.writeMessage(3, getSignature());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (ts_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTs());
}
if (eCert_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getECert());
}
if (signature_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getSignature());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.ACAFetchAttrReq)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.ACAFetchAttrReq other = (org.hyperledger.protos.Ca.ACAFetchAttrReq) obj;
boolean result = true;
result = result && (hasTs() == other.hasTs());
if (hasTs()) {
result = result && getTs()
.equals(other.getTs());
}
result = result && (hasECert() == other.hasECert());
if (hasECert()) {
result = result && getECert()
.equals(other.getECert());
}
result = result && (hasSignature() == other.hasSignature());
if (hasSignature()) {
result = result && getSignature()
.equals(other.getSignature());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasTs()) {
hash = (37 * hash) + TS_FIELD_NUMBER;
hash = (53 * hash) + getTs().hashCode();
}
if (hasECert()) {
hash = (37 * hash) + ECERT_FIELD_NUMBER;
hash = (53 * hash) + getECert().hashCode();
}
if (hasSignature()) {
hash = (37 * hash) + SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getSignature().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.ACAFetchAttrReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.ACAFetchAttrReq 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.protos.Ca.ACAFetchAttrReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.ACAFetchAttrReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.ACAFetchAttrReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ACAFetchAttrReq 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.protos.Ca.ACAFetchAttrReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ACAFetchAttrReq 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.protos.Ca.ACAFetchAttrReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ACAFetchAttrReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.ACAFetchAttrReq prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*ACAFetchAttrReq is a request to the Attribute Certificate Authority (ACA) to refresh attributes values from the sources.
*
*
* Protobuf type {@code protos.ACAFetchAttrReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.ACAFetchAttrReq)
org.hyperledger.protos.Ca.ACAFetchAttrReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_ACAFetchAttrReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_ACAFetchAttrReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.ACAFetchAttrReq.class, org.hyperledger.protos.Ca.ACAFetchAttrReq.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.ACAFetchAttrReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (tsBuilder_ == null) {
ts_ = null;
} else {
ts_ = null;
tsBuilder_ = null;
}
if (eCertBuilder_ == null) {
eCert_ = null;
} else {
eCert_ = null;
eCertBuilder_ = null;
}
if (signatureBuilder_ == null) {
signature_ = null;
} else {
signature_ = null;
signatureBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_ACAFetchAttrReq_descriptor;
}
public org.hyperledger.protos.Ca.ACAFetchAttrReq getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.ACAFetchAttrReq.getDefaultInstance();
}
public org.hyperledger.protos.Ca.ACAFetchAttrReq build() {
org.hyperledger.protos.Ca.ACAFetchAttrReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.ACAFetchAttrReq buildPartial() {
org.hyperledger.protos.Ca.ACAFetchAttrReq result = new org.hyperledger.protos.Ca.ACAFetchAttrReq(this);
if (tsBuilder_ == null) {
result.ts_ = ts_;
} else {
result.ts_ = tsBuilder_.build();
}
if (eCertBuilder_ == null) {
result.eCert_ = eCert_;
} else {
result.eCert_ = eCertBuilder_.build();
}
if (signatureBuilder_ == null) {
result.signature_ = signature_;
} else {
result.signature_ = signatureBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.ACAFetchAttrReq) {
return mergeFrom((org.hyperledger.protos.Ca.ACAFetchAttrReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.ACAFetchAttrReq other) {
if (other == org.hyperledger.protos.Ca.ACAFetchAttrReq.getDefaultInstance()) return this;
if (other.hasTs()) {
mergeTs(other.getTs());
}
if (other.hasECert()) {
mergeECert(other.getECert());
}
if (other.hasSignature()) {
mergeSignature(other.getSignature());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.ACAFetchAttrReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.ACAFetchAttrReq) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.Timestamp ts_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> tsBuilder_;
/**
*
* Request timestamp
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
public boolean hasTs() {
return tsBuilder_ != null || ts_ != null;
}
/**
*
* Request timestamp
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.Timestamp getTs() {
if (tsBuilder_ == null) {
return ts_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
} else {
return tsBuilder_.getMessage();
}
}
/**
*
* Request timestamp
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder setTs(com.google.protobuf.Timestamp value) {
if (tsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ts_ = value;
onChanged();
} else {
tsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Request timestamp
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder setTs(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (tsBuilder_ == null) {
ts_ = builderForValue.build();
onChanged();
} else {
tsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Request timestamp
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder mergeTs(com.google.protobuf.Timestamp value) {
if (tsBuilder_ == null) {
if (ts_ != null) {
ts_ =
com.google.protobuf.Timestamp.newBuilder(ts_).mergeFrom(value).buildPartial();
} else {
ts_ = value;
}
onChanged();
} else {
tsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Request timestamp
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
public Builder clearTs() {
if (tsBuilder_ == null) {
ts_ = null;
onChanged();
} else {
ts_ = null;
tsBuilder_ = null;
}
return this;
}
/**
*
* Request timestamp
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.Timestamp.Builder getTsBuilder() {
onChanged();
return getTsFieldBuilder().getBuilder();
}
/**
*
* Request timestamp
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
public com.google.protobuf.TimestampOrBuilder getTsOrBuilder() {
if (tsBuilder_ != null) {
return tsBuilder_.getMessageOrBuilder();
} else {
return ts_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
}
}
/**
*
* Request timestamp
*
*
* optional .google.protobuf.Timestamp ts = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getTsFieldBuilder() {
if (tsBuilder_ == null) {
tsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getTs(),
getParentForChildren(),
isClean());
ts_ = null;
}
return tsBuilder_;
}
private org.hyperledger.protos.Ca.Cert eCert_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder> eCertBuilder_;
/**
*
* Enrollment certificate.
*
*
* optional .protos.Cert eCert = 2;
*/
public boolean hasECert() {
return eCertBuilder_ != null || eCert_ != null;
}
/**
*
* Enrollment certificate.
*
*
* optional .protos.Cert eCert = 2;
*/
public org.hyperledger.protos.Ca.Cert getECert() {
if (eCertBuilder_ == null) {
return eCert_ == null ? org.hyperledger.protos.Ca.Cert.getDefaultInstance() : eCert_;
} else {
return eCertBuilder_.getMessage();
}
}
/**
*
* Enrollment certificate.
*
*
* optional .protos.Cert eCert = 2;
*/
public Builder setECert(org.hyperledger.protos.Ca.Cert value) {
if (eCertBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
eCert_ = value;
onChanged();
} else {
eCertBuilder_.setMessage(value);
}
return this;
}
/**
*
* Enrollment certificate.
*
*
* optional .protos.Cert eCert = 2;
*/
public Builder setECert(
org.hyperledger.protos.Ca.Cert.Builder builderForValue) {
if (eCertBuilder_ == null) {
eCert_ = builderForValue.build();
onChanged();
} else {
eCertBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Enrollment certificate.
*
*
* optional .protos.Cert eCert = 2;
*/
public Builder mergeECert(org.hyperledger.protos.Ca.Cert value) {
if (eCertBuilder_ == null) {
if (eCert_ != null) {
eCert_ =
org.hyperledger.protos.Ca.Cert.newBuilder(eCert_).mergeFrom(value).buildPartial();
} else {
eCert_ = value;
}
onChanged();
} else {
eCertBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Enrollment certificate.
*
*
* optional .protos.Cert eCert = 2;
*/
public Builder clearECert() {
if (eCertBuilder_ == null) {
eCert_ = null;
onChanged();
} else {
eCert_ = null;
eCertBuilder_ = null;
}
return this;
}
/**
*
* Enrollment certificate.
*
*
* optional .protos.Cert eCert = 2;
*/
public org.hyperledger.protos.Ca.Cert.Builder getECertBuilder() {
onChanged();
return getECertFieldBuilder().getBuilder();
}
/**
*
* Enrollment certificate.
*
*
* optional .protos.Cert eCert = 2;
*/
public org.hyperledger.protos.Ca.CertOrBuilder getECertOrBuilder() {
if (eCertBuilder_ != null) {
return eCertBuilder_.getMessageOrBuilder();
} else {
return eCert_ == null ?
org.hyperledger.protos.Ca.Cert.getDefaultInstance() : eCert_;
}
}
/**
*
* Enrollment certificate.
*
*
* optional .protos.Cert eCert = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder>
getECertFieldBuilder() {
if (eCertBuilder_ == null) {
eCertBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Cert, org.hyperledger.protos.Ca.Cert.Builder, org.hyperledger.protos.Ca.CertOrBuilder>(
getECert(),
getParentForChildren(),
isClean());
eCert_ = null;
}
return eCertBuilder_;
}
private org.hyperledger.protos.Ca.Signature signature_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder> signatureBuilder_;
/**
*
* The request is signed by the ECA.
*
*
* optional .protos.Signature signature = 3;
*/
public boolean hasSignature() {
return signatureBuilder_ != null || signature_ != null;
}
/**
*
* The request is signed by the ECA.
*
*
* optional .protos.Signature signature = 3;
*/
public org.hyperledger.protos.Ca.Signature getSignature() {
if (signatureBuilder_ == null) {
return signature_ == null ? org.hyperledger.protos.Ca.Signature.getDefaultInstance() : signature_;
} else {
return signatureBuilder_.getMessage();
}
}
/**
*
* The request is signed by the ECA.
*
*
* optional .protos.Signature signature = 3;
*/
public Builder setSignature(org.hyperledger.protos.Ca.Signature value) {
if (signatureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
signature_ = value;
onChanged();
} else {
signatureBuilder_.setMessage(value);
}
return this;
}
/**
*
* The request is signed by the ECA.
*
*
* optional .protos.Signature signature = 3;
*/
public Builder setSignature(
org.hyperledger.protos.Ca.Signature.Builder builderForValue) {
if (signatureBuilder_ == null) {
signature_ = builderForValue.build();
onChanged();
} else {
signatureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The request is signed by the ECA.
*
*
* optional .protos.Signature signature = 3;
*/
public Builder mergeSignature(org.hyperledger.protos.Ca.Signature value) {
if (signatureBuilder_ == null) {
if (signature_ != null) {
signature_ =
org.hyperledger.protos.Ca.Signature.newBuilder(signature_).mergeFrom(value).buildPartial();
} else {
signature_ = value;
}
onChanged();
} else {
signatureBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The request is signed by the ECA.
*
*
* optional .protos.Signature signature = 3;
*/
public Builder clearSignature() {
if (signatureBuilder_ == null) {
signature_ = null;
onChanged();
} else {
signature_ = null;
signatureBuilder_ = null;
}
return this;
}
/**
*
* The request is signed by the ECA.
*
*
* optional .protos.Signature signature = 3;
*/
public org.hyperledger.protos.Ca.Signature.Builder getSignatureBuilder() {
onChanged();
return getSignatureFieldBuilder().getBuilder();
}
/**
*
* The request is signed by the ECA.
*
*
* optional .protos.Signature signature = 3;
*/
public org.hyperledger.protos.Ca.SignatureOrBuilder getSignatureOrBuilder() {
if (signatureBuilder_ != null) {
return signatureBuilder_.getMessageOrBuilder();
} else {
return signature_ == null ?
org.hyperledger.protos.Ca.Signature.getDefaultInstance() : signature_;
}
}
/**
*
* The request is signed by the ECA.
*
*
* optional .protos.Signature signature = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>
getSignatureFieldBuilder() {
if (signatureBuilder_ == null) {
signatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.protos.Ca.Signature, org.hyperledger.protos.Ca.Signature.Builder, org.hyperledger.protos.Ca.SignatureOrBuilder>(
getSignature(),
getParentForChildren(),
isClean());
signature_ = null;
}
return signatureBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.ACAFetchAttrReq)
}
// @@protoc_insertion_point(class_scope:protos.ACAFetchAttrReq)
private static final org.hyperledger.protos.Ca.ACAFetchAttrReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.ACAFetchAttrReq();
}
public static org.hyperledger.protos.Ca.ACAFetchAttrReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ACAFetchAttrReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ACAFetchAttrReq(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.protos.Ca.ACAFetchAttrReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ACAFetchAttrRespOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.ACAFetchAttrResp)
com.google.protobuf.MessageOrBuilder {
/**
*
* Status of the fetch process.
*
*
* optional .protos.ACAFetchAttrResp.StatusCode status = 1;
*/
int getStatusValue();
/**
*
* Status of the fetch process.
*
*
* optional .protos.ACAFetchAttrResp.StatusCode status = 1;
*/
org.hyperledger.protos.Ca.ACAFetchAttrResp.StatusCode getStatus();
/**
*
* Error message.
*
*
* optional string Msg = 2;
*/
java.lang.String getMsg();
/**
*
* Error message.
*
*
* optional string Msg = 2;
*/
com.google.protobuf.ByteString
getMsgBytes();
}
/**
*
*ACAFetchAttrReq is the answer of the Attribute Certificate Authority (ACA) to the refresh request.
*
*
* Protobuf type {@code protos.ACAFetchAttrResp}
*/
public static final class ACAFetchAttrResp extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.ACAFetchAttrResp)
ACAFetchAttrRespOrBuilder {
// Use ACAFetchAttrResp.newBuilder() to construct.
private ACAFetchAttrResp(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ACAFetchAttrResp() {
status_ = 0;
msg_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ACAFetchAttrResp(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
msg_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_ACAFetchAttrResp_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_ACAFetchAttrResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.ACAFetchAttrResp.class, org.hyperledger.protos.Ca.ACAFetchAttrResp.Builder.class);
}
/**
* Protobuf enum {@code protos.ACAFetchAttrResp.StatusCode}
*/
public enum StatusCode
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Processed OK
*
*
* SUCCESS = 0;
*/
SUCCESS(0),
/**
*
* Processed with errors.
*
*
* FAILURE = 100;
*/
FAILURE(100),
UNRECOGNIZED(-1),
;
/**
*
* Processed OK
*
*
* SUCCESS = 0;
*/
public static final int SUCCESS_VALUE = 0;
/**
*
* Processed with errors.
*
*
* FAILURE = 100;
*/
public static final int FAILURE_VALUE = 100;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static StatusCode valueOf(int value) {
return forNumber(value);
}
public static StatusCode forNumber(int value) {
switch (value) {
case 0: return SUCCESS;
case 100: return FAILURE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
StatusCode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public StatusCode findValueByNumber(int number) {
return StatusCode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.hyperledger.protos.Ca.ACAFetchAttrResp.getDescriptor().getEnumTypes().get(0);
}
private static final StatusCode[] VALUES = values();
public static StatusCode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private StatusCode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:protos.ACAFetchAttrResp.StatusCode)
}
public static final int STATUS_FIELD_NUMBER = 1;
private int status_;
/**
*
* Status of the fetch process.
*
*
* optional .protos.ACAFetchAttrResp.StatusCode status = 1;
*/
public int getStatusValue() {
return status_;
}
/**
*
* Status of the fetch process.
*
*
* optional .protos.ACAFetchAttrResp.StatusCode status = 1;
*/
public org.hyperledger.protos.Ca.ACAFetchAttrResp.StatusCode getStatus() {
org.hyperledger.protos.Ca.ACAFetchAttrResp.StatusCode result = org.hyperledger.protos.Ca.ACAFetchAttrResp.StatusCode.valueOf(status_);
return result == null ? org.hyperledger.protos.Ca.ACAFetchAttrResp.StatusCode.UNRECOGNIZED : result;
}
public static final int MSG_FIELD_NUMBER = 2;
private volatile java.lang.Object msg_;
/**
*
* Error message.
*
*
* optional string Msg = 2;
*/
public java.lang.String getMsg() {
java.lang.Object ref = msg_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
msg_ = s;
return s;
}
}
/**
*
* Error message.
*
*
* optional string Msg = 2;
*/
public com.google.protobuf.ByteString
getMsgBytes() {
java.lang.Object ref = msg_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
msg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (status_ != org.hyperledger.protos.Ca.ACAFetchAttrResp.StatusCode.SUCCESS.getNumber()) {
output.writeEnum(1, status_);
}
if (!getMsgBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, msg_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != org.hyperledger.protos.Ca.ACAFetchAttrResp.StatusCode.SUCCESS.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, status_);
}
if (!getMsgBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, msg_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.protos.Ca.ACAFetchAttrResp)) {
return super.equals(obj);
}
org.hyperledger.protos.Ca.ACAFetchAttrResp other = (org.hyperledger.protos.Ca.ACAFetchAttrResp) obj;
boolean result = true;
result = result && status_ == other.status_;
result = result && getMsg()
.equals(other.getMsg());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (37 * hash) + MSG_FIELD_NUMBER;
hash = (53 * hash) + getMsg().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Ca.ACAFetchAttrResp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.ACAFetchAttrResp 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.protos.Ca.ACAFetchAttrResp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Ca.ACAFetchAttrResp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Ca.ACAFetchAttrResp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ACAFetchAttrResp 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.protos.Ca.ACAFetchAttrResp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ACAFetchAttrResp 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.protos.Ca.ACAFetchAttrResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Ca.ACAFetchAttrResp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.protos.Ca.ACAFetchAttrResp prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*ACAFetchAttrReq is the answer of the Attribute Certificate Authority (ACA) to the refresh request.
*
*
* Protobuf type {@code protos.ACAFetchAttrResp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.ACAFetchAttrResp)
org.hyperledger.protos.Ca.ACAFetchAttrRespOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Ca.internal_static_protos_ACAFetchAttrResp_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Ca.internal_static_protos_ACAFetchAttrResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Ca.ACAFetchAttrResp.class, org.hyperledger.protos.Ca.ACAFetchAttrResp.Builder.class);
}
// Construct using org.hyperledger.protos.Ca.ACAFetchAttrResp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
status_ = 0;
msg_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Ca.internal_static_protos_ACAFetchAttrResp_descriptor;
}
public org.hyperledger.protos.Ca.ACAFetchAttrResp getDefaultInstanceForType() {
return org.hyperledger.protos.Ca.ACAFetchAttrResp.getDefaultInstance();
}
public org.hyperledger.protos.Ca.ACAFetchAttrResp build() {
org.hyperledger.protos.Ca.ACAFetchAttrResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Ca.ACAFetchAttrResp buildPartial() {
org.hyperledger.protos.Ca.ACAFetchAttrResp result = new org.hyperledger.protos.Ca.ACAFetchAttrResp(this);
result.status_ = status_;
result.msg_ = msg_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.protos.Ca.ACAFetchAttrResp) {
return mergeFrom((org.hyperledger.protos.Ca.ACAFetchAttrResp)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Ca.ACAFetchAttrResp other) {
if (other == org.hyperledger.protos.Ca.ACAFetchAttrResp.getDefaultInstance()) return this;
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (!other.getMsg().isEmpty()) {
msg_ = other.msg_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.protos.Ca.ACAFetchAttrResp parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Ca.ACAFetchAttrResp) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int status_ = 0;
/**
*
* Status of the fetch process.
*
*
* optional .protos.ACAFetchAttrResp.StatusCode status = 1;
*/
public int getStatusValue() {
return status_;
}
/**
*
* Status of the fetch process.
*
*
* optional .protos.ACAFetchAttrResp.StatusCode status = 1;
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
*
* Status of the fetch process.
*
*
* optional .protos.ACAFetchAttrResp.StatusCode status = 1;
*/
public org.hyperledger.protos.Ca.ACAFetchAttrResp.StatusCode getStatus() {
org.hyperledger.protos.Ca.ACAFetchAttrResp.StatusCode result = org.hyperledger.protos.Ca.ACAFetchAttrResp.StatusCode.valueOf(status_);
return result == null ? org.hyperledger.protos.Ca.ACAFetchAttrResp.StatusCode.UNRECOGNIZED : result;
}
/**
*
* Status of the fetch process.
*
*
* optional .protos.ACAFetchAttrResp.StatusCode status = 1;
*/
public Builder setStatus(org.hyperledger.protos.Ca.ACAFetchAttrResp.StatusCode value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Status of the fetch process.
*
*
* optional .protos.ACAFetchAttrResp.StatusCode status = 1;
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private java.lang.Object msg_ = "";
/**
*
* Error message.
*
*
* optional string Msg = 2;
*/
public java.lang.String getMsg() {
java.lang.Object ref = msg_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
msg_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Error message.
*
*
* optional string Msg = 2;
*/
public com.google.protobuf.ByteString
getMsgBytes() {
java.lang.Object ref = msg_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
msg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Error message.
*
*
* optional string Msg = 2;
*/
public Builder setMsg(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
msg_ = value;
onChanged();
return this;
}
/**
*
* Error message.
*
*
* optional string Msg = 2;
*/
public Builder clearMsg() {
msg_ = getDefaultInstance().getMsg();
onChanged();
return this;
}
/**
*
* Error message.
*
*
* optional string Msg = 2;
*/
public Builder setMsgBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
msg_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:protos.ACAFetchAttrResp)
}
// @@protoc_insertion_point(class_scope:protos.ACAFetchAttrResp)
private static final org.hyperledger.protos.Ca.ACAFetchAttrResp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Ca.ACAFetchAttrResp();
}
public static org.hyperledger.protos.Ca.ACAFetchAttrResp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser