org.hyperledger.fabric.protos.common.Configuration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fabric-sdk-java Show documentation
Show all versions of fabric-sdk-java Show documentation
Java SDK for Hyperledger Fabric. Deprecated as of Fabric v2.5, replaced by org.hyperledger.fabric:fabric-gateway.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: common/configuration.proto
package org.hyperledger.fabric.protos.common;
public final class Configuration {
private Configuration() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface HashingAlgorithmOrBuilder extends
// @@protoc_insertion_point(interface_extends:common.HashingAlgorithm)
com.google.protobuf.MessageOrBuilder {
/**
*
* Currently supported algorithms are: SHAKE256
*
*
* string name = 1;
*/
java.lang.String getName();
/**
*
* Currently supported algorithms are: SHAKE256
*
*
* string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
}
/**
*
* HashingAlgorithm is encoded into the configuration transaction as a configuration item of type Chain
* with a Key of "HashingAlgorithm" and a Value of HashingAlgorithm as marshaled protobuf bytes
*
*
* Protobuf type {@code common.HashingAlgorithm}
*/
public static final class HashingAlgorithm extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:common.HashingAlgorithm)
HashingAlgorithmOrBuilder {
private static final long serialVersionUID = 0L;
// Use HashingAlgorithm.newBuilder() to construct.
private HashingAlgorithm(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HashingAlgorithm() {
name_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HashingAlgorithm(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_HashingAlgorithm_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_HashingAlgorithm_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm.class, org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Currently supported algorithms are: SHAKE256
*
*
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Currently supported algorithms are: SHAKE256
*
*
* string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm other = (org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm) obj;
if (!getName()
.equals(other.getName())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* HashingAlgorithm is encoded into the configuration transaction as a configuration item of type Chain
* with a Key of "HashingAlgorithm" and a Value of HashingAlgorithm as marshaled protobuf bytes
*
*
* Protobuf type {@code common.HashingAlgorithm}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:common.HashingAlgorithm)
org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithmOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_HashingAlgorithm_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_HashingAlgorithm_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm.class, org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_HashingAlgorithm_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm build() {
org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm buildPartial() {
org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm result = new org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm(this);
result.name_ = name_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm) {
return mergeFrom((org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm other) {
if (other == org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
*
* Currently supported algorithms are: SHAKE256
*
*
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Currently supported algorithms are: SHAKE256
*
*
* string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Currently supported algorithms are: SHAKE256
*
*
* string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Currently supported algorithms are: SHAKE256
*
*
* string name = 1;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Currently supported algorithms are: SHAKE256
*
*
* string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:common.HashingAlgorithm)
}
// @@protoc_insertion_point(class_scope:common.HashingAlgorithm)
private static final org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm();
}
public static org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HashingAlgorithm parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HashingAlgorithm(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BlockDataHashingStructureOrBuilder extends
// @@protoc_insertion_point(interface_extends:common.BlockDataHashingStructure)
com.google.protobuf.MessageOrBuilder {
/**
*
* width specifies the width of the Merkle tree to use when computing the BlockDataHash
* in order to replicate flat hashing, set this width to MAX_UINT32
*
*
* uint32 width = 1;
*/
int getWidth();
}
/**
*
* BlockDataHashingStructure is encoded into the configuration transaction as a configuration item of
* type Chain with a Key of "BlockDataHashingStructure" and a Value of HashingAlgorithm as marshaled protobuf bytes
*
*
* Protobuf type {@code common.BlockDataHashingStructure}
*/
public static final class BlockDataHashingStructure extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:common.BlockDataHashingStructure)
BlockDataHashingStructureOrBuilder {
private static final long serialVersionUID = 0L;
// Use BlockDataHashingStructure.newBuilder() to construct.
private BlockDataHashingStructure(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BlockDataHashingStructure() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BlockDataHashingStructure(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
width_ = input.readUInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_BlockDataHashingStructure_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_BlockDataHashingStructure_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure.class, org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure.Builder.class);
}
public static final int WIDTH_FIELD_NUMBER = 1;
private int width_;
/**
*
* width specifies the width of the Merkle tree to use when computing the BlockDataHash
* in order to replicate flat hashing, set this width to MAX_UINT32
*
*
* uint32 width = 1;
*/
public int getWidth() {
return width_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (width_ != 0) {
output.writeUInt32(1, width_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (width_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, width_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure other = (org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure) obj;
if (getWidth()
!= other.getWidth()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + WIDTH_FIELD_NUMBER;
hash = (53 * hash) + getWidth();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* BlockDataHashingStructure is encoded into the configuration transaction as a configuration item of
* type Chain with a Key of "BlockDataHashingStructure" and a Value of HashingAlgorithm as marshaled protobuf bytes
*
*
* Protobuf type {@code common.BlockDataHashingStructure}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:common.BlockDataHashingStructure)
org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructureOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_BlockDataHashingStructure_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_BlockDataHashingStructure_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure.class, org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
width_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_BlockDataHashingStructure_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure build() {
org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure buildPartial() {
org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure result = new org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure(this);
result.width_ = width_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure) {
return mergeFrom((org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure other) {
if (other == org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure.getDefaultInstance()) return this;
if (other.getWidth() != 0) {
setWidth(other.getWidth());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int width_ ;
/**
*
* width specifies the width of the Merkle tree to use when computing the BlockDataHash
* in order to replicate flat hashing, set this width to MAX_UINT32
*
*
* uint32 width = 1;
*/
public int getWidth() {
return width_;
}
/**
*
* width specifies the width of the Merkle tree to use when computing the BlockDataHash
* in order to replicate flat hashing, set this width to MAX_UINT32
*
*
* uint32 width = 1;
*/
public Builder setWidth(int value) {
width_ = value;
onChanged();
return this;
}
/**
*
* width specifies the width of the Merkle tree to use when computing the BlockDataHash
* in order to replicate flat hashing, set this width to MAX_UINT32
*
*
* uint32 width = 1;
*/
public Builder clearWidth() {
width_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:common.BlockDataHashingStructure)
}
// @@protoc_insertion_point(class_scope:common.BlockDataHashingStructure)
private static final org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure();
}
public static org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BlockDataHashingStructure parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BlockDataHashingStructure(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OrdererAddressesOrBuilder extends
// @@protoc_insertion_point(interface_extends:common.OrdererAddresses)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string addresses = 1;
*/
java.util.List
getAddressesList();
/**
* repeated string addresses = 1;
*/
int getAddressesCount();
/**
* repeated string addresses = 1;
*/
java.lang.String getAddresses(int index);
/**
* repeated string addresses = 1;
*/
com.google.protobuf.ByteString
getAddressesBytes(int index);
}
/**
*
* OrdererAddresses is encoded into the configuration transaction as a configuration item of type Chain
* with a Key of "OrdererAddresses" and a Value of OrdererAddresses as marshaled protobuf bytes
*
*
* Protobuf type {@code common.OrdererAddresses}
*/
public static final class OrdererAddresses extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:common.OrdererAddresses)
OrdererAddressesOrBuilder {
private static final long serialVersionUID = 0L;
// Use OrdererAddresses.newBuilder() to construct.
private OrdererAddresses(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OrdererAddresses() {
addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OrdererAddresses(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
addresses_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
addresses_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
addresses_ = addresses_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_OrdererAddresses_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_OrdererAddresses_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses.class, org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses.Builder.class);
}
public static final int ADDRESSES_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList addresses_;
/**
* repeated string addresses = 1;
*/
public com.google.protobuf.ProtocolStringList
getAddressesList() {
return addresses_;
}
/**
* repeated string addresses = 1;
*/
public int getAddressesCount() {
return addresses_.size();
}
/**
* repeated string addresses = 1;
*/
public java.lang.String getAddresses(int index) {
return addresses_.get(index);
}
/**
* repeated string addresses = 1;
*/
public com.google.protobuf.ByteString
getAddressesBytes(int index) {
return addresses_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < addresses_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addresses_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < addresses_.size(); i++) {
dataSize += computeStringSizeNoTag(addresses_.getRaw(i));
}
size += dataSize;
size += 1 * getAddressesList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses other = (org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses) obj;
if (!getAddressesList()
.equals(other.getAddressesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getAddressesCount() > 0) {
hash = (37 * hash) + ADDRESSES_FIELD_NUMBER;
hash = (53 * hash) + getAddressesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* OrdererAddresses is encoded into the configuration transaction as a configuration item of type Chain
* with a Key of "OrdererAddresses" and a Value of OrdererAddresses as marshaled protobuf bytes
*
*
* Protobuf type {@code common.OrdererAddresses}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:common.OrdererAddresses)
org.hyperledger.fabric.protos.common.Configuration.OrdererAddressesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_OrdererAddresses_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_OrdererAddresses_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses.class, org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_OrdererAddresses_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses build() {
org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses buildPartial() {
org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses result = new org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
addresses_ = addresses_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.addresses_ = addresses_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses) {
return mergeFrom((org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses other) {
if (other == org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses.getDefaultInstance()) return this;
if (!other.addresses_.isEmpty()) {
if (addresses_.isEmpty()) {
addresses_ = other.addresses_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAddressesIsMutable();
addresses_.addAll(other.addresses_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAddressesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
addresses_ = new com.google.protobuf.LazyStringArrayList(addresses_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string addresses = 1;
*/
public com.google.protobuf.ProtocolStringList
getAddressesList() {
return addresses_.getUnmodifiableView();
}
/**
* repeated string addresses = 1;
*/
public int getAddressesCount() {
return addresses_.size();
}
/**
* repeated string addresses = 1;
*/
public java.lang.String getAddresses(int index) {
return addresses_.get(index);
}
/**
* repeated string addresses = 1;
*/
public com.google.protobuf.ByteString
getAddressesBytes(int index) {
return addresses_.getByteString(index);
}
/**
* repeated string addresses = 1;
*/
public Builder setAddresses(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAddressesIsMutable();
addresses_.set(index, value);
onChanged();
return this;
}
/**
* repeated string addresses = 1;
*/
public Builder addAddresses(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAddressesIsMutable();
addresses_.add(value);
onChanged();
return this;
}
/**
* repeated string addresses = 1;
*/
public Builder addAllAddresses(
java.lang.Iterable values) {
ensureAddressesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, addresses_);
onChanged();
return this;
}
/**
* repeated string addresses = 1;
*/
public Builder clearAddresses() {
addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string addresses = 1;
*/
public Builder addAddressesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAddressesIsMutable();
addresses_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:common.OrdererAddresses)
}
// @@protoc_insertion_point(class_scope:common.OrdererAddresses)
private static final org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses();
}
public static org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OrdererAddresses parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OrdererAddresses(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConsortiumOrBuilder extends
// @@protoc_insertion_point(interface_extends:common.Consortium)
com.google.protobuf.MessageOrBuilder {
/**
* string name = 1;
*/
java.lang.String getName();
/**
* string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
}
/**
*
* Consortium represents the consortium context in which the channel was created
*
*
* Protobuf type {@code common.Consortium}
*/
public static final class Consortium extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:common.Consortium)
ConsortiumOrBuilder {
private static final long serialVersionUID = 0L;
// Use Consortium.newBuilder() to construct.
private Consortium(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Consortium() {
name_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Consortium(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_Consortium_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_Consortium_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configuration.Consortium.class, org.hyperledger.fabric.protos.common.Configuration.Consortium.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.common.Configuration.Consortium)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.common.Configuration.Consortium other = (org.hyperledger.fabric.protos.common.Configuration.Consortium) obj;
if (!getName()
.equals(other.getName())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.common.Configuration.Consortium parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configuration.Consortium parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.Consortium parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configuration.Consortium parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.Consortium parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configuration.Consortium parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.Consortium parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configuration.Consortium parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.Consortium parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configuration.Consortium parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.Consortium parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configuration.Consortium parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configuration.Consortium prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Consortium represents the consortium context in which the channel was created
*
*
* Protobuf type {@code common.Consortium}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:common.Consortium)
org.hyperledger.fabric.protos.common.Configuration.ConsortiumOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_Consortium_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_Consortium_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configuration.Consortium.class, org.hyperledger.fabric.protos.common.Configuration.Consortium.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.common.Configuration.Consortium.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_Consortium_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Configuration.Consortium getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.common.Configuration.Consortium.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Configuration.Consortium build() {
org.hyperledger.fabric.protos.common.Configuration.Consortium result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Configuration.Consortium buildPartial() {
org.hyperledger.fabric.protos.common.Configuration.Consortium result = new org.hyperledger.fabric.protos.common.Configuration.Consortium(this);
result.name_ = name_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.common.Configuration.Consortium) {
return mergeFrom((org.hyperledger.fabric.protos.common.Configuration.Consortium)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configuration.Consortium other) {
if (other == org.hyperledger.fabric.protos.common.Configuration.Consortium.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.fabric.protos.common.Configuration.Consortium parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.fabric.protos.common.Configuration.Consortium) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 1;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:common.Consortium)
}
// @@protoc_insertion_point(class_scope:common.Consortium)
private static final org.hyperledger.fabric.protos.common.Configuration.Consortium DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configuration.Consortium();
}
public static org.hyperledger.fabric.protos.common.Configuration.Consortium getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Consortium parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Consortium(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Configuration.Consortium getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CapabilitiesOrBuilder extends
// @@protoc_insertion_point(interface_extends:common.Capabilities)
com.google.protobuf.MessageOrBuilder {
/**
* map<string, .common.Capability> capabilities = 1;
*/
int getCapabilitiesCount();
/**
* map<string, .common.Capability> capabilities = 1;
*/
boolean containsCapabilities(
java.lang.String key);
/**
* Use {@link #getCapabilitiesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getCapabilities();
/**
* map<string, .common.Capability> capabilities = 1;
*/
java.util.Map
getCapabilitiesMap();
/**
* map<string, .common.Capability> capabilities = 1;
*/
org.hyperledger.fabric.protos.common.Configuration.Capability getCapabilitiesOrDefault(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configuration.Capability defaultValue);
/**
* map<string, .common.Capability> capabilities = 1;
*/
org.hyperledger.fabric.protos.common.Configuration.Capability getCapabilitiesOrThrow(
java.lang.String key);
}
/**
*
* Capabilities message defines the capabilities a particular binary must implement
* for that binary to be able to safely participate in the channel. The capabilities
* message is defined at the /Channel level, the /Channel/Application level, and the
* /Channel/Orderer level.
* The /Channel level capabilties define capabilities which both the orderer and peer
* binaries must satisfy. These capabilties might be things like a new MSP type,
* or a new policy type.
* The /Channel/Orderer level capabilties define capabilities which must be supported
* by the orderer, but which have no bearing on the behavior of the peer. For instance
* if the orderer changes the logic for how it constructs new channels, only all orderers
* must agree on the new logic. The peers do not need to be aware of this change as
* they only interact with the channel after it has been constructed.
* Finally, the /Channel/Application level capabilities define capabilities which the peer
* binary must satisfy, but which have no bearing on the orderer. For instance, if the
* peer adds a new UTXO transaction type, or changes the chaincode lifecycle requirements,
* all peers must agree on the new logic. However, orderers never inspect transactions
* this deeply, and therefore have no need to be aware of the change.
* The capabilities strings defined in these messages typically correspond to release
* binary versions (e.g. "V1.1"), and are used primarilly as a mechanism for a fully
* upgraded network to switch from one set of logic to a new one.
* Although for V1.1, the orderers must be upgraded to V1.1 prior to the rest of the
* network, going forward, because of the split between the /Channel, /Channel/Orderer
* and /Channel/Application capabilities. It should be possible for the orderer and
* application networks to upgrade themselves independently (with the exception of any
* new capabilities defined at the /Channel level).
*
*
* Protobuf type {@code common.Capabilities}
*/
public static final class Capabilities extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:common.Capabilities)
CapabilitiesOrBuilder {
private static final long serialVersionUID = 0L;
// Use Capabilities.newBuilder() to construct.
private Capabilities(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Capabilities() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Capabilities(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
capabilities_ = com.google.protobuf.MapField.newMapField(
CapabilitiesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
capabilities__ = input.readMessage(
CapabilitiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
capabilities_.getMutableMap().put(
capabilities__.getKey(), capabilities__.getValue());
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_Capabilities_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetCapabilities();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_Capabilities_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configuration.Capabilities.class, org.hyperledger.fabric.protos.common.Configuration.Capabilities.Builder.class);
}
public static final int CAPABILITIES_FIELD_NUMBER = 1;
private static final class CapabilitiesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, org.hyperledger.fabric.protos.common.Configuration.Capability> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.hyperledger.fabric.protos.common.Configuration.internal_static_common_Capabilities_CapabilitiesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
org.hyperledger.fabric.protos.common.Configuration.Capability.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, org.hyperledger.fabric.protos.common.Configuration.Capability> capabilities_;
private com.google.protobuf.MapField
internalGetCapabilities() {
if (capabilities_ == null) {
return com.google.protobuf.MapField.emptyMapField(
CapabilitiesDefaultEntryHolder.defaultEntry);
}
return capabilities_;
}
public int getCapabilitiesCount() {
return internalGetCapabilities().getMap().size();
}
/**
* map<string, .common.Capability> capabilities = 1;
*/
public boolean containsCapabilities(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetCapabilities().getMap().containsKey(key);
}
/**
* Use {@link #getCapabilitiesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getCapabilities() {
return getCapabilitiesMap();
}
/**
* map<string, .common.Capability> capabilities = 1;
*/
public java.util.Map getCapabilitiesMap() {
return internalGetCapabilities().getMap();
}
/**
* map<string, .common.Capability> capabilities = 1;
*/
public org.hyperledger.fabric.protos.common.Configuration.Capability getCapabilitiesOrDefault(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configuration.Capability defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetCapabilities().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .common.Capability> capabilities = 1;
*/
public org.hyperledger.fabric.protos.common.Configuration.Capability getCapabilitiesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetCapabilities().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetCapabilities(),
CapabilitiesDefaultEntryHolder.defaultEntry,
1);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetCapabilities().getMap().entrySet()) {
com.google.protobuf.MapEntry
capabilities__ = CapabilitiesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, capabilities__);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.common.Configuration.Capabilities)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.common.Configuration.Capabilities other = (org.hyperledger.fabric.protos.common.Configuration.Capabilities) obj;
if (!internalGetCapabilities().equals(
other.internalGetCapabilities())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (!internalGetCapabilities().getMap().isEmpty()) {
hash = (37 * hash) + CAPABILITIES_FIELD_NUMBER;
hash = (53 * hash) + internalGetCapabilities().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.common.Configuration.Capabilities parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configuration.Capabilities parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.Capabilities parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configuration.Capabilities parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.Capabilities parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configuration.Capabilities parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.Capabilities parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configuration.Capabilities parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.Capabilities parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configuration.Capabilities parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.Capabilities parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configuration.Capabilities parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configuration.Capabilities prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Capabilities message defines the capabilities a particular binary must implement
* for that binary to be able to safely participate in the channel. The capabilities
* message is defined at the /Channel level, the /Channel/Application level, and the
* /Channel/Orderer level.
* The /Channel level capabilties define capabilities which both the orderer and peer
* binaries must satisfy. These capabilties might be things like a new MSP type,
* or a new policy type.
* The /Channel/Orderer level capabilties define capabilities which must be supported
* by the orderer, but which have no bearing on the behavior of the peer. For instance
* if the orderer changes the logic for how it constructs new channels, only all orderers
* must agree on the new logic. The peers do not need to be aware of this change as
* they only interact with the channel after it has been constructed.
* Finally, the /Channel/Application level capabilities define capabilities which the peer
* binary must satisfy, but which have no bearing on the orderer. For instance, if the
* peer adds a new UTXO transaction type, or changes the chaincode lifecycle requirements,
* all peers must agree on the new logic. However, orderers never inspect transactions
* this deeply, and therefore have no need to be aware of the change.
* The capabilities strings defined in these messages typically correspond to release
* binary versions (e.g. "V1.1"), and are used primarilly as a mechanism for a fully
* upgraded network to switch from one set of logic to a new one.
* Although for V1.1, the orderers must be upgraded to V1.1 prior to the rest of the
* network, going forward, because of the split between the /Channel, /Channel/Orderer
* and /Channel/Application capabilities. It should be possible for the orderer and
* application networks to upgrade themselves independently (with the exception of any
* new capabilities defined at the /Channel level).
*
*
* Protobuf type {@code common.Capabilities}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:common.Capabilities)
org.hyperledger.fabric.protos.common.Configuration.CapabilitiesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_Capabilities_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetCapabilities();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableCapabilities();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_Capabilities_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configuration.Capabilities.class, org.hyperledger.fabric.protos.common.Configuration.Capabilities.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.common.Configuration.Capabilities.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
internalGetMutableCapabilities().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_Capabilities_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Configuration.Capabilities getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.common.Configuration.Capabilities.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Configuration.Capabilities build() {
org.hyperledger.fabric.protos.common.Configuration.Capabilities result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Configuration.Capabilities buildPartial() {
org.hyperledger.fabric.protos.common.Configuration.Capabilities result = new org.hyperledger.fabric.protos.common.Configuration.Capabilities(this);
int from_bitField0_ = bitField0_;
result.capabilities_ = internalGetCapabilities();
result.capabilities_.makeImmutable();
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.common.Configuration.Capabilities) {
return mergeFrom((org.hyperledger.fabric.protos.common.Configuration.Capabilities)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configuration.Capabilities other) {
if (other == org.hyperledger.fabric.protos.common.Configuration.Capabilities.getDefaultInstance()) return this;
internalGetMutableCapabilities().mergeFrom(
other.internalGetCapabilities());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.fabric.protos.common.Configuration.Capabilities parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.fabric.protos.common.Configuration.Capabilities) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.MapField<
java.lang.String, org.hyperledger.fabric.protos.common.Configuration.Capability> capabilities_;
private com.google.protobuf.MapField
internalGetCapabilities() {
if (capabilities_ == null) {
return com.google.protobuf.MapField.emptyMapField(
CapabilitiesDefaultEntryHolder.defaultEntry);
}
return capabilities_;
}
private com.google.protobuf.MapField
internalGetMutableCapabilities() {
onChanged();;
if (capabilities_ == null) {
capabilities_ = com.google.protobuf.MapField.newMapField(
CapabilitiesDefaultEntryHolder.defaultEntry);
}
if (!capabilities_.isMutable()) {
capabilities_ = capabilities_.copy();
}
return capabilities_;
}
public int getCapabilitiesCount() {
return internalGetCapabilities().getMap().size();
}
/**
* map<string, .common.Capability> capabilities = 1;
*/
public boolean containsCapabilities(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetCapabilities().getMap().containsKey(key);
}
/**
* Use {@link #getCapabilitiesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getCapabilities() {
return getCapabilitiesMap();
}
/**
* map<string, .common.Capability> capabilities = 1;
*/
public java.util.Map getCapabilitiesMap() {
return internalGetCapabilities().getMap();
}
/**
* map<string, .common.Capability> capabilities = 1;
*/
public org.hyperledger.fabric.protos.common.Configuration.Capability getCapabilitiesOrDefault(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configuration.Capability defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetCapabilities().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .common.Capability> capabilities = 1;
*/
public org.hyperledger.fabric.protos.common.Configuration.Capability getCapabilitiesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetCapabilities().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearCapabilities() {
internalGetMutableCapabilities().getMutableMap()
.clear();
return this;
}
/**
* map<string, .common.Capability> capabilities = 1;
*/
public Builder removeCapabilities(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableCapabilities().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableCapabilities() {
return internalGetMutableCapabilities().getMutableMap();
}
/**
* map<string, .common.Capability> capabilities = 1;
*/
public Builder putCapabilities(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configuration.Capability value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableCapabilities().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, .common.Capability> capabilities = 1;
*/
public Builder putAllCapabilities(
java.util.Map values) {
internalGetMutableCapabilities().getMutableMap()
.putAll(values);
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:common.Capabilities)
}
// @@protoc_insertion_point(class_scope:common.Capabilities)
private static final org.hyperledger.fabric.protos.common.Configuration.Capabilities DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configuration.Capabilities();
}
public static org.hyperledger.fabric.protos.common.Configuration.Capabilities getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Capabilities parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Capabilities(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Configuration.Capabilities getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CapabilityOrBuilder extends
// @@protoc_insertion_point(interface_extends:common.Capability)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* Capability is an empty message for the time being. It is defined as a protobuf
* message rather than a constant, so that we may extend capabilities with other fields
* if the need arises in the future. For the time being, a capability being in the
* capabilities map requires that that capability be supported.
*
*
* Protobuf type {@code common.Capability}
*/
public static final class Capability extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:common.Capability)
CapabilityOrBuilder {
private static final long serialVersionUID = 0L;
// Use Capability.newBuilder() to construct.
private Capability(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Capability() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Capability(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_Capability_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_Capability_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configuration.Capability.class, org.hyperledger.fabric.protos.common.Configuration.Capability.Builder.class);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.common.Configuration.Capability)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.common.Configuration.Capability other = (org.hyperledger.fabric.protos.common.Configuration.Capability) obj;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.common.Configuration.Capability parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configuration.Capability parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.Capability parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configuration.Capability parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.Capability parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configuration.Capability parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.Capability parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configuration.Capability parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.Capability parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configuration.Capability parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Configuration.Capability parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configuration.Capability parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configuration.Capability prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Capability is an empty message for the time being. It is defined as a protobuf
* message rather than a constant, so that we may extend capabilities with other fields
* if the need arises in the future. For the time being, a capability being in the
* capabilities map requires that that capability be supported.
*
*
* Protobuf type {@code common.Capability}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:common.Capability)
org.hyperledger.fabric.protos.common.Configuration.CapabilityOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_Capability_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_Capability_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configuration.Capability.class, org.hyperledger.fabric.protos.common.Configuration.Capability.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.common.Configuration.Capability.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_Capability_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Configuration.Capability getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.common.Configuration.Capability.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Configuration.Capability build() {
org.hyperledger.fabric.protos.common.Configuration.Capability result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Configuration.Capability buildPartial() {
org.hyperledger.fabric.protos.common.Configuration.Capability result = new org.hyperledger.fabric.protos.common.Configuration.Capability(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.common.Configuration.Capability) {
return mergeFrom((org.hyperledger.fabric.protos.common.Configuration.Capability)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configuration.Capability other) {
if (other == org.hyperledger.fabric.protos.common.Configuration.Capability.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.fabric.protos.common.Configuration.Capability parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.fabric.protos.common.Configuration.Capability) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:common.Capability)
}
// @@protoc_insertion_point(class_scope:common.Capability)
private static final org.hyperledger.fabric.protos.common.Configuration.Capability DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configuration.Capability();
}
public static org.hyperledger.fabric.protos.common.Configuration.Capability getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Capability parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Capability(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Configuration.Capability getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_common_HashingAlgorithm_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_common_HashingAlgorithm_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_common_BlockDataHashingStructure_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_common_BlockDataHashingStructure_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_common_OrdererAddresses_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_common_OrdererAddresses_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_common_Consortium_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_common_Consortium_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_common_Capabilities_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_common_Capabilities_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_common_Capabilities_CapabilitiesEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_common_Capabilities_CapabilitiesEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_common_Capability_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_common_Capability_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\032common/configuration.proto\022\006common\" \n\020" +
"HashingAlgorithm\022\014\n\004name\030\001 \001(\t\"*\n\031BlockD" +
"ataHashingStructure\022\r\n\005width\030\001 \001(\r\"%\n\020Or" +
"dererAddresses\022\021\n\taddresses\030\001 \003(\t\"\032\n\nCon" +
"sortium\022\014\n\004name\030\001 \001(\t\"\225\001\n\014Capabilities\022<" +
"\n\014capabilities\030\001 \003(\0132&.common.Capabiliti" +
"es.CapabilitiesEntry\032G\n\021CapabilitiesEntr" +
"y\022\013\n\003key\030\001 \001(\t\022!\n\005value\030\002 \001(\0132\022.common.C" +
"apability:\0028\001\"\014\n\nCapabilityBV\n$org.hyper" +
"ledger.fabric.protos.commonZ.github.com/" +
"hyperledger/fabric-protos-go/commonb\006pro" +
"to3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_common_HashingAlgorithm_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_common_HashingAlgorithm_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_common_HashingAlgorithm_descriptor,
new java.lang.String[] { "Name", });
internal_static_common_BlockDataHashingStructure_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_common_BlockDataHashingStructure_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_common_BlockDataHashingStructure_descriptor,
new java.lang.String[] { "Width", });
internal_static_common_OrdererAddresses_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_common_OrdererAddresses_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_common_OrdererAddresses_descriptor,
new java.lang.String[] { "Addresses", });
internal_static_common_Consortium_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_common_Consortium_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_common_Consortium_descriptor,
new java.lang.String[] { "Name", });
internal_static_common_Capabilities_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_common_Capabilities_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_common_Capabilities_descriptor,
new java.lang.String[] { "Capabilities", });
internal_static_common_Capabilities_CapabilitiesEntry_descriptor =
internal_static_common_Capabilities_descriptor.getNestedTypes().get(0);
internal_static_common_Capabilities_CapabilitiesEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_common_Capabilities_CapabilitiesEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_common_Capability_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_common_Capability_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_common_Capability_descriptor,
new java.lang.String[] { });
}
// @@protoc_insertion_point(outer_class_scope)
}