
org.hyperledger.fabric.protos.common.Configtx Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: common/configtx.proto
package org.hyperledger.fabric.protos.common;
public final class Configtx {
private Configtx() {}
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 ConfigEnvelopeOrBuilder extends
// @@protoc_insertion_point(interface_extends:common.ConfigEnvelope)
com.google.protobuf.MessageOrBuilder {
/**
*
* A marshaled Config structure
*
*
* .common.Config config = 1;
*/
boolean hasConfig();
/**
*
* A marshaled Config structure
*
*
* .common.Config config = 1;
*/
org.hyperledger.fabric.protos.common.Configtx.Config getConfig();
/**
*
* A marshaled Config structure
*
*
* .common.Config config = 1;
*/
org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder getConfigOrBuilder();
/**
*
* The last CONFIG_UPDATE message which generated this current configuration
*
*
* .common.Envelope last_update = 2;
*/
boolean hasLastUpdate();
/**
*
* The last CONFIG_UPDATE message which generated this current configuration
*
*
* .common.Envelope last_update = 2;
*/
org.hyperledger.fabric.protos.common.Common.Envelope getLastUpdate();
/**
*
* The last CONFIG_UPDATE message which generated this current configuration
*
*
* .common.Envelope last_update = 2;
*/
org.hyperledger.fabric.protos.common.Common.EnvelopeOrBuilder getLastUpdateOrBuilder();
}
/**
*
* ConfigEnvelope is designed to contain _all_ configuration for a chain with no dependency
* on previous configuration transactions.
* It is generated with the following scheme:
* 1. Retrieve the existing configuration
* 2. Note the config properties (ConfigValue, ConfigPolicy, ConfigGroup) to be modified
* 3. Add any intermediate ConfigGroups to the ConfigUpdate.read_set (sparsely)
* 4. Add any additional desired dependencies to ConfigUpdate.read_set (sparsely)
* 5. Modify the config properties, incrementing each version by 1, set them in the ConfigUpdate.write_set
* Note: any element not modified but specified should already be in the read_set, so may be specified sparsely
* 6. Create ConfigUpdate message and marshal it into ConfigUpdateEnvelope.update and encode the required signatures
* a) Each signature is of type ConfigSignature
* b) The ConfigSignature signature is over the concatenation of signature_header and the ConfigUpdate bytes (which includes a ChainHeader)
* 5. Submit new Config for ordering in Envelope signed by submitter
* a) The Envelope Payload has data set to the marshaled ConfigEnvelope
* b) The Envelope Payload has a header of type Header.Type.CONFIG_UPDATE
* The configuration manager will verify:
* 1. All items in the read_set exist at the read versions
* 2. All items in the write_set at a different version than, or not in, the read_set have been appropriately signed according to their mod_policy
* 3. The new configuration satisfies the ConfigSchema
*
*
* Protobuf type {@code common.ConfigEnvelope}
*/
public static final class ConfigEnvelope extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:common.ConfigEnvelope)
ConfigEnvelopeOrBuilder {
// Use ConfigEnvelope.newBuilder() to construct.
private ConfigEnvelope(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConfigEnvelope() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ConfigEnvelope(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
org.hyperledger.fabric.protos.common.Configtx.Config.Builder subBuilder = null;
if (config_ != null) {
subBuilder = config_.toBuilder();
}
config_ = input.readMessage(org.hyperledger.fabric.protos.common.Configtx.Config.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(config_);
config_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.hyperledger.fabric.protos.common.Common.Envelope.Builder subBuilder = null;
if (lastUpdate_ != null) {
subBuilder = lastUpdate_.toBuilder();
}
lastUpdate_ = input.readMessage(org.hyperledger.fabric.protos.common.Common.Envelope.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(lastUpdate_);
lastUpdate_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigEnvelope_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigEnvelope_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope.class, org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope.Builder.class);
}
public static final int CONFIG_FIELD_NUMBER = 1;
private org.hyperledger.fabric.protos.common.Configtx.Config config_;
/**
*
* A marshaled Config structure
*
*
* .common.Config config = 1;
*/
public boolean hasConfig() {
return config_ != null;
}
/**
*
* A marshaled Config structure
*
*
* .common.Config config = 1;
*/
public org.hyperledger.fabric.protos.common.Configtx.Config getConfig() {
return config_ == null ? org.hyperledger.fabric.protos.common.Configtx.Config.getDefaultInstance() : config_;
}
/**
*
* A marshaled Config structure
*
*
* .common.Config config = 1;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder getConfigOrBuilder() {
return getConfig();
}
public static final int LAST_UPDATE_FIELD_NUMBER = 2;
private org.hyperledger.fabric.protos.common.Common.Envelope lastUpdate_;
/**
*
* The last CONFIG_UPDATE message which generated this current configuration
*
*
* .common.Envelope last_update = 2;
*/
public boolean hasLastUpdate() {
return lastUpdate_ != null;
}
/**
*
* The last CONFIG_UPDATE message which generated this current configuration
*
*
* .common.Envelope last_update = 2;
*/
public org.hyperledger.fabric.protos.common.Common.Envelope getLastUpdate() {
return lastUpdate_ == null ? org.hyperledger.fabric.protos.common.Common.Envelope.getDefaultInstance() : lastUpdate_;
}
/**
*
* The last CONFIG_UPDATE message which generated this current configuration
*
*
* .common.Envelope last_update = 2;
*/
public org.hyperledger.fabric.protos.common.Common.EnvelopeOrBuilder getLastUpdateOrBuilder() {
return getLastUpdate();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (config_ != null) {
output.writeMessage(1, getConfig());
}
if (lastUpdate_ != null) {
output.writeMessage(2, getLastUpdate());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (config_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getConfig());
}
if (lastUpdate_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getLastUpdate());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope other = (org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope) obj;
boolean result = true;
result = result && (hasConfig() == other.hasConfig());
if (hasConfig()) {
result = result && getConfig()
.equals(other.getConfig());
}
result = result && (hasLastUpdate() == other.hasLastUpdate());
if (hasLastUpdate()) {
result = result && getLastUpdate()
.equals(other.getLastUpdate());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasConfig()) {
hash = (37 * hash) + CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getConfig().hashCode();
}
if (hasLastUpdate()) {
hash = (37 * hash) + LAST_UPDATE_FIELD_NUMBER;
hash = (53 * hash) + getLastUpdate().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope 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.Configtx.ConfigEnvelope parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope 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.Configtx.ConfigEnvelope parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope 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.Configtx.ConfigEnvelope parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope 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.Configtx.ConfigEnvelope 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.Configtx.ConfigEnvelope parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* ConfigEnvelope is designed to contain _all_ configuration for a chain with no dependency
* on previous configuration transactions.
* It is generated with the following scheme:
* 1. Retrieve the existing configuration
* 2. Note the config properties (ConfigValue, ConfigPolicy, ConfigGroup) to be modified
* 3. Add any intermediate ConfigGroups to the ConfigUpdate.read_set (sparsely)
* 4. Add any additional desired dependencies to ConfigUpdate.read_set (sparsely)
* 5. Modify the config properties, incrementing each version by 1, set them in the ConfigUpdate.write_set
* Note: any element not modified but specified should already be in the read_set, so may be specified sparsely
* 6. Create ConfigUpdate message and marshal it into ConfigUpdateEnvelope.update and encode the required signatures
* a) Each signature is of type ConfigSignature
* b) The ConfigSignature signature is over the concatenation of signature_header and the ConfigUpdate bytes (which includes a ChainHeader)
* 5. Submit new Config for ordering in Envelope signed by submitter
* a) The Envelope Payload has data set to the marshaled ConfigEnvelope
* b) The Envelope Payload has a header of type Header.Type.CONFIG_UPDATE
* The configuration manager will verify:
* 1. All items in the read_set exist at the read versions
* 2. All items in the write_set at a different version than, or not in, the read_set have been appropriately signed according to their mod_policy
* 3. The new configuration satisfies the ConfigSchema
*
*
* Protobuf type {@code common.ConfigEnvelope}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:common.ConfigEnvelope)
org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelopeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigEnvelope_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigEnvelope_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope.class, org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (configBuilder_ == null) {
config_ = null;
} else {
config_ = null;
configBuilder_ = null;
}
if (lastUpdateBuilder_ == null) {
lastUpdate_ = null;
} else {
lastUpdate_ = null;
lastUpdateBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigEnvelope_descriptor;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope.getDefaultInstance();
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope build() {
org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope buildPartial() {
org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope result = new org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope(this);
if (configBuilder_ == null) {
result.config_ = config_;
} else {
result.config_ = configBuilder_.build();
}
if (lastUpdateBuilder_ == null) {
result.lastUpdate_ = lastUpdate_;
} else {
result.lastUpdate_ = lastUpdateBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope) {
return mergeFrom((org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope other) {
if (other == org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope.getDefaultInstance()) return this;
if (other.hasConfig()) {
mergeConfig(other.getConfig());
}
if (other.hasLastUpdate()) {
mergeLastUpdate(other.getLastUpdate());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.hyperledger.fabric.protos.common.Configtx.Config config_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Configtx.Config, org.hyperledger.fabric.protos.common.Configtx.Config.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder> configBuilder_;
/**
*
* A marshaled Config structure
*
*
* .common.Config config = 1;
*/
public boolean hasConfig() {
return configBuilder_ != null || config_ != null;
}
/**
*
* A marshaled Config structure
*
*
* .common.Config config = 1;
*/
public org.hyperledger.fabric.protos.common.Configtx.Config getConfig() {
if (configBuilder_ == null) {
return config_ == null ? org.hyperledger.fabric.protos.common.Configtx.Config.getDefaultInstance() : config_;
} else {
return configBuilder_.getMessage();
}
}
/**
*
* A marshaled Config structure
*
*
* .common.Config config = 1;
*/
public Builder setConfig(org.hyperledger.fabric.protos.common.Configtx.Config value) {
if (configBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
config_ = value;
onChanged();
} else {
configBuilder_.setMessage(value);
}
return this;
}
/**
*
* A marshaled Config structure
*
*
* .common.Config config = 1;
*/
public Builder setConfig(
org.hyperledger.fabric.protos.common.Configtx.Config.Builder builderForValue) {
if (configBuilder_ == null) {
config_ = builderForValue.build();
onChanged();
} else {
configBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* A marshaled Config structure
*
*
* .common.Config config = 1;
*/
public Builder mergeConfig(org.hyperledger.fabric.protos.common.Configtx.Config value) {
if (configBuilder_ == null) {
if (config_ != null) {
config_ =
org.hyperledger.fabric.protos.common.Configtx.Config.newBuilder(config_).mergeFrom(value).buildPartial();
} else {
config_ = value;
}
onChanged();
} else {
configBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* A marshaled Config structure
*
*
* .common.Config config = 1;
*/
public Builder clearConfig() {
if (configBuilder_ == null) {
config_ = null;
onChanged();
} else {
config_ = null;
configBuilder_ = null;
}
return this;
}
/**
*
* A marshaled Config structure
*
*
* .common.Config config = 1;
*/
public org.hyperledger.fabric.protos.common.Configtx.Config.Builder getConfigBuilder() {
onChanged();
return getConfigFieldBuilder().getBuilder();
}
/**
*
* A marshaled Config structure
*
*
* .common.Config config = 1;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder getConfigOrBuilder() {
if (configBuilder_ != null) {
return configBuilder_.getMessageOrBuilder();
} else {
return config_ == null ?
org.hyperledger.fabric.protos.common.Configtx.Config.getDefaultInstance() : config_;
}
}
/**
*
* A marshaled Config structure
*
*
* .common.Config config = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Configtx.Config, org.hyperledger.fabric.protos.common.Configtx.Config.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder>
getConfigFieldBuilder() {
if (configBuilder_ == null) {
configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Configtx.Config, org.hyperledger.fabric.protos.common.Configtx.Config.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder>(
getConfig(),
getParentForChildren(),
isClean());
config_ = null;
}
return configBuilder_;
}
private org.hyperledger.fabric.protos.common.Common.Envelope lastUpdate_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Common.Envelope, org.hyperledger.fabric.protos.common.Common.Envelope.Builder, org.hyperledger.fabric.protos.common.Common.EnvelopeOrBuilder> lastUpdateBuilder_;
/**
*
* The last CONFIG_UPDATE message which generated this current configuration
*
*
* .common.Envelope last_update = 2;
*/
public boolean hasLastUpdate() {
return lastUpdateBuilder_ != null || lastUpdate_ != null;
}
/**
*
* The last CONFIG_UPDATE message which generated this current configuration
*
*
* .common.Envelope last_update = 2;
*/
public org.hyperledger.fabric.protos.common.Common.Envelope getLastUpdate() {
if (lastUpdateBuilder_ == null) {
return lastUpdate_ == null ? org.hyperledger.fabric.protos.common.Common.Envelope.getDefaultInstance() : lastUpdate_;
} else {
return lastUpdateBuilder_.getMessage();
}
}
/**
*
* The last CONFIG_UPDATE message which generated this current configuration
*
*
* .common.Envelope last_update = 2;
*/
public Builder setLastUpdate(org.hyperledger.fabric.protos.common.Common.Envelope value) {
if (lastUpdateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastUpdate_ = value;
onChanged();
} else {
lastUpdateBuilder_.setMessage(value);
}
return this;
}
/**
*
* The last CONFIG_UPDATE message which generated this current configuration
*
*
* .common.Envelope last_update = 2;
*/
public Builder setLastUpdate(
org.hyperledger.fabric.protos.common.Common.Envelope.Builder builderForValue) {
if (lastUpdateBuilder_ == null) {
lastUpdate_ = builderForValue.build();
onChanged();
} else {
lastUpdateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The last CONFIG_UPDATE message which generated this current configuration
*
*
* .common.Envelope last_update = 2;
*/
public Builder mergeLastUpdate(org.hyperledger.fabric.protos.common.Common.Envelope value) {
if (lastUpdateBuilder_ == null) {
if (lastUpdate_ != null) {
lastUpdate_ =
org.hyperledger.fabric.protos.common.Common.Envelope.newBuilder(lastUpdate_).mergeFrom(value).buildPartial();
} else {
lastUpdate_ = value;
}
onChanged();
} else {
lastUpdateBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The last CONFIG_UPDATE message which generated this current configuration
*
*
* .common.Envelope last_update = 2;
*/
public Builder clearLastUpdate() {
if (lastUpdateBuilder_ == null) {
lastUpdate_ = null;
onChanged();
} else {
lastUpdate_ = null;
lastUpdateBuilder_ = null;
}
return this;
}
/**
*
* The last CONFIG_UPDATE message which generated this current configuration
*
*
* .common.Envelope last_update = 2;
*/
public org.hyperledger.fabric.protos.common.Common.Envelope.Builder getLastUpdateBuilder() {
onChanged();
return getLastUpdateFieldBuilder().getBuilder();
}
/**
*
* The last CONFIG_UPDATE message which generated this current configuration
*
*
* .common.Envelope last_update = 2;
*/
public org.hyperledger.fabric.protos.common.Common.EnvelopeOrBuilder getLastUpdateOrBuilder() {
if (lastUpdateBuilder_ != null) {
return lastUpdateBuilder_.getMessageOrBuilder();
} else {
return lastUpdate_ == null ?
org.hyperledger.fabric.protos.common.Common.Envelope.getDefaultInstance() : lastUpdate_;
}
}
/**
*
* The last CONFIG_UPDATE message which generated this current configuration
*
*
* .common.Envelope last_update = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Common.Envelope, org.hyperledger.fabric.protos.common.Common.Envelope.Builder, org.hyperledger.fabric.protos.common.Common.EnvelopeOrBuilder>
getLastUpdateFieldBuilder() {
if (lastUpdateBuilder_ == null) {
lastUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Common.Envelope, org.hyperledger.fabric.protos.common.Common.Envelope.Builder, org.hyperledger.fabric.protos.common.Common.EnvelopeOrBuilder>(
getLastUpdate(),
getParentForChildren(),
isClean());
lastUpdate_ = null;
}
return lastUpdateBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:common.ConfigEnvelope)
}
// @@protoc_insertion_point(class_scope:common.ConfigEnvelope)
private static final org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope();
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ConfigEnvelope parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConfigEnvelope(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConfigGroupSchemaOrBuilder extends
// @@protoc_insertion_point(interface_extends:common.ConfigGroupSchema)
com.google.protobuf.MessageOrBuilder {
/**
* map<string, .common.ConfigGroupSchema> groups = 1;
*/
int getGroupsCount();
/**
* map<string, .common.ConfigGroupSchema> groups = 1;
*/
boolean containsGroups(
java.lang.String key);
/**
* Use {@link #getGroupsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getGroups();
/**
* map<string, .common.ConfigGroupSchema> groups = 1;
*/
java.util.Map
getGroupsMap();
/**
* map<string, .common.ConfigGroupSchema> groups = 1;
*/
org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema getGroupsOrDefault(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema defaultValue);
/**
* map<string, .common.ConfigGroupSchema> groups = 1;
*/
org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema getGroupsOrThrow(
java.lang.String key);
/**
* map<string, .common.ConfigValueSchema> values = 2;
*/
int getValuesCount();
/**
* map<string, .common.ConfigValueSchema> values = 2;
*/
boolean containsValues(
java.lang.String key);
/**
* Use {@link #getValuesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getValues();
/**
* map<string, .common.ConfigValueSchema> values = 2;
*/
java.util.Map
getValuesMap();
/**
* map<string, .common.ConfigValueSchema> values = 2;
*/
org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema getValuesOrDefault(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema defaultValue);
/**
* map<string, .common.ConfigValueSchema> values = 2;
*/
org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema getValuesOrThrow(
java.lang.String key);
/**
* map<string, .common.ConfigPolicySchema> policies = 3;
*/
int getPoliciesCount();
/**
* map<string, .common.ConfigPolicySchema> policies = 3;
*/
boolean containsPolicies(
java.lang.String key);
/**
* Use {@link #getPoliciesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getPolicies();
/**
* map<string, .common.ConfigPolicySchema> policies = 3;
*/
java.util.Map
getPoliciesMap();
/**
* map<string, .common.ConfigPolicySchema> policies = 3;
*/
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema getPoliciesOrDefault(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema defaultValue);
/**
* map<string, .common.ConfigPolicySchema> policies = 3;
*/
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema getPoliciesOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code common.ConfigGroupSchema}
*/
public static final class ConfigGroupSchema extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:common.ConfigGroupSchema)
ConfigGroupSchemaOrBuilder {
// Use ConfigGroupSchema.newBuilder() to construct.
private ConfigGroupSchema(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConfigGroupSchema() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ConfigGroupSchema(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
groups_ = com.google.protobuf.MapField.newMapField(
GroupsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
groups__ = input.readMessage(
GroupsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
groups_.getMutableMap().put(
groups__.getKey(), groups__.getValue());
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
values_ = com.google.protobuf.MapField.newMapField(
ValuesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
values__ = input.readMessage(
ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
values_.getMutableMap().put(
values__.getKey(), values__.getValue());
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
policies_ = com.google.protobuf.MapField.newMapField(
PoliciesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000004;
}
com.google.protobuf.MapEntry
policies__ = input.readMessage(
PoliciesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
policies_.getMutableMap().put(
policies__.getKey(), policies__.getValue());
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroupSchema_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetGroups();
case 2:
return internalGetValues();
case 3:
return internalGetPolicies();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroupSchema_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema.class, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema.Builder.class);
}
public static final int GROUPS_FIELD_NUMBER = 1;
private static final class GroupsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroupSchema_GroupsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema> groups_;
private com.google.protobuf.MapField
internalGetGroups() {
if (groups_ == null) {
return com.google.protobuf.MapField.emptyMapField(
GroupsDefaultEntryHolder.defaultEntry);
}
return groups_;
}
public int getGroupsCount() {
return internalGetGroups().getMap().size();
}
/**
* map<string, .common.ConfigGroupSchema> groups = 1;
*/
public boolean containsGroups(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetGroups().getMap().containsKey(key);
}
/**
* Use {@link #getGroupsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getGroups() {
return getGroupsMap();
}
/**
* map<string, .common.ConfigGroupSchema> groups = 1;
*/
public java.util.Map getGroupsMap() {
return internalGetGroups().getMap();
}
/**
* map<string, .common.ConfigGroupSchema> groups = 1;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema getGroupsOrDefault(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetGroups().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .common.ConfigGroupSchema> groups = 1;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema getGroupsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetGroups().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int VALUES_FIELD_NUMBER = 2;
private static final class ValuesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroupSchema_ValuesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema> values_;
private com.google.protobuf.MapField
internalGetValues() {
if (values_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ValuesDefaultEntryHolder.defaultEntry);
}
return values_;
}
public int getValuesCount() {
return internalGetValues().getMap().size();
}
/**
* map<string, .common.ConfigValueSchema> values = 2;
*/
public boolean containsValues(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetValues().getMap().containsKey(key);
}
/**
* Use {@link #getValuesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getValues() {
return getValuesMap();
}
/**
* map<string, .common.ConfigValueSchema> values = 2;
*/
public java.util.Map getValuesMap() {
return internalGetValues().getMap();
}
/**
* map<string, .common.ConfigValueSchema> values = 2;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema getValuesOrDefault(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetValues().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .common.ConfigValueSchema> values = 2;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema getValuesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetValues().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int POLICIES_FIELD_NUMBER = 3;
private static final class PoliciesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroupSchema_PoliciesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema> policies_;
private com.google.protobuf.MapField
internalGetPolicies() {
if (policies_ == null) {
return com.google.protobuf.MapField.emptyMapField(
PoliciesDefaultEntryHolder.defaultEntry);
}
return policies_;
}
public int getPoliciesCount() {
return internalGetPolicies().getMap().size();
}
/**
* map<string, .common.ConfigPolicySchema> policies = 3;
*/
public boolean containsPolicies(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetPolicies().getMap().containsKey(key);
}
/**
* Use {@link #getPoliciesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getPolicies() {
return getPoliciesMap();
}
/**
* map<string, .common.ConfigPolicySchema> policies = 3;
*/
public java.util.Map getPoliciesMap() {
return internalGetPolicies().getMap();
}
/**
* map<string, .common.ConfigPolicySchema> policies = 3;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema getPoliciesOrDefault(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetPolicies().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .common.ConfigPolicySchema> policies = 3;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema getPoliciesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetPolicies().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetGroups(),
GroupsDefaultEntryHolder.defaultEntry,
1);
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetValues(),
ValuesDefaultEntryHolder.defaultEntry,
2);
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetPolicies(),
PoliciesDefaultEntryHolder.defaultEntry,
3);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetGroups().getMap().entrySet()) {
com.google.protobuf.MapEntry
groups__ = GroupsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, groups__);
}
for (java.util.Map.Entry entry
: internalGetValues().getMap().entrySet()) {
com.google.protobuf.MapEntry
values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, values__);
}
for (java.util.Map.Entry entry
: internalGetPolicies().getMap().entrySet()) {
com.google.protobuf.MapEntry
policies__ = PoliciesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, policies__);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema other = (org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema) obj;
boolean result = true;
result = result && internalGetGroups().equals(
other.internalGetGroups());
result = result && internalGetValues().equals(
other.internalGetValues());
result = result && internalGetPolicies().equals(
other.internalGetPolicies());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (!internalGetGroups().getMap().isEmpty()) {
hash = (37 * hash) + GROUPS_FIELD_NUMBER;
hash = (53 * hash) + internalGetGroups().hashCode();
}
if (!internalGetValues().getMap().isEmpty()) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + internalGetValues().hashCode();
}
if (!internalGetPolicies().getMap().isEmpty()) {
hash = (37 * hash) + POLICIES_FIELD_NUMBER;
hash = (53 * hash) + internalGetPolicies().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema 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.Configtx.ConfigGroupSchema parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema 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.Configtx.ConfigGroupSchema parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema 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.Configtx.ConfigGroupSchema parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema 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.Configtx.ConfigGroupSchema 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.Configtx.ConfigGroupSchema parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code common.ConfigGroupSchema}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:common.ConfigGroupSchema)
org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchemaOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroupSchema_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetGroups();
case 2:
return internalGetValues();
case 3:
return internalGetPolicies();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableGroups();
case 2:
return internalGetMutableValues();
case 3:
return internalGetMutablePolicies();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroupSchema_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema.class, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
internalGetMutableGroups().clear();
internalGetMutableValues().clear();
internalGetMutablePolicies().clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroupSchema_descriptor;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema.getDefaultInstance();
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema build() {
org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema buildPartial() {
org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema result = new org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema(this);
int from_bitField0_ = bitField0_;
result.groups_ = internalGetGroups();
result.groups_.makeImmutable();
result.values_ = internalGetValues();
result.values_.makeImmutable();
result.policies_ = internalGetPolicies();
result.policies_.makeImmutable();
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema) {
return mergeFrom((org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema other) {
if (other == org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema.getDefaultInstance()) return this;
internalGetMutableGroups().mergeFrom(
other.internalGetGroups());
internalGetMutableValues().mergeFrom(
other.internalGetValues());
internalGetMutablePolicies().mergeFrom(
other.internalGetPolicies());
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema) 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.Configtx.ConfigGroupSchema> groups_;
private com.google.protobuf.MapField
internalGetGroups() {
if (groups_ == null) {
return com.google.protobuf.MapField.emptyMapField(
GroupsDefaultEntryHolder.defaultEntry);
}
return groups_;
}
private com.google.protobuf.MapField
internalGetMutableGroups() {
onChanged();;
if (groups_ == null) {
groups_ = com.google.protobuf.MapField.newMapField(
GroupsDefaultEntryHolder.defaultEntry);
}
if (!groups_.isMutable()) {
groups_ = groups_.copy();
}
return groups_;
}
public int getGroupsCount() {
return internalGetGroups().getMap().size();
}
/**
* map<string, .common.ConfigGroupSchema> groups = 1;
*/
public boolean containsGroups(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetGroups().getMap().containsKey(key);
}
/**
* Use {@link #getGroupsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getGroups() {
return getGroupsMap();
}
/**
* map<string, .common.ConfigGroupSchema> groups = 1;
*/
public java.util.Map getGroupsMap() {
return internalGetGroups().getMap();
}
/**
* map<string, .common.ConfigGroupSchema> groups = 1;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema getGroupsOrDefault(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetGroups().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .common.ConfigGroupSchema> groups = 1;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema getGroupsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetGroups().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearGroups() {
internalGetMutableGroups().getMutableMap()
.clear();
return this;
}
/**
* map<string, .common.ConfigGroupSchema> groups = 1;
*/
public Builder removeGroups(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableGroups().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableGroups() {
return internalGetMutableGroups().getMutableMap();
}
/**
* map<string, .common.ConfigGroupSchema> groups = 1;
*/
public Builder putGroups(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableGroups().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, .common.ConfigGroupSchema> groups = 1;
*/
public Builder putAllGroups(
java.util.Map values) {
internalGetMutableGroups().getMutableMap()
.putAll(values);
return this;
}
private com.google.protobuf.MapField<
java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema> values_;
private com.google.protobuf.MapField
internalGetValues() {
if (values_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ValuesDefaultEntryHolder.defaultEntry);
}
return values_;
}
private com.google.protobuf.MapField
internalGetMutableValues() {
onChanged();;
if (values_ == null) {
values_ = com.google.protobuf.MapField.newMapField(
ValuesDefaultEntryHolder.defaultEntry);
}
if (!values_.isMutable()) {
values_ = values_.copy();
}
return values_;
}
public int getValuesCount() {
return internalGetValues().getMap().size();
}
/**
* map<string, .common.ConfigValueSchema> values = 2;
*/
public boolean containsValues(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetValues().getMap().containsKey(key);
}
/**
* Use {@link #getValuesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getValues() {
return getValuesMap();
}
/**
* map<string, .common.ConfigValueSchema> values = 2;
*/
public java.util.Map getValuesMap() {
return internalGetValues().getMap();
}
/**
* map<string, .common.ConfigValueSchema> values = 2;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema getValuesOrDefault(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetValues().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .common.ConfigValueSchema> values = 2;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema getValuesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetValues().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearValues() {
internalGetMutableValues().getMutableMap()
.clear();
return this;
}
/**
* map<string, .common.ConfigValueSchema> values = 2;
*/
public Builder removeValues(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableValues().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableValues() {
return internalGetMutableValues().getMutableMap();
}
/**
* map<string, .common.ConfigValueSchema> values = 2;
*/
public Builder putValues(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableValues().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, .common.ConfigValueSchema> values = 2;
*/
public Builder putAllValues(
java.util.Map values) {
internalGetMutableValues().getMutableMap()
.putAll(values);
return this;
}
private com.google.protobuf.MapField<
java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema> policies_;
private com.google.protobuf.MapField
internalGetPolicies() {
if (policies_ == null) {
return com.google.protobuf.MapField.emptyMapField(
PoliciesDefaultEntryHolder.defaultEntry);
}
return policies_;
}
private com.google.protobuf.MapField
internalGetMutablePolicies() {
onChanged();;
if (policies_ == null) {
policies_ = com.google.protobuf.MapField.newMapField(
PoliciesDefaultEntryHolder.defaultEntry);
}
if (!policies_.isMutable()) {
policies_ = policies_.copy();
}
return policies_;
}
public int getPoliciesCount() {
return internalGetPolicies().getMap().size();
}
/**
* map<string, .common.ConfigPolicySchema> policies = 3;
*/
public boolean containsPolicies(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetPolicies().getMap().containsKey(key);
}
/**
* Use {@link #getPoliciesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getPolicies() {
return getPoliciesMap();
}
/**
* map<string, .common.ConfigPolicySchema> policies = 3;
*/
public java.util.Map getPoliciesMap() {
return internalGetPolicies().getMap();
}
/**
* map<string, .common.ConfigPolicySchema> policies = 3;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema getPoliciesOrDefault(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetPolicies().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .common.ConfigPolicySchema> policies = 3;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema getPoliciesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetPolicies().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearPolicies() {
internalGetMutablePolicies().getMutableMap()
.clear();
return this;
}
/**
* map<string, .common.ConfigPolicySchema> policies = 3;
*/
public Builder removePolicies(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutablePolicies().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutablePolicies() {
return internalGetMutablePolicies().getMutableMap();
}
/**
* map<string, .common.ConfigPolicySchema> policies = 3;
*/
public Builder putPolicies(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutablePolicies().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, .common.ConfigPolicySchema> policies = 3;
*/
public Builder putAllPolicies(
java.util.Map values) {
internalGetMutablePolicies().getMutableMap()
.putAll(values);
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:common.ConfigGroupSchema)
}
// @@protoc_insertion_point(class_scope:common.ConfigGroupSchema)
private static final org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema();
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ConfigGroupSchema parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConfigGroupSchema(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConfigValueSchemaOrBuilder extends
// @@protoc_insertion_point(interface_extends:common.ConfigValueSchema)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code common.ConfigValueSchema}
*/
public static final class ConfigValueSchema extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:common.ConfigValueSchema)
ConfigValueSchemaOrBuilder {
// Use ConfigValueSchema.newBuilder() to construct.
private ConfigValueSchema(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConfigValueSchema() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ConfigValueSchema(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigValueSchema_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigValueSchema_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema.class, org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema.Builder.class);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema other = (org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema) obj;
boolean result = true;
return result;
}
@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.Configtx.ConfigValueSchema parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema 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.Configtx.ConfigValueSchema parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema 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.Configtx.ConfigValueSchema parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema 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.Configtx.ConfigValueSchema parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema 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.Configtx.ConfigValueSchema 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.Configtx.ConfigValueSchema parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code common.ConfigValueSchema}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:common.ConfigValueSchema)
org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchemaOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigValueSchema_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigValueSchema_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema.class, org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigValueSchema_descriptor;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema.getDefaultInstance();
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema build() {
org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema buildPartial() {
org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema result = new org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema) {
return mergeFrom((org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema other) {
if (other == org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema.getDefaultInstance()) return this;
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:common.ConfigValueSchema)
}
// @@protoc_insertion_point(class_scope:common.ConfigValueSchema)
private static final org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema();
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ConfigValueSchema parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConfigValueSchema(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConfigPolicySchemaOrBuilder extends
// @@protoc_insertion_point(interface_extends:common.ConfigPolicySchema)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code common.ConfigPolicySchema}
*/
public static final class ConfigPolicySchema extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:common.ConfigPolicySchema)
ConfigPolicySchemaOrBuilder {
// Use ConfigPolicySchema.newBuilder() to construct.
private ConfigPolicySchema(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConfigPolicySchema() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ConfigPolicySchema(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigPolicySchema_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigPolicySchema_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema.class, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema.Builder.class);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema other = (org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema) obj;
boolean result = true;
return result;
}
@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.Configtx.ConfigPolicySchema parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema 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.Configtx.ConfigPolicySchema parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema 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.Configtx.ConfigPolicySchema parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema 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.Configtx.ConfigPolicySchema parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema 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.Configtx.ConfigPolicySchema 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.Configtx.ConfigPolicySchema parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code common.ConfigPolicySchema}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:common.ConfigPolicySchema)
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchemaOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigPolicySchema_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigPolicySchema_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema.class, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigPolicySchema_descriptor;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema.getDefaultInstance();
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema build() {
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema buildPartial() {
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema result = new org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema) {
return mergeFrom((org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema other) {
if (other == org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema.getDefaultInstance()) return this;
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:common.ConfigPolicySchema)
}
// @@protoc_insertion_point(class_scope:common.ConfigPolicySchema)
private static final org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema();
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ConfigPolicySchema parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConfigPolicySchema(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:common.Config)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 sequence = 1;
*/
long getSequence();
/**
* .common.ConfigGroup channel_group = 2;
*/
boolean hasChannelGroup();
/**
* .common.ConfigGroup channel_group = 2;
*/
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getChannelGroup();
/**
* .common.ConfigGroup channel_group = 2;
*/
org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder getChannelGroupOrBuilder();
}
/**
*
* Config represents the config for a particular channel
*
*
* Protobuf type {@code common.Config}
*/
public static final class Config extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:common.Config)
ConfigOrBuilder {
// Use Config.newBuilder() to construct.
private Config(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Config() {
sequence_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Config(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
sequence_ = input.readUInt64();
break;
}
case 18: {
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder subBuilder = null;
if (channelGroup_ != null) {
subBuilder = channelGroup_.toBuilder();
}
channelGroup_ = input.readMessage(org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(channelGroup_);
channelGroup_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_Config_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_Config_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configtx.Config.class, org.hyperledger.fabric.protos.common.Configtx.Config.Builder.class);
}
public static final int SEQUENCE_FIELD_NUMBER = 1;
private long sequence_;
/**
* uint64 sequence = 1;
*/
public long getSequence() {
return sequence_;
}
public static final int CHANNEL_GROUP_FIELD_NUMBER = 2;
private org.hyperledger.fabric.protos.common.Configtx.ConfigGroup channelGroup_;
/**
* .common.ConfigGroup channel_group = 2;
*/
public boolean hasChannelGroup() {
return channelGroup_ != null;
}
/**
* .common.ConfigGroup channel_group = 2;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getChannelGroup() {
return channelGroup_ == null ? org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.getDefaultInstance() : channelGroup_;
}
/**
* .common.ConfigGroup channel_group = 2;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder getChannelGroupOrBuilder() {
return getChannelGroup();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (sequence_ != 0L) {
output.writeUInt64(1, sequence_);
}
if (channelGroup_ != null) {
output.writeMessage(2, getChannelGroup());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (sequence_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, sequence_);
}
if (channelGroup_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getChannelGroup());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.common.Configtx.Config)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.common.Configtx.Config other = (org.hyperledger.fabric.protos.common.Configtx.Config) obj;
boolean result = true;
result = result && (getSequence()
== other.getSequence());
result = result && (hasChannelGroup() == other.hasChannelGroup());
if (hasChannelGroup()) {
result = result && getChannelGroup()
.equals(other.getChannelGroup());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SEQUENCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSequence());
if (hasChannelGroup()) {
hash = (37 * hash) + CHANNEL_GROUP_FIELD_NUMBER;
hash = (53 * hash) + getChannelGroup().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.common.Configtx.Config parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configtx.Config 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.Configtx.Config parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configtx.Config 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.Configtx.Config parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configtx.Config 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.Configtx.Config parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configtx.Config 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.Configtx.Config 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.Configtx.Config parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configtx.Config prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Config represents the config for a particular channel
*
*
* Protobuf type {@code common.Config}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:common.Config)
org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_Config_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_Config_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configtx.Config.class, org.hyperledger.fabric.protos.common.Configtx.Config.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.common.Configtx.Config.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
sequence_ = 0L;
if (channelGroupBuilder_ == null) {
channelGroup_ = null;
} else {
channelGroup_ = null;
channelGroupBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_Config_descriptor;
}
public org.hyperledger.fabric.protos.common.Configtx.Config getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.common.Configtx.Config.getDefaultInstance();
}
public org.hyperledger.fabric.protos.common.Configtx.Config build() {
org.hyperledger.fabric.protos.common.Configtx.Config result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.fabric.protos.common.Configtx.Config buildPartial() {
org.hyperledger.fabric.protos.common.Configtx.Config result = new org.hyperledger.fabric.protos.common.Configtx.Config(this);
result.sequence_ = sequence_;
if (channelGroupBuilder_ == null) {
result.channelGroup_ = channelGroup_;
} else {
result.channelGroup_ = channelGroupBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.common.Configtx.Config) {
return mergeFrom((org.hyperledger.fabric.protos.common.Configtx.Config)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configtx.Config other) {
if (other == org.hyperledger.fabric.protos.common.Configtx.Config.getDefaultInstance()) return this;
if (other.getSequence() != 0L) {
setSequence(other.getSequence());
}
if (other.hasChannelGroup()) {
mergeChannelGroup(other.getChannelGroup());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.fabric.protos.common.Configtx.Config parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.fabric.protos.common.Configtx.Config) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long sequence_ ;
/**
* uint64 sequence = 1;
*/
public long getSequence() {
return sequence_;
}
/**
* uint64 sequence = 1;
*/
public Builder setSequence(long value) {
sequence_ = value;
onChanged();
return this;
}
/**
* uint64 sequence = 1;
*/
public Builder clearSequence() {
sequence_ = 0L;
onChanged();
return this;
}
private org.hyperledger.fabric.protos.common.Configtx.ConfigGroup channelGroup_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder> channelGroupBuilder_;
/**
* .common.ConfigGroup channel_group = 2;
*/
public boolean hasChannelGroup() {
return channelGroupBuilder_ != null || channelGroup_ != null;
}
/**
* .common.ConfigGroup channel_group = 2;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getChannelGroup() {
if (channelGroupBuilder_ == null) {
return channelGroup_ == null ? org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.getDefaultInstance() : channelGroup_;
} else {
return channelGroupBuilder_.getMessage();
}
}
/**
* .common.ConfigGroup channel_group = 2;
*/
public Builder setChannelGroup(org.hyperledger.fabric.protos.common.Configtx.ConfigGroup value) {
if (channelGroupBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
channelGroup_ = value;
onChanged();
} else {
channelGroupBuilder_.setMessage(value);
}
return this;
}
/**
* .common.ConfigGroup channel_group = 2;
*/
public Builder setChannelGroup(
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder builderForValue) {
if (channelGroupBuilder_ == null) {
channelGroup_ = builderForValue.build();
onChanged();
} else {
channelGroupBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .common.ConfigGroup channel_group = 2;
*/
public Builder mergeChannelGroup(org.hyperledger.fabric.protos.common.Configtx.ConfigGroup value) {
if (channelGroupBuilder_ == null) {
if (channelGroup_ != null) {
channelGroup_ =
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.newBuilder(channelGroup_).mergeFrom(value).buildPartial();
} else {
channelGroup_ = value;
}
onChanged();
} else {
channelGroupBuilder_.mergeFrom(value);
}
return this;
}
/**
* .common.ConfigGroup channel_group = 2;
*/
public Builder clearChannelGroup() {
if (channelGroupBuilder_ == null) {
channelGroup_ = null;
onChanged();
} else {
channelGroup_ = null;
channelGroupBuilder_ = null;
}
return this;
}
/**
* .common.ConfigGroup channel_group = 2;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder getChannelGroupBuilder() {
onChanged();
return getChannelGroupFieldBuilder().getBuilder();
}
/**
* .common.ConfigGroup channel_group = 2;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder getChannelGroupOrBuilder() {
if (channelGroupBuilder_ != null) {
return channelGroupBuilder_.getMessageOrBuilder();
} else {
return channelGroup_ == null ?
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.getDefaultInstance() : channelGroup_;
}
}
/**
* .common.ConfigGroup channel_group = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder>
getChannelGroupFieldBuilder() {
if (channelGroupBuilder_ == null) {
channelGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder>(
getChannelGroup(),
getParentForChildren(),
isClean());
channelGroup_ = null;
}
return channelGroupBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:common.Config)
}
// @@protoc_insertion_point(class_scope:common.Config)
private static final org.hyperledger.fabric.protos.common.Configtx.Config DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configtx.Config();
}
public static org.hyperledger.fabric.protos.common.Configtx.Config getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Config parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Config(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.fabric.protos.common.Configtx.Config getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConfigUpdateEnvelopeOrBuilder extends
// @@protoc_insertion_point(interface_extends:common.ConfigUpdateEnvelope)
com.google.protobuf.MessageOrBuilder {
/**
*
* A marshaled ConfigUpdate structure
*
*
* bytes config_update = 1;
*/
com.google.protobuf.ByteString getConfigUpdate();
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
java.util.List
getSignaturesList();
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
org.hyperledger.fabric.protos.common.Configtx.ConfigSignature getSignatures(int index);
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
int getSignaturesCount();
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
java.util.List extends org.hyperledger.fabric.protos.common.Configtx.ConfigSignatureOrBuilder>
getSignaturesOrBuilderList();
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
org.hyperledger.fabric.protos.common.Configtx.ConfigSignatureOrBuilder getSignaturesOrBuilder(
int index);
}
/**
* Protobuf type {@code common.ConfigUpdateEnvelope}
*/
public static final class ConfigUpdateEnvelope extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:common.ConfigUpdateEnvelope)
ConfigUpdateEnvelopeOrBuilder {
// Use ConfigUpdateEnvelope.newBuilder() to construct.
private ConfigUpdateEnvelope(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConfigUpdateEnvelope() {
configUpdate_ = com.google.protobuf.ByteString.EMPTY;
signatures_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ConfigUpdateEnvelope(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
configUpdate_ = input.readBytes();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
signatures_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
signatures_.add(
input.readMessage(org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
signatures_ = java.util.Collections.unmodifiableList(signatures_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigUpdateEnvelope_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigUpdateEnvelope_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope.class, org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope.Builder.class);
}
private int bitField0_;
public static final int CONFIG_UPDATE_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString configUpdate_;
/**
*
* A marshaled ConfigUpdate structure
*
*
* bytes config_update = 1;
*/
public com.google.protobuf.ByteString getConfigUpdate() {
return configUpdate_;
}
public static final int SIGNATURES_FIELD_NUMBER = 2;
private java.util.List signatures_;
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
public java.util.List getSignaturesList() {
return signatures_;
}
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
public java.util.List extends org.hyperledger.fabric.protos.common.Configtx.ConfigSignatureOrBuilder>
getSignaturesOrBuilderList() {
return signatures_;
}
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
public int getSignaturesCount() {
return signatures_.size();
}
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigSignature getSignatures(int index) {
return signatures_.get(index);
}
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigSignatureOrBuilder getSignaturesOrBuilder(
int index) {
return signatures_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!configUpdate_.isEmpty()) {
output.writeBytes(1, configUpdate_);
}
for (int i = 0; i < signatures_.size(); i++) {
output.writeMessage(2, signatures_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!configUpdate_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, configUpdate_);
}
for (int i = 0; i < signatures_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, signatures_.get(i));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope other = (org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope) obj;
boolean result = true;
result = result && getConfigUpdate()
.equals(other.getConfigUpdate());
result = result && getSignaturesList()
.equals(other.getSignaturesList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CONFIG_UPDATE_FIELD_NUMBER;
hash = (53 * hash) + getConfigUpdate().hashCode();
if (getSignaturesCount() > 0) {
hash = (37 * hash) + SIGNATURES_FIELD_NUMBER;
hash = (53 * hash) + getSignaturesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope 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.Configtx.ConfigUpdateEnvelope parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope 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.Configtx.ConfigUpdateEnvelope parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope 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.Configtx.ConfigUpdateEnvelope parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope 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.Configtx.ConfigUpdateEnvelope 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.Configtx.ConfigUpdateEnvelope parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code common.ConfigUpdateEnvelope}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:common.ConfigUpdateEnvelope)
org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelopeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigUpdateEnvelope_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigUpdateEnvelope_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope.class, org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSignaturesFieldBuilder();
}
}
public Builder clear() {
super.clear();
configUpdate_ = com.google.protobuf.ByteString.EMPTY;
if (signaturesBuilder_ == null) {
signatures_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
signaturesBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigUpdateEnvelope_descriptor;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope.getDefaultInstance();
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope build() {
org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope buildPartial() {
org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope result = new org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.configUpdate_ = configUpdate_;
if (signaturesBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
signatures_ = java.util.Collections.unmodifiableList(signatures_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.signatures_ = signatures_;
} else {
result.signatures_ = signaturesBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope) {
return mergeFrom((org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope other) {
if (other == org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope.getDefaultInstance()) return this;
if (other.getConfigUpdate() != com.google.protobuf.ByteString.EMPTY) {
setConfigUpdate(other.getConfigUpdate());
}
if (signaturesBuilder_ == null) {
if (!other.signatures_.isEmpty()) {
if (signatures_.isEmpty()) {
signatures_ = other.signatures_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureSignaturesIsMutable();
signatures_.addAll(other.signatures_);
}
onChanged();
}
} else {
if (!other.signatures_.isEmpty()) {
if (signaturesBuilder_.isEmpty()) {
signaturesBuilder_.dispose();
signaturesBuilder_ = null;
signatures_ = other.signatures_;
bitField0_ = (bitField0_ & ~0x00000002);
signaturesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSignaturesFieldBuilder() : null;
} else {
signaturesBuilder_.addAllMessages(other.signatures_);
}
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString configUpdate_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* A marshaled ConfigUpdate structure
*
*
* bytes config_update = 1;
*/
public com.google.protobuf.ByteString getConfigUpdate() {
return configUpdate_;
}
/**
*
* A marshaled ConfigUpdate structure
*
*
* bytes config_update = 1;
*/
public Builder setConfigUpdate(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
configUpdate_ = value;
onChanged();
return this;
}
/**
*
* A marshaled ConfigUpdate structure
*
*
* bytes config_update = 1;
*/
public Builder clearConfigUpdate() {
configUpdate_ = getDefaultInstance().getConfigUpdate();
onChanged();
return this;
}
private java.util.List signatures_ =
java.util.Collections.emptyList();
private void ensureSignaturesIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
signatures_ = new java.util.ArrayList(signatures_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.hyperledger.fabric.protos.common.Configtx.ConfigSignature, org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigSignatureOrBuilder> signaturesBuilder_;
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
public java.util.List getSignaturesList() {
if (signaturesBuilder_ == null) {
return java.util.Collections.unmodifiableList(signatures_);
} else {
return signaturesBuilder_.getMessageList();
}
}
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
public int getSignaturesCount() {
if (signaturesBuilder_ == null) {
return signatures_.size();
} else {
return signaturesBuilder_.getCount();
}
}
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigSignature getSignatures(int index) {
if (signaturesBuilder_ == null) {
return signatures_.get(index);
} else {
return signaturesBuilder_.getMessage(index);
}
}
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
public Builder setSignatures(
int index, org.hyperledger.fabric.protos.common.Configtx.ConfigSignature value) {
if (signaturesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSignaturesIsMutable();
signatures_.set(index, value);
onChanged();
} else {
signaturesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
public Builder setSignatures(
int index, org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.Builder builderForValue) {
if (signaturesBuilder_ == null) {
ensureSignaturesIsMutable();
signatures_.set(index, builderForValue.build());
onChanged();
} else {
signaturesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
public Builder addSignatures(org.hyperledger.fabric.protos.common.Configtx.ConfigSignature value) {
if (signaturesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSignaturesIsMutable();
signatures_.add(value);
onChanged();
} else {
signaturesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
public Builder addSignatures(
int index, org.hyperledger.fabric.protos.common.Configtx.ConfigSignature value) {
if (signaturesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSignaturesIsMutable();
signatures_.add(index, value);
onChanged();
} else {
signaturesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
public Builder addSignatures(
org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.Builder builderForValue) {
if (signaturesBuilder_ == null) {
ensureSignaturesIsMutable();
signatures_.add(builderForValue.build());
onChanged();
} else {
signaturesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
public Builder addSignatures(
int index, org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.Builder builderForValue) {
if (signaturesBuilder_ == null) {
ensureSignaturesIsMutable();
signatures_.add(index, builderForValue.build());
onChanged();
} else {
signaturesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
public Builder addAllSignatures(
java.lang.Iterable extends org.hyperledger.fabric.protos.common.Configtx.ConfigSignature> values) {
if (signaturesBuilder_ == null) {
ensureSignaturesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, signatures_);
onChanged();
} else {
signaturesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
public Builder clearSignatures() {
if (signaturesBuilder_ == null) {
signatures_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
signaturesBuilder_.clear();
}
return this;
}
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
public Builder removeSignatures(int index) {
if (signaturesBuilder_ == null) {
ensureSignaturesIsMutable();
signatures_.remove(index);
onChanged();
} else {
signaturesBuilder_.remove(index);
}
return this;
}
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.Builder getSignaturesBuilder(
int index) {
return getSignaturesFieldBuilder().getBuilder(index);
}
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigSignatureOrBuilder getSignaturesOrBuilder(
int index) {
if (signaturesBuilder_ == null) {
return signatures_.get(index); } else {
return signaturesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
public java.util.List extends org.hyperledger.fabric.protos.common.Configtx.ConfigSignatureOrBuilder>
getSignaturesOrBuilderList() {
if (signaturesBuilder_ != null) {
return signaturesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(signatures_);
}
}
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.Builder addSignaturesBuilder() {
return getSignaturesFieldBuilder().addBuilder(
org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.getDefaultInstance());
}
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.Builder addSignaturesBuilder(
int index) {
return getSignaturesFieldBuilder().addBuilder(
index, org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.getDefaultInstance());
}
/**
*
* Signatures over the config_update
*
*
* repeated .common.ConfigSignature signatures = 2;
*/
public java.util.List
getSignaturesBuilderList() {
return getSignaturesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.hyperledger.fabric.protos.common.Configtx.ConfigSignature, org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigSignatureOrBuilder>
getSignaturesFieldBuilder() {
if (signaturesBuilder_ == null) {
signaturesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.hyperledger.fabric.protos.common.Configtx.ConfigSignature, org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigSignatureOrBuilder>(
signatures_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
signatures_ = null;
}
return signaturesBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:common.ConfigUpdateEnvelope)
}
// @@protoc_insertion_point(class_scope:common.ConfigUpdateEnvelope)
private static final org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope();
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ConfigUpdateEnvelope parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConfigUpdateEnvelope(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConfigUpdateOrBuilder extends
// @@protoc_insertion_point(interface_extends:common.ConfigUpdate)
com.google.protobuf.MessageOrBuilder {
/**
*
* Which channel this config update is for
*
*
* string channel_id = 1;
*/
java.lang.String getChannelId();
/**
*
* Which channel this config update is for
*
*
* string channel_id = 1;
*/
com.google.protobuf.ByteString
getChannelIdBytes();
/**
*
* ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
*
*
* .common.ConfigGroup read_set = 2;
*/
boolean hasReadSet();
/**
*
* ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
*
*
* .common.ConfigGroup read_set = 2;
*/
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getReadSet();
/**
*
* ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
*
*
* .common.ConfigGroup read_set = 2;
*/
org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder getReadSetOrBuilder();
/**
*
* WriteSet lists the portion of the config which was written, this should included updated Versions
*
*
* .common.ConfigGroup write_set = 3;
*/
boolean hasWriteSet();
/**
*
* WriteSet lists the portion of the config which was written, this should included updated Versions
*
*
* .common.ConfigGroup write_set = 3;
*/
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getWriteSet();
/**
*
* WriteSet lists the portion of the config which was written, this should included updated Versions
*
*
* .common.ConfigGroup write_set = 3;
*/
org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder getWriteSetOrBuilder();
}
/**
*
* ConfigUpdate is used to submit a subset of config and to have the orderer apply to Config
* it is always submitted inside a ConfigUpdateEnvelope which allows the addition of signatures
* resulting in a new total configuration. The update is applied as follows:
* 1. The versions from all of the elements in the read_set is verified against the versions in the existing config.
* If there is a mismatch in the read versions, then the config update fails and is rejected.
* 2. Any elements in the write_set with the same version as the read_set are ignored.
* 3. The corresponding mod_policy for every remaining element in the write_set is collected.
* 4. Each policy is checked against the signatures from the ConfigUpdateEnvelope, any failing to verify are rejected
* 5. The write_set is applied to the Config and the ConfigGroupSchema verifies that the updates were legal
*
*
* Protobuf type {@code common.ConfigUpdate}
*/
public static final class ConfigUpdate extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:common.ConfigUpdate)
ConfigUpdateOrBuilder {
// Use ConfigUpdate.newBuilder() to construct.
private ConfigUpdate(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConfigUpdate() {
channelId_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ConfigUpdate(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
channelId_ = s;
break;
}
case 18: {
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder subBuilder = null;
if (readSet_ != null) {
subBuilder = readSet_.toBuilder();
}
readSet_ = input.readMessage(org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(readSet_);
readSet_ = subBuilder.buildPartial();
}
break;
}
case 26: {
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder subBuilder = null;
if (writeSet_ != null) {
subBuilder = writeSet_.toBuilder();
}
writeSet_ = input.readMessage(org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(writeSet_);
writeSet_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigUpdate_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigUpdate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate.class, org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate.Builder.class);
}
public static final int CHANNEL_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object channelId_;
/**
*
* Which channel this config update is for
*
*
* string channel_id = 1;
*/
public java.lang.String getChannelId() {
java.lang.Object ref = channelId_;
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();
channelId_ = s;
return s;
}
}
/**
*
* Which channel this config update is for
*
*
* string channel_id = 1;
*/
public com.google.protobuf.ByteString
getChannelIdBytes() {
java.lang.Object ref = channelId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channelId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int READ_SET_FIELD_NUMBER = 2;
private org.hyperledger.fabric.protos.common.Configtx.ConfigGroup readSet_;
/**
*
* ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
*
*
* .common.ConfigGroup read_set = 2;
*/
public boolean hasReadSet() {
return readSet_ != null;
}
/**
*
* ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
*
*
* .common.ConfigGroup read_set = 2;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getReadSet() {
return readSet_ == null ? org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.getDefaultInstance() : readSet_;
}
/**
*
* ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
*
*
* .common.ConfigGroup read_set = 2;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder getReadSetOrBuilder() {
return getReadSet();
}
public static final int WRITE_SET_FIELD_NUMBER = 3;
private org.hyperledger.fabric.protos.common.Configtx.ConfigGroup writeSet_;
/**
*
* WriteSet lists the portion of the config which was written, this should included updated Versions
*
*
* .common.ConfigGroup write_set = 3;
*/
public boolean hasWriteSet() {
return writeSet_ != null;
}
/**
*
* WriteSet lists the portion of the config which was written, this should included updated Versions
*
*
* .common.ConfigGroup write_set = 3;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getWriteSet() {
return writeSet_ == null ? org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.getDefaultInstance() : writeSet_;
}
/**
*
* WriteSet lists the portion of the config which was written, this should included updated Versions
*
*
* .common.ConfigGroup write_set = 3;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder getWriteSetOrBuilder() {
return getWriteSet();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getChannelIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, channelId_);
}
if (readSet_ != null) {
output.writeMessage(2, getReadSet());
}
if (writeSet_ != null) {
output.writeMessage(3, getWriteSet());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getChannelIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, channelId_);
}
if (readSet_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getReadSet());
}
if (writeSet_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getWriteSet());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate other = (org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate) obj;
boolean result = true;
result = result && getChannelId()
.equals(other.getChannelId());
result = result && (hasReadSet() == other.hasReadSet());
if (hasReadSet()) {
result = result && getReadSet()
.equals(other.getReadSet());
}
result = result && (hasWriteSet() == other.hasWriteSet());
if (hasWriteSet()) {
result = result && getWriteSet()
.equals(other.getWriteSet());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER;
hash = (53 * hash) + getChannelId().hashCode();
if (hasReadSet()) {
hash = (37 * hash) + READ_SET_FIELD_NUMBER;
hash = (53 * hash) + getReadSet().hashCode();
}
if (hasWriteSet()) {
hash = (37 * hash) + WRITE_SET_FIELD_NUMBER;
hash = (53 * hash) + getWriteSet().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate 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.Configtx.ConfigUpdate parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate 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.Configtx.ConfigUpdate parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate 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.Configtx.ConfigUpdate parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate 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.Configtx.ConfigUpdate 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.Configtx.ConfigUpdate parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* ConfigUpdate is used to submit a subset of config and to have the orderer apply to Config
* it is always submitted inside a ConfigUpdateEnvelope which allows the addition of signatures
* resulting in a new total configuration. The update is applied as follows:
* 1. The versions from all of the elements in the read_set is verified against the versions in the existing config.
* If there is a mismatch in the read versions, then the config update fails and is rejected.
* 2. Any elements in the write_set with the same version as the read_set are ignored.
* 3. The corresponding mod_policy for every remaining element in the write_set is collected.
* 4. Each policy is checked against the signatures from the ConfigUpdateEnvelope, any failing to verify are rejected
* 5. The write_set is applied to the Config and the ConfigGroupSchema verifies that the updates were legal
*
*
* Protobuf type {@code common.ConfigUpdate}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:common.ConfigUpdate)
org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigUpdate_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigUpdate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate.class, org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
channelId_ = "";
if (readSetBuilder_ == null) {
readSet_ = null;
} else {
readSet_ = null;
readSetBuilder_ = null;
}
if (writeSetBuilder_ == null) {
writeSet_ = null;
} else {
writeSet_ = null;
writeSetBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigUpdate_descriptor;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate.getDefaultInstance();
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate build() {
org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate buildPartial() {
org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate result = new org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate(this);
result.channelId_ = channelId_;
if (readSetBuilder_ == null) {
result.readSet_ = readSet_;
} else {
result.readSet_ = readSetBuilder_.build();
}
if (writeSetBuilder_ == null) {
result.writeSet_ = writeSet_;
} else {
result.writeSet_ = writeSetBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate) {
return mergeFrom((org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate other) {
if (other == org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate.getDefaultInstance()) return this;
if (!other.getChannelId().isEmpty()) {
channelId_ = other.channelId_;
onChanged();
}
if (other.hasReadSet()) {
mergeReadSet(other.getReadSet());
}
if (other.hasWriteSet()) {
mergeWriteSet(other.getWriteSet());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object channelId_ = "";
/**
*
* Which channel this config update is for
*
*
* string channel_id = 1;
*/
public java.lang.String getChannelId() {
java.lang.Object ref = channelId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
channelId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Which channel this config update is for
*
*
* string channel_id = 1;
*/
public com.google.protobuf.ByteString
getChannelIdBytes() {
java.lang.Object ref = channelId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channelId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Which channel this config update is for
*
*
* string channel_id = 1;
*/
public Builder setChannelId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
channelId_ = value;
onChanged();
return this;
}
/**
*
* Which channel this config update is for
*
*
* string channel_id = 1;
*/
public Builder clearChannelId() {
channelId_ = getDefaultInstance().getChannelId();
onChanged();
return this;
}
/**
*
* Which channel this config update is for
*
*
* string channel_id = 1;
*/
public Builder setChannelIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
channelId_ = value;
onChanged();
return this;
}
private org.hyperledger.fabric.protos.common.Configtx.ConfigGroup readSet_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder> readSetBuilder_;
/**
*
* ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
*
*
* .common.ConfigGroup read_set = 2;
*/
public boolean hasReadSet() {
return readSetBuilder_ != null || readSet_ != null;
}
/**
*
* ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
*
*
* .common.ConfigGroup read_set = 2;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getReadSet() {
if (readSetBuilder_ == null) {
return readSet_ == null ? org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.getDefaultInstance() : readSet_;
} else {
return readSetBuilder_.getMessage();
}
}
/**
*
* ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
*
*
* .common.ConfigGroup read_set = 2;
*/
public Builder setReadSet(org.hyperledger.fabric.protos.common.Configtx.ConfigGroup value) {
if (readSetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
readSet_ = value;
onChanged();
} else {
readSetBuilder_.setMessage(value);
}
return this;
}
/**
*
* ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
*
*
* .common.ConfigGroup read_set = 2;
*/
public Builder setReadSet(
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder builderForValue) {
if (readSetBuilder_ == null) {
readSet_ = builderForValue.build();
onChanged();
} else {
readSetBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
*
*
* .common.ConfigGroup read_set = 2;
*/
public Builder mergeReadSet(org.hyperledger.fabric.protos.common.Configtx.ConfigGroup value) {
if (readSetBuilder_ == null) {
if (readSet_ != null) {
readSet_ =
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.newBuilder(readSet_).mergeFrom(value).buildPartial();
} else {
readSet_ = value;
}
onChanged();
} else {
readSetBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
*
*
* .common.ConfigGroup read_set = 2;
*/
public Builder clearReadSet() {
if (readSetBuilder_ == null) {
readSet_ = null;
onChanged();
} else {
readSet_ = null;
readSetBuilder_ = null;
}
return this;
}
/**
*
* ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
*
*
* .common.ConfigGroup read_set = 2;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder getReadSetBuilder() {
onChanged();
return getReadSetFieldBuilder().getBuilder();
}
/**
*
* ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
*
*
* .common.ConfigGroup read_set = 2;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder getReadSetOrBuilder() {
if (readSetBuilder_ != null) {
return readSetBuilder_.getMessageOrBuilder();
} else {
return readSet_ == null ?
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.getDefaultInstance() : readSet_;
}
}
/**
*
* ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
*
*
* .common.ConfigGroup read_set = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder>
getReadSetFieldBuilder() {
if (readSetBuilder_ == null) {
readSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder>(
getReadSet(),
getParentForChildren(),
isClean());
readSet_ = null;
}
return readSetBuilder_;
}
private org.hyperledger.fabric.protos.common.Configtx.ConfigGroup writeSet_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder> writeSetBuilder_;
/**
*
* WriteSet lists the portion of the config which was written, this should included updated Versions
*
*
* .common.ConfigGroup write_set = 3;
*/
public boolean hasWriteSet() {
return writeSetBuilder_ != null || writeSet_ != null;
}
/**
*
* WriteSet lists the portion of the config which was written, this should included updated Versions
*
*
* .common.ConfigGroup write_set = 3;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getWriteSet() {
if (writeSetBuilder_ == null) {
return writeSet_ == null ? org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.getDefaultInstance() : writeSet_;
} else {
return writeSetBuilder_.getMessage();
}
}
/**
*
* WriteSet lists the portion of the config which was written, this should included updated Versions
*
*
* .common.ConfigGroup write_set = 3;
*/
public Builder setWriteSet(org.hyperledger.fabric.protos.common.Configtx.ConfigGroup value) {
if (writeSetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
writeSet_ = value;
onChanged();
} else {
writeSetBuilder_.setMessage(value);
}
return this;
}
/**
*
* WriteSet lists the portion of the config which was written, this should included updated Versions
*
*
* .common.ConfigGroup write_set = 3;
*/
public Builder setWriteSet(
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder builderForValue) {
if (writeSetBuilder_ == null) {
writeSet_ = builderForValue.build();
onChanged();
} else {
writeSetBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* WriteSet lists the portion of the config which was written, this should included updated Versions
*
*
* .common.ConfigGroup write_set = 3;
*/
public Builder mergeWriteSet(org.hyperledger.fabric.protos.common.Configtx.ConfigGroup value) {
if (writeSetBuilder_ == null) {
if (writeSet_ != null) {
writeSet_ =
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.newBuilder(writeSet_).mergeFrom(value).buildPartial();
} else {
writeSet_ = value;
}
onChanged();
} else {
writeSetBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* WriteSet lists the portion of the config which was written, this should included updated Versions
*
*
* .common.ConfigGroup write_set = 3;
*/
public Builder clearWriteSet() {
if (writeSetBuilder_ == null) {
writeSet_ = null;
onChanged();
} else {
writeSet_ = null;
writeSetBuilder_ = null;
}
return this;
}
/**
*
* WriteSet lists the portion of the config which was written, this should included updated Versions
*
*
* .common.ConfigGroup write_set = 3;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder getWriteSetBuilder() {
onChanged();
return getWriteSetFieldBuilder().getBuilder();
}
/**
*
* WriteSet lists the portion of the config which was written, this should included updated Versions
*
*
* .common.ConfigGroup write_set = 3;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder getWriteSetOrBuilder() {
if (writeSetBuilder_ != null) {
return writeSetBuilder_.getMessageOrBuilder();
} else {
return writeSet_ == null ?
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.getDefaultInstance() : writeSet_;
}
}
/**
*
* WriteSet lists the portion of the config which was written, this should included updated Versions
*
*
* .common.ConfigGroup write_set = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder>
getWriteSetFieldBuilder() {
if (writeSetBuilder_ == null) {
writeSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder>(
getWriteSet(),
getParentForChildren(),
isClean());
writeSet_ = null;
}
return writeSetBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:common.ConfigUpdate)
}
// @@protoc_insertion_point(class_scope:common.ConfigUpdate)
private static final org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate();
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ConfigUpdate parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConfigUpdate(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConfigGroupOrBuilder extends
// @@protoc_insertion_point(interface_extends:common.ConfigGroup)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 version = 1;
*/
long getVersion();
/**
* map<string, .common.ConfigGroup> groups = 2;
*/
int getGroupsCount();
/**
* map<string, .common.ConfigGroup> groups = 2;
*/
boolean containsGroups(
java.lang.String key);
/**
* Use {@link #getGroupsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getGroups();
/**
* map<string, .common.ConfigGroup> groups = 2;
*/
java.util.Map
getGroupsMap();
/**
* map<string, .common.ConfigGroup> groups = 2;
*/
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getGroupsOrDefault(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup defaultValue);
/**
* map<string, .common.ConfigGroup> groups = 2;
*/
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getGroupsOrThrow(
java.lang.String key);
/**
* map<string, .common.ConfigValue> values = 3;
*/
int getValuesCount();
/**
* map<string, .common.ConfigValue> values = 3;
*/
boolean containsValues(
java.lang.String key);
/**
* Use {@link #getValuesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getValues();
/**
* map<string, .common.ConfigValue> values = 3;
*/
java.util.Map
getValuesMap();
/**
* map<string, .common.ConfigValue> values = 3;
*/
org.hyperledger.fabric.protos.common.Configtx.ConfigValue getValuesOrDefault(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configtx.ConfigValue defaultValue);
/**
* map<string, .common.ConfigValue> values = 3;
*/
org.hyperledger.fabric.protos.common.Configtx.ConfigValue getValuesOrThrow(
java.lang.String key);
/**
* map<string, .common.ConfigPolicy> policies = 4;
*/
int getPoliciesCount();
/**
* map<string, .common.ConfigPolicy> policies = 4;
*/
boolean containsPolicies(
java.lang.String key);
/**
* Use {@link #getPoliciesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getPolicies();
/**
* map<string, .common.ConfigPolicy> policies = 4;
*/
java.util.Map
getPoliciesMap();
/**
* map<string, .common.ConfigPolicy> policies = 4;
*/
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy getPoliciesOrDefault(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy defaultValue);
/**
* map<string, .common.ConfigPolicy> policies = 4;
*/
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy getPoliciesOrThrow(
java.lang.String key);
/**
* string mod_policy = 5;
*/
java.lang.String getModPolicy();
/**
* string mod_policy = 5;
*/
com.google.protobuf.ByteString
getModPolicyBytes();
}
/**
*
* ConfigGroup is the hierarchical data structure for holding config
*
*
* Protobuf type {@code common.ConfigGroup}
*/
public static final class ConfigGroup extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:common.ConfigGroup)
ConfigGroupOrBuilder {
// Use ConfigGroup.newBuilder() to construct.
private ConfigGroup(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConfigGroup() {
version_ = 0L;
modPolicy_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ConfigGroup(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
version_ = input.readUInt64();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
groups_ = com.google.protobuf.MapField.newMapField(
GroupsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
groups__ = input.readMessage(
GroupsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
groups_.getMutableMap().put(
groups__.getKey(), groups__.getValue());
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
values_ = com.google.protobuf.MapField.newMapField(
ValuesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000004;
}
com.google.protobuf.MapEntry
values__ = input.readMessage(
ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
values_.getMutableMap().put(
values__.getKey(), values__.getValue());
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
policies_ = com.google.protobuf.MapField.newMapField(
PoliciesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000008;
}
com.google.protobuf.MapEntry
policies__ = input.readMessage(
PoliciesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
policies_.getMutableMap().put(
policies__.getKey(), policies__.getValue());
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
modPolicy_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroup_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetGroups();
case 3:
return internalGetValues();
case 4:
return internalGetPolicies();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.class, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder.class);
}
private int bitField0_;
public static final int VERSION_FIELD_NUMBER = 1;
private long version_;
/**
* uint64 version = 1;
*/
public long getVersion() {
return version_;
}
public static final int GROUPS_FIELD_NUMBER = 2;
private static final class GroupsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroup_GroupsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup> groups_;
private com.google.protobuf.MapField
internalGetGroups() {
if (groups_ == null) {
return com.google.protobuf.MapField.emptyMapField(
GroupsDefaultEntryHolder.defaultEntry);
}
return groups_;
}
public int getGroupsCount() {
return internalGetGroups().getMap().size();
}
/**
* map<string, .common.ConfigGroup> groups = 2;
*/
public boolean containsGroups(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetGroups().getMap().containsKey(key);
}
/**
* Use {@link #getGroupsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getGroups() {
return getGroupsMap();
}
/**
* map<string, .common.ConfigGroup> groups = 2;
*/
public java.util.Map getGroupsMap() {
return internalGetGroups().getMap();
}
/**
* map<string, .common.ConfigGroup> groups = 2;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getGroupsOrDefault(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetGroups().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .common.ConfigGroup> groups = 2;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getGroupsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetGroups().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int VALUES_FIELD_NUMBER = 3;
private static final class ValuesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigValue> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroup_ValuesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
org.hyperledger.fabric.protos.common.Configtx.ConfigValue.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigValue> values_;
private com.google.protobuf.MapField
internalGetValues() {
if (values_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ValuesDefaultEntryHolder.defaultEntry);
}
return values_;
}
public int getValuesCount() {
return internalGetValues().getMap().size();
}
/**
* map<string, .common.ConfigValue> values = 3;
*/
public boolean containsValues(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetValues().getMap().containsKey(key);
}
/**
* Use {@link #getValuesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getValues() {
return getValuesMap();
}
/**
* map<string, .common.ConfigValue> values = 3;
*/
public java.util.Map getValuesMap() {
return internalGetValues().getMap();
}
/**
* map<string, .common.ConfigValue> values = 3;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigValue getValuesOrDefault(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configtx.ConfigValue defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetValues().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .common.ConfigValue> values = 3;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigValue getValuesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetValues().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int POLICIES_FIELD_NUMBER = 4;
private static final class PoliciesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroup_PoliciesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy> policies_;
private com.google.protobuf.MapField
internalGetPolicies() {
if (policies_ == null) {
return com.google.protobuf.MapField.emptyMapField(
PoliciesDefaultEntryHolder.defaultEntry);
}
return policies_;
}
public int getPoliciesCount() {
return internalGetPolicies().getMap().size();
}
/**
* map<string, .common.ConfigPolicy> policies = 4;
*/
public boolean containsPolicies(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetPolicies().getMap().containsKey(key);
}
/**
* Use {@link #getPoliciesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getPolicies() {
return getPoliciesMap();
}
/**
* map<string, .common.ConfigPolicy> policies = 4;
*/
public java.util.Map getPoliciesMap() {
return internalGetPolicies().getMap();
}
/**
* map<string, .common.ConfigPolicy> policies = 4;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy getPoliciesOrDefault(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetPolicies().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .common.ConfigPolicy> policies = 4;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy getPoliciesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetPolicies().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int MOD_POLICY_FIELD_NUMBER = 5;
private volatile java.lang.Object modPolicy_;
/**
* string mod_policy = 5;
*/
public java.lang.String getModPolicy() {
java.lang.Object ref = modPolicy_;
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();
modPolicy_ = s;
return s;
}
}
/**
* string mod_policy = 5;
*/
public com.google.protobuf.ByteString
getModPolicyBytes() {
java.lang.Object ref = modPolicy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
modPolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (version_ != 0L) {
output.writeUInt64(1, version_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetGroups(),
GroupsDefaultEntryHolder.defaultEntry,
2);
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetValues(),
ValuesDefaultEntryHolder.defaultEntry,
3);
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetPolicies(),
PoliciesDefaultEntryHolder.defaultEntry,
4);
if (!getModPolicyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, modPolicy_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (version_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, version_);
}
for (java.util.Map.Entry entry
: internalGetGroups().getMap().entrySet()) {
com.google.protobuf.MapEntry
groups__ = GroupsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, groups__);
}
for (java.util.Map.Entry entry
: internalGetValues().getMap().entrySet()) {
com.google.protobuf.MapEntry
values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, values__);
}
for (java.util.Map.Entry entry
: internalGetPolicies().getMap().entrySet()) {
com.google.protobuf.MapEntry
policies__ = PoliciesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, policies__);
}
if (!getModPolicyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, modPolicy_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigGroup)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup other = (org.hyperledger.fabric.protos.common.Configtx.ConfigGroup) obj;
boolean result = true;
result = result && (getVersion()
== other.getVersion());
result = result && internalGetGroups().equals(
other.internalGetGroups());
result = result && internalGetValues().equals(
other.internalGetValues());
result = result && internalGetPolicies().equals(
other.internalGetPolicies());
result = result && getModPolicy()
.equals(other.getModPolicy());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getVersion());
if (!internalGetGroups().getMap().isEmpty()) {
hash = (37 * hash) + GROUPS_FIELD_NUMBER;
hash = (53 * hash) + internalGetGroups().hashCode();
}
if (!internalGetValues().getMap().isEmpty()) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + internalGetValues().hashCode();
}
if (!internalGetPolicies().getMap().isEmpty()) {
hash = (37 * hash) + POLICIES_FIELD_NUMBER;
hash = (53 * hash) + internalGetPolicies().hashCode();
}
hash = (37 * hash) + MOD_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getModPolicy().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroup parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroup 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.Configtx.ConfigGroup parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroup 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.Configtx.ConfigGroup parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroup 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.Configtx.ConfigGroup parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroup 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.Configtx.ConfigGroup 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.Configtx.ConfigGroup parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configtx.ConfigGroup prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* ConfigGroup is the hierarchical data structure for holding config
*
*
* Protobuf type {@code common.ConfigGroup}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:common.ConfigGroup)
org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroup_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetGroups();
case 3:
return internalGetValues();
case 4:
return internalGetPolicies();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 2:
return internalGetMutableGroups();
case 3:
return internalGetMutableValues();
case 4:
return internalGetMutablePolicies();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.class, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
version_ = 0L;
internalGetMutableGroups().clear();
internalGetMutableValues().clear();
internalGetMutablePolicies().clear();
modPolicy_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroup_descriptor;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.getDefaultInstance();
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup build() {
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup buildPartial() {
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup result = new org.hyperledger.fabric.protos.common.Configtx.ConfigGroup(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.version_ = version_;
result.groups_ = internalGetGroups();
result.groups_.makeImmutable();
result.values_ = internalGetValues();
result.values_.makeImmutable();
result.policies_ = internalGetPolicies();
result.policies_.makeImmutable();
result.modPolicy_ = modPolicy_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigGroup) {
return mergeFrom((org.hyperledger.fabric.protos.common.Configtx.ConfigGroup)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configtx.ConfigGroup other) {
if (other == org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.getDefaultInstance()) return this;
if (other.getVersion() != 0L) {
setVersion(other.getVersion());
}
internalGetMutableGroups().mergeFrom(
other.internalGetGroups());
internalGetMutableValues().mergeFrom(
other.internalGetValues());
internalGetMutablePolicies().mergeFrom(
other.internalGetPolicies());
if (!other.getModPolicy().isEmpty()) {
modPolicy_ = other.modPolicy_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.fabric.protos.common.Configtx.ConfigGroup) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long version_ ;
/**
* uint64 version = 1;
*/
public long getVersion() {
return version_;
}
/**
* uint64 version = 1;
*/
public Builder setVersion(long value) {
version_ = value;
onChanged();
return this;
}
/**
* uint64 version = 1;
*/
public Builder clearVersion() {
version_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup> groups_;
private com.google.protobuf.MapField
internalGetGroups() {
if (groups_ == null) {
return com.google.protobuf.MapField.emptyMapField(
GroupsDefaultEntryHolder.defaultEntry);
}
return groups_;
}
private com.google.protobuf.MapField
internalGetMutableGroups() {
onChanged();;
if (groups_ == null) {
groups_ = com.google.protobuf.MapField.newMapField(
GroupsDefaultEntryHolder.defaultEntry);
}
if (!groups_.isMutable()) {
groups_ = groups_.copy();
}
return groups_;
}
public int getGroupsCount() {
return internalGetGroups().getMap().size();
}
/**
* map<string, .common.ConfigGroup> groups = 2;
*/
public boolean containsGroups(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetGroups().getMap().containsKey(key);
}
/**
* Use {@link #getGroupsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getGroups() {
return getGroupsMap();
}
/**
* map<string, .common.ConfigGroup> groups = 2;
*/
public java.util.Map getGroupsMap() {
return internalGetGroups().getMap();
}
/**
* map<string, .common.ConfigGroup> groups = 2;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getGroupsOrDefault(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetGroups().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .common.ConfigGroup> groups = 2;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getGroupsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetGroups().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearGroups() {
internalGetMutableGroups().getMutableMap()
.clear();
return this;
}
/**
* map<string, .common.ConfigGroup> groups = 2;
*/
public Builder removeGroups(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableGroups().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableGroups() {
return internalGetMutableGroups().getMutableMap();
}
/**
* map<string, .common.ConfigGroup> groups = 2;
*/
public Builder putGroups(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configtx.ConfigGroup value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableGroups().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, .common.ConfigGroup> groups = 2;
*/
public Builder putAllGroups(
java.util.Map values) {
internalGetMutableGroups().getMutableMap()
.putAll(values);
return this;
}
private com.google.protobuf.MapField<
java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigValue> values_;
private com.google.protobuf.MapField
internalGetValues() {
if (values_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ValuesDefaultEntryHolder.defaultEntry);
}
return values_;
}
private com.google.protobuf.MapField
internalGetMutableValues() {
onChanged();;
if (values_ == null) {
values_ = com.google.protobuf.MapField.newMapField(
ValuesDefaultEntryHolder.defaultEntry);
}
if (!values_.isMutable()) {
values_ = values_.copy();
}
return values_;
}
public int getValuesCount() {
return internalGetValues().getMap().size();
}
/**
* map<string, .common.ConfigValue> values = 3;
*/
public boolean containsValues(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetValues().getMap().containsKey(key);
}
/**
* Use {@link #getValuesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getValues() {
return getValuesMap();
}
/**
* map<string, .common.ConfigValue> values = 3;
*/
public java.util.Map getValuesMap() {
return internalGetValues().getMap();
}
/**
* map<string, .common.ConfigValue> values = 3;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigValue getValuesOrDefault(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configtx.ConfigValue defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetValues().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .common.ConfigValue> values = 3;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigValue getValuesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetValues().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearValues() {
internalGetMutableValues().getMutableMap()
.clear();
return this;
}
/**
* map<string, .common.ConfigValue> values = 3;
*/
public Builder removeValues(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableValues().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableValues() {
return internalGetMutableValues().getMutableMap();
}
/**
* map<string, .common.ConfigValue> values = 3;
*/
public Builder putValues(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configtx.ConfigValue value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableValues().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, .common.ConfigValue> values = 3;
*/
public Builder putAllValues(
java.util.Map values) {
internalGetMutableValues().getMutableMap()
.putAll(values);
return this;
}
private com.google.protobuf.MapField<
java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy> policies_;
private com.google.protobuf.MapField
internalGetPolicies() {
if (policies_ == null) {
return com.google.protobuf.MapField.emptyMapField(
PoliciesDefaultEntryHolder.defaultEntry);
}
return policies_;
}
private com.google.protobuf.MapField
internalGetMutablePolicies() {
onChanged();;
if (policies_ == null) {
policies_ = com.google.protobuf.MapField.newMapField(
PoliciesDefaultEntryHolder.defaultEntry);
}
if (!policies_.isMutable()) {
policies_ = policies_.copy();
}
return policies_;
}
public int getPoliciesCount() {
return internalGetPolicies().getMap().size();
}
/**
* map<string, .common.ConfigPolicy> policies = 4;
*/
public boolean containsPolicies(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetPolicies().getMap().containsKey(key);
}
/**
* Use {@link #getPoliciesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getPolicies() {
return getPoliciesMap();
}
/**
* map<string, .common.ConfigPolicy> policies = 4;
*/
public java.util.Map getPoliciesMap() {
return internalGetPolicies().getMap();
}
/**
* map<string, .common.ConfigPolicy> policies = 4;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy getPoliciesOrDefault(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetPolicies().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .common.ConfigPolicy> policies = 4;
*/
public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy getPoliciesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetPolicies().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearPolicies() {
internalGetMutablePolicies().getMutableMap()
.clear();
return this;
}
/**
* map<string, .common.ConfigPolicy> policies = 4;
*/
public Builder removePolicies(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutablePolicies().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutablePolicies() {
return internalGetMutablePolicies().getMutableMap();
}
/**
* map<string, .common.ConfigPolicy> policies = 4;
*/
public Builder putPolicies(
java.lang.String key,
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutablePolicies().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, .common.ConfigPolicy> policies = 4;
*/
public Builder putAllPolicies(
java.util.Map values) {
internalGetMutablePolicies().getMutableMap()
.putAll(values);
return this;
}
private java.lang.Object modPolicy_ = "";
/**
* string mod_policy = 5;
*/
public java.lang.String getModPolicy() {
java.lang.Object ref = modPolicy_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
modPolicy_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string mod_policy = 5;
*/
public com.google.protobuf.ByteString
getModPolicyBytes() {
java.lang.Object ref = modPolicy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
modPolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string mod_policy = 5;
*/
public Builder setModPolicy(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
modPolicy_ = value;
onChanged();
return this;
}
/**
* string mod_policy = 5;
*/
public Builder clearModPolicy() {
modPolicy_ = getDefaultInstance().getModPolicy();
onChanged();
return this;
}
/**
* string mod_policy = 5;
*/
public Builder setModPolicyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
modPolicy_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:common.ConfigGroup)
}
// @@protoc_insertion_point(class_scope:common.ConfigGroup)
private static final org.hyperledger.fabric.protos.common.Configtx.ConfigGroup DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configtx.ConfigGroup();
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ConfigGroup parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConfigGroup(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConfigValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:common.ConfigValue)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 version = 1;
*/
long getVersion();
/**
* bytes value = 2;
*/
com.google.protobuf.ByteString getValue();
/**
* string mod_policy = 3;
*/
java.lang.String getModPolicy();
/**
* string mod_policy = 3;
*/
com.google.protobuf.ByteString
getModPolicyBytes();
}
/**
*
* ConfigValue represents an individual piece of config data
*
*
* Protobuf type {@code common.ConfigValue}
*/
public static final class ConfigValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:common.ConfigValue)
ConfigValueOrBuilder {
// Use ConfigValue.newBuilder() to construct.
private ConfigValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConfigValue() {
version_ = 0L;
value_ = com.google.protobuf.ByteString.EMPTY;
modPolicy_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ConfigValue(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
version_ = input.readUInt64();
break;
}
case 18: {
value_ = input.readBytes();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
modPolicy_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigValue_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configtx.ConfigValue.class, org.hyperledger.fabric.protos.common.Configtx.ConfigValue.Builder.class);
}
public static final int VERSION_FIELD_NUMBER = 1;
private long version_;
/**
* uint64 version = 1;
*/
public long getVersion() {
return version_;
}
public static final int VALUE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString value_;
/**
* bytes value = 2;
*/
public com.google.protobuf.ByteString getValue() {
return value_;
}
public static final int MOD_POLICY_FIELD_NUMBER = 3;
private volatile java.lang.Object modPolicy_;
/**
* string mod_policy = 3;
*/
public java.lang.String getModPolicy() {
java.lang.Object ref = modPolicy_;
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();
modPolicy_ = s;
return s;
}
}
/**
* string mod_policy = 3;
*/
public com.google.protobuf.ByteString
getModPolicyBytes() {
java.lang.Object ref = modPolicy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
modPolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (version_ != 0L) {
output.writeUInt64(1, version_);
}
if (!value_.isEmpty()) {
output.writeBytes(2, value_);
}
if (!getModPolicyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, modPolicy_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (version_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, version_);
}
if (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, value_);
}
if (!getModPolicyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, modPolicy_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigValue)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.common.Configtx.ConfigValue other = (org.hyperledger.fabric.protos.common.Configtx.ConfigValue) obj;
boolean result = true;
result = result && (getVersion()
== other.getVersion());
result = result && getValue()
.equals(other.getValue());
result = result && getModPolicy()
.equals(other.getModPolicy());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getVersion());
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (37 * hash) + MOD_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getModPolicy().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigValue 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.Configtx.ConfigValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigValue 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.Configtx.ConfigValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigValue 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.Configtx.ConfigValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigValue 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.Configtx.ConfigValue 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.Configtx.ConfigValue parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configtx.ConfigValue prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* ConfigValue represents an individual piece of config data
*
*
* Protobuf type {@code common.ConfigValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:common.ConfigValue)
org.hyperledger.fabric.protos.common.Configtx.ConfigValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigValue_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configtx.ConfigValue.class, org.hyperledger.fabric.protos.common.Configtx.ConfigValue.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.common.Configtx.ConfigValue.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
version_ = 0L;
value_ = com.google.protobuf.ByteString.EMPTY;
modPolicy_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigValue_descriptor;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigValue getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.common.Configtx.ConfigValue.getDefaultInstance();
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigValue build() {
org.hyperledger.fabric.protos.common.Configtx.ConfigValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigValue buildPartial() {
org.hyperledger.fabric.protos.common.Configtx.ConfigValue result = new org.hyperledger.fabric.protos.common.Configtx.ConfigValue(this);
result.version_ = version_;
result.value_ = value_;
result.modPolicy_ = modPolicy_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigValue) {
return mergeFrom((org.hyperledger.fabric.protos.common.Configtx.ConfigValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configtx.ConfigValue other) {
if (other == org.hyperledger.fabric.protos.common.Configtx.ConfigValue.getDefaultInstance()) return this;
if (other.getVersion() != 0L) {
setVersion(other.getVersion());
}
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
setValue(other.getValue());
}
if (!other.getModPolicy().isEmpty()) {
modPolicy_ = other.modPolicy_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.fabric.protos.common.Configtx.ConfigValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.fabric.protos.common.Configtx.ConfigValue) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long version_ ;
/**
* uint64 version = 1;
*/
public long getVersion() {
return version_;
}
/**
* uint64 version = 1;
*/
public Builder setVersion(long value) {
version_ = value;
onChanged();
return this;
}
/**
* uint64 version = 1;
*/
public Builder clearVersion() {
version_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes value = 2;
*/
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
* bytes value = 2;
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
* bytes value = 2;
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
private java.lang.Object modPolicy_ = "";
/**
* string mod_policy = 3;
*/
public java.lang.String getModPolicy() {
java.lang.Object ref = modPolicy_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
modPolicy_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string mod_policy = 3;
*/
public com.google.protobuf.ByteString
getModPolicyBytes() {
java.lang.Object ref = modPolicy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
modPolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string mod_policy = 3;
*/
public Builder setModPolicy(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
modPolicy_ = value;
onChanged();
return this;
}
/**
* string mod_policy = 3;
*/
public Builder clearModPolicy() {
modPolicy_ = getDefaultInstance().getModPolicy();
onChanged();
return this;
}
/**
* string mod_policy = 3;
*/
public Builder setModPolicyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
modPolicy_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:common.ConfigValue)
}
// @@protoc_insertion_point(class_scope:common.ConfigValue)
private static final org.hyperledger.fabric.protos.common.Configtx.ConfigValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configtx.ConfigValue();
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ConfigValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConfigValue(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConfigPolicyOrBuilder extends
// @@protoc_insertion_point(interface_extends:common.ConfigPolicy)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 version = 1;
*/
long getVersion();
/**
* .common.Policy policy = 2;
*/
boolean hasPolicy();
/**
* .common.Policy policy = 2;
*/
org.hyperledger.fabric.protos.common.Policies.Policy getPolicy();
/**
* .common.Policy policy = 2;
*/
org.hyperledger.fabric.protos.common.Policies.PolicyOrBuilder getPolicyOrBuilder();
/**
* string mod_policy = 3;
*/
java.lang.String getModPolicy();
/**
* string mod_policy = 3;
*/
com.google.protobuf.ByteString
getModPolicyBytes();
}
/**
* Protobuf type {@code common.ConfigPolicy}
*/
public static final class ConfigPolicy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:common.ConfigPolicy)
ConfigPolicyOrBuilder {
// Use ConfigPolicy.newBuilder() to construct.
private ConfigPolicy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConfigPolicy() {
version_ = 0L;
modPolicy_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ConfigPolicy(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
version_ = input.readUInt64();
break;
}
case 18: {
org.hyperledger.fabric.protos.common.Policies.Policy.Builder subBuilder = null;
if (policy_ != null) {
subBuilder = policy_.toBuilder();
}
policy_ = input.readMessage(org.hyperledger.fabric.protos.common.Policies.Policy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(policy_);
policy_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
modPolicy_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigPolicy_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy.class, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy.Builder.class);
}
public static final int VERSION_FIELD_NUMBER = 1;
private long version_;
/**
* uint64 version = 1;
*/
public long getVersion() {
return version_;
}
public static final int POLICY_FIELD_NUMBER = 2;
private org.hyperledger.fabric.protos.common.Policies.Policy policy_;
/**
* .common.Policy policy = 2;
*/
public boolean hasPolicy() {
return policy_ != null;
}
/**
* .common.Policy policy = 2;
*/
public org.hyperledger.fabric.protos.common.Policies.Policy getPolicy() {
return policy_ == null ? org.hyperledger.fabric.protos.common.Policies.Policy.getDefaultInstance() : policy_;
}
/**
* .common.Policy policy = 2;
*/
public org.hyperledger.fabric.protos.common.Policies.PolicyOrBuilder getPolicyOrBuilder() {
return getPolicy();
}
public static final int MOD_POLICY_FIELD_NUMBER = 3;
private volatile java.lang.Object modPolicy_;
/**
* string mod_policy = 3;
*/
public java.lang.String getModPolicy() {
java.lang.Object ref = modPolicy_;
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();
modPolicy_ = s;
return s;
}
}
/**
* string mod_policy = 3;
*/
public com.google.protobuf.ByteString
getModPolicyBytes() {
java.lang.Object ref = modPolicy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
modPolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (version_ != 0L) {
output.writeUInt64(1, version_);
}
if (policy_ != null) {
output.writeMessage(2, getPolicy());
}
if (!getModPolicyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, modPolicy_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (version_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, version_);
}
if (policy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPolicy());
}
if (!getModPolicyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, modPolicy_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy other = (org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy) obj;
boolean result = true;
result = result && (getVersion()
== other.getVersion());
result = result && (hasPolicy() == other.hasPolicy());
if (hasPolicy()) {
result = result && getPolicy()
.equals(other.getPolicy());
}
result = result && getModPolicy()
.equals(other.getModPolicy());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getVersion());
if (hasPolicy()) {
hash = (37 * hash) + POLICY_FIELD_NUMBER;
hash = (53 * hash) + getPolicy().hashCode();
}
hash = (37 * hash) + MOD_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getModPolicy().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy 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.Configtx.ConfigPolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy 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.Configtx.ConfigPolicy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy 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.Configtx.ConfigPolicy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy 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.Configtx.ConfigPolicy 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.Configtx.ConfigPolicy parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code common.ConfigPolicy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:common.ConfigPolicy)
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigPolicy_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy.class, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
version_ = 0L;
if (policyBuilder_ == null) {
policy_ = null;
} else {
policy_ = null;
policyBuilder_ = null;
}
modPolicy_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigPolicy_descriptor;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy.getDefaultInstance();
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy build() {
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy buildPartial() {
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy result = new org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy(this);
result.version_ = version_;
if (policyBuilder_ == null) {
result.policy_ = policy_;
} else {
result.policy_ = policyBuilder_.build();
}
result.modPolicy_ = modPolicy_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy) {
return mergeFrom((org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy other) {
if (other == org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy.getDefaultInstance()) return this;
if (other.getVersion() != 0L) {
setVersion(other.getVersion());
}
if (other.hasPolicy()) {
mergePolicy(other.getPolicy());
}
if (!other.getModPolicy().isEmpty()) {
modPolicy_ = other.modPolicy_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long version_ ;
/**
* uint64 version = 1;
*/
public long getVersion() {
return version_;
}
/**
* uint64 version = 1;
*/
public Builder setVersion(long value) {
version_ = value;
onChanged();
return this;
}
/**
* uint64 version = 1;
*/
public Builder clearVersion() {
version_ = 0L;
onChanged();
return this;
}
private org.hyperledger.fabric.protos.common.Policies.Policy policy_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Policies.Policy, org.hyperledger.fabric.protos.common.Policies.Policy.Builder, org.hyperledger.fabric.protos.common.Policies.PolicyOrBuilder> policyBuilder_;
/**
* .common.Policy policy = 2;
*/
public boolean hasPolicy() {
return policyBuilder_ != null || policy_ != null;
}
/**
* .common.Policy policy = 2;
*/
public org.hyperledger.fabric.protos.common.Policies.Policy getPolicy() {
if (policyBuilder_ == null) {
return policy_ == null ? org.hyperledger.fabric.protos.common.Policies.Policy.getDefaultInstance() : policy_;
} else {
return policyBuilder_.getMessage();
}
}
/**
* .common.Policy policy = 2;
*/
public Builder setPolicy(org.hyperledger.fabric.protos.common.Policies.Policy value) {
if (policyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
policy_ = value;
onChanged();
} else {
policyBuilder_.setMessage(value);
}
return this;
}
/**
* .common.Policy policy = 2;
*/
public Builder setPolicy(
org.hyperledger.fabric.protos.common.Policies.Policy.Builder builderForValue) {
if (policyBuilder_ == null) {
policy_ = builderForValue.build();
onChanged();
} else {
policyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .common.Policy policy = 2;
*/
public Builder mergePolicy(org.hyperledger.fabric.protos.common.Policies.Policy value) {
if (policyBuilder_ == null) {
if (policy_ != null) {
policy_ =
org.hyperledger.fabric.protos.common.Policies.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
} else {
policy_ = value;
}
onChanged();
} else {
policyBuilder_.mergeFrom(value);
}
return this;
}
/**
* .common.Policy policy = 2;
*/
public Builder clearPolicy() {
if (policyBuilder_ == null) {
policy_ = null;
onChanged();
} else {
policy_ = null;
policyBuilder_ = null;
}
return this;
}
/**
* .common.Policy policy = 2;
*/
public org.hyperledger.fabric.protos.common.Policies.Policy.Builder getPolicyBuilder() {
onChanged();
return getPolicyFieldBuilder().getBuilder();
}
/**
* .common.Policy policy = 2;
*/
public org.hyperledger.fabric.protos.common.Policies.PolicyOrBuilder getPolicyOrBuilder() {
if (policyBuilder_ != null) {
return policyBuilder_.getMessageOrBuilder();
} else {
return policy_ == null ?
org.hyperledger.fabric.protos.common.Policies.Policy.getDefaultInstance() : policy_;
}
}
/**
* .common.Policy policy = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Policies.Policy, org.hyperledger.fabric.protos.common.Policies.Policy.Builder, org.hyperledger.fabric.protos.common.Policies.PolicyOrBuilder>
getPolicyFieldBuilder() {
if (policyBuilder_ == null) {
policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Policies.Policy, org.hyperledger.fabric.protos.common.Policies.Policy.Builder, org.hyperledger.fabric.protos.common.Policies.PolicyOrBuilder>(
getPolicy(),
getParentForChildren(),
isClean());
policy_ = null;
}
return policyBuilder_;
}
private java.lang.Object modPolicy_ = "";
/**
* string mod_policy = 3;
*/
public java.lang.String getModPolicy() {
java.lang.Object ref = modPolicy_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
modPolicy_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string mod_policy = 3;
*/
public com.google.protobuf.ByteString
getModPolicyBytes() {
java.lang.Object ref = modPolicy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
modPolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string mod_policy = 3;
*/
public Builder setModPolicy(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
modPolicy_ = value;
onChanged();
return this;
}
/**
* string mod_policy = 3;
*/
public Builder clearModPolicy() {
modPolicy_ = getDefaultInstance().getModPolicy();
onChanged();
return this;
}
/**
* string mod_policy = 3;
*/
public Builder setModPolicyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
modPolicy_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:common.ConfigPolicy)
}
// @@protoc_insertion_point(class_scope:common.ConfigPolicy)
private static final org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy();
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ConfigPolicy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConfigPolicy(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConfigSignatureOrBuilder extends
// @@protoc_insertion_point(interface_extends:common.ConfigSignature)
com.google.protobuf.MessageOrBuilder {
/**
*
* A marshaled SignatureHeader
*
*
* bytes signature_header = 1;
*/
com.google.protobuf.ByteString getSignatureHeader();
/**
*
* Signature over the concatenation signatureHeader bytes and config bytes
*
*
* bytes signature = 2;
*/
com.google.protobuf.ByteString getSignature();
}
/**
* Protobuf type {@code common.ConfigSignature}
*/
public static final class ConfigSignature extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:common.ConfigSignature)
ConfigSignatureOrBuilder {
// Use ConfigSignature.newBuilder() to construct.
private ConfigSignature(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConfigSignature() {
signatureHeader_ = com.google.protobuf.ByteString.EMPTY;
signature_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ConfigSignature(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
signatureHeader_ = input.readBytes();
break;
}
case 18: {
signature_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigSignature_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigSignature_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.class, org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.Builder.class);
}
public static final int SIGNATURE_HEADER_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString signatureHeader_;
/**
*
* A marshaled SignatureHeader
*
*
* bytes signature_header = 1;
*/
public com.google.protobuf.ByteString getSignatureHeader() {
return signatureHeader_;
}
public static final int SIGNATURE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString signature_;
/**
*
* Signature over the concatenation signatureHeader bytes and config bytes
*
*
* bytes signature = 2;
*/
public com.google.protobuf.ByteString getSignature() {
return signature_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!signatureHeader_.isEmpty()) {
output.writeBytes(1, signatureHeader_);
}
if (!signature_.isEmpty()) {
output.writeBytes(2, signature_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!signatureHeader_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, signatureHeader_);
}
if (!signature_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, signature_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigSignature)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.common.Configtx.ConfigSignature other = (org.hyperledger.fabric.protos.common.Configtx.ConfigSignature) obj;
boolean result = true;
result = result && getSignatureHeader()
.equals(other.getSignatureHeader());
result = result && getSignature()
.equals(other.getSignature());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SIGNATURE_HEADER_FIELD_NUMBER;
hash = (53 * hash) + getSignatureHeader().hashCode();
hash = (37 * hash) + SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getSignature().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigSignature parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigSignature 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.Configtx.ConfigSignature parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigSignature 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.Configtx.ConfigSignature parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigSignature 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.Configtx.ConfigSignature parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigSignature 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.Configtx.ConfigSignature 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.Configtx.ConfigSignature parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configtx.ConfigSignature prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code common.ConfigSignature}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:common.ConfigSignature)
org.hyperledger.fabric.protos.common.Configtx.ConfigSignatureOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigSignature_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigSignature_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.class, org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
signatureHeader_ = com.google.protobuf.ByteString.EMPTY;
signature_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigSignature_descriptor;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigSignature getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.getDefaultInstance();
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigSignature build() {
org.hyperledger.fabric.protos.common.Configtx.ConfigSignature result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigSignature buildPartial() {
org.hyperledger.fabric.protos.common.Configtx.ConfigSignature result = new org.hyperledger.fabric.protos.common.Configtx.ConfigSignature(this);
result.signatureHeader_ = signatureHeader_;
result.signature_ = signature_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigSignature) {
return mergeFrom((org.hyperledger.fabric.protos.common.Configtx.ConfigSignature)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configtx.ConfigSignature other) {
if (other == org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.getDefaultInstance()) return this;
if (other.getSignatureHeader() != com.google.protobuf.ByteString.EMPTY) {
setSignatureHeader(other.getSignatureHeader());
}
if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) {
setSignature(other.getSignature());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.fabric.protos.common.Configtx.ConfigSignature parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.fabric.protos.common.Configtx.ConfigSignature) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString signatureHeader_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* A marshaled SignatureHeader
*
*
* bytes signature_header = 1;
*/
public com.google.protobuf.ByteString getSignatureHeader() {
return signatureHeader_;
}
/**
*
* A marshaled SignatureHeader
*
*
* bytes signature_header = 1;
*/
public Builder setSignatureHeader(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
signatureHeader_ = value;
onChanged();
return this;
}
/**
*
* A marshaled SignatureHeader
*
*
* bytes signature_header = 1;
*/
public Builder clearSignatureHeader() {
signatureHeader_ = getDefaultInstance().getSignatureHeader();
onChanged();
return this;
}
private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Signature over the concatenation signatureHeader bytes and config bytes
*
*
* bytes signature = 2;
*/
public com.google.protobuf.ByteString getSignature() {
return signature_;
}
/**
*
* Signature over the concatenation signatureHeader bytes and config bytes
*
*
* bytes signature = 2;
*/
public Builder setSignature(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
signature_ = value;
onChanged();
return this;
}
/**
*
* Signature over the concatenation signatureHeader bytes and config bytes
*
*
* bytes signature = 2;
*/
public Builder clearSignature() {
signature_ = getDefaultInstance().getSignature();
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:common.ConfigSignature)
}
// @@protoc_insertion_point(class_scope:common.ConfigSignature)
private static final org.hyperledger.fabric.protos.common.Configtx.ConfigSignature DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configtx.ConfigSignature();
}
public static org.hyperledger.fabric.protos.common.Configtx.ConfigSignature getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ConfigSignature parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConfigSignature(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.fabric.protos.common.Configtx.ConfigSignature getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_common_ConfigEnvelope_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_common_ConfigEnvelope_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_common_ConfigGroupSchema_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_common_ConfigGroupSchema_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_common_ConfigGroupSchema_GroupsEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_common_ConfigGroupSchema_GroupsEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_common_ConfigGroupSchema_ValuesEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_common_ConfigGroupSchema_ValuesEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_common_ConfigGroupSchema_PoliciesEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_common_ConfigGroupSchema_PoliciesEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_common_ConfigValueSchema_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_common_ConfigValueSchema_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_common_ConfigPolicySchema_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_common_ConfigPolicySchema_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_common_Config_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_common_Config_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_common_ConfigUpdateEnvelope_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_common_ConfigUpdateEnvelope_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_common_ConfigUpdate_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_common_ConfigUpdate_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_common_ConfigGroup_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_common_ConfigGroup_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_common_ConfigGroup_GroupsEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_common_ConfigGroup_GroupsEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_common_ConfigGroup_ValuesEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_common_ConfigGroup_ValuesEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_common_ConfigGroup_PoliciesEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_common_ConfigGroup_PoliciesEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_common_ConfigValue_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_common_ConfigValue_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_common_ConfigPolicy_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_common_ConfigPolicy_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_common_ConfigSignature_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_common_ConfigSignature_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\025common/configtx.proto\022\006common\032\023common/" +
"common.proto\032\025common/policies.proto\"W\n\016C" +
"onfigEnvelope\022\036\n\006config\030\001 \001(\0132\016.common.C" +
"onfig\022%\n\013last_update\030\002 \001(\0132\020.common.Enve" +
"lope\"\235\003\n\021ConfigGroupSchema\0225\n\006groups\030\001 \003" +
"(\0132%.common.ConfigGroupSchema.GroupsEntr" +
"y\0225\n\006values\030\002 \003(\0132%.common.ConfigGroupSc" +
"hema.ValuesEntry\0229\n\010policies\030\003 \003(\0132\'.com" +
"mon.ConfigGroupSchema.PoliciesEntry\032H\n\013G" +
"roupsEntry\022\013\n\003key\030\001 \001(\t\022(\n\005value\030\002 \001(\0132\031",
".common.ConfigGroupSchema:\0028\001\032H\n\013ValuesE" +
"ntry\022\013\n\003key\030\001 \001(\t\022(\n\005value\030\002 \001(\0132\031.commo" +
"n.ConfigValueSchema:\0028\001\032K\n\rPoliciesEntry" +
"\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.common.Co" +
"nfigPolicySchema:\0028\001\"\023\n\021ConfigValueSchem" +
"a\"\024\n\022ConfigPolicySchema\"F\n\006Config\022\020\n\010seq" +
"uence\030\001 \001(\004\022*\n\rchannel_group\030\002 \001(\0132\023.com" +
"mon.ConfigGroup\"Z\n\024ConfigUpdateEnvelope\022" +
"\025\n\rconfig_update\030\001 \001(\014\022+\n\nsignatures\030\002 \003" +
"(\0132\027.common.ConfigSignature\"q\n\014ConfigUpd",
"ate\022\022\n\nchannel_id\030\001 \001(\t\022%\n\010read_set\030\002 \001(" +
"\0132\023.common.ConfigGroup\022&\n\twrite_set\030\003 \001(" +
"\0132\023.common.ConfigGroup\"\230\003\n\013ConfigGroup\022\017" +
"\n\007version\030\001 \001(\004\022/\n\006groups\030\002 \003(\0132\037.common" +
".ConfigGroup.GroupsEntry\022/\n\006values\030\003 \003(\013" +
"2\037.common.ConfigGroup.ValuesEntry\0223\n\010pol" +
"icies\030\004 \003(\0132!.common.ConfigGroup.Policie" +
"sEntry\022\022\n\nmod_policy\030\005 \001(\t\032B\n\013GroupsEntr" +
"y\022\013\n\003key\030\001 \001(\t\022\"\n\005value\030\002 \001(\0132\023.common.C" +
"onfigGroup:\0028\001\032B\n\013ValuesEntry\022\013\n\003key\030\001 \001",
"(\t\022\"\n\005value\030\002 \001(\0132\023.common.ConfigValue:\002" +
"8\001\032E\n\rPoliciesEntry\022\013\n\003key\030\001 \001(\t\022#\n\005valu" +
"e\030\002 \001(\0132\024.common.ConfigPolicy:\0028\001\"A\n\013Con" +
"figValue\022\017\n\007version\030\001 \001(\004\022\r\n\005value\030\002 \001(\014" +
"\022\022\n\nmod_policy\030\003 \001(\t\"S\n\014ConfigPolicy\022\017\n\007" +
"version\030\001 \001(\004\022\036\n\006policy\030\002 \001(\0132\016.common.P" +
"olicy\022\022\n\nmod_policy\030\003 \001(\t\">\n\017ConfigSigna" +
"ture\022\030\n\020signature_header\030\001 \001(\014\022\021\n\tsignat" +
"ure\030\002 \001(\014BS\n$org.hyperledger.fabric.prot" +
"os.commonZ+github.com/hyperledger/fabric",
"/protos/commonb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.hyperledger.fabric.protos.common.Common.getDescriptor(),
org.hyperledger.fabric.protos.common.Policies.getDescriptor(),
}, assigner);
internal_static_common_ConfigEnvelope_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_common_ConfigEnvelope_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_common_ConfigEnvelope_descriptor,
new java.lang.String[] { "Config", "LastUpdate", });
internal_static_common_ConfigGroupSchema_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_common_ConfigGroupSchema_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_common_ConfigGroupSchema_descriptor,
new java.lang.String[] { "Groups", "Values", "Policies", });
internal_static_common_ConfigGroupSchema_GroupsEntry_descriptor =
internal_static_common_ConfigGroupSchema_descriptor.getNestedTypes().get(0);
internal_static_common_ConfigGroupSchema_GroupsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_common_ConfigGroupSchema_GroupsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_common_ConfigGroupSchema_ValuesEntry_descriptor =
internal_static_common_ConfigGroupSchema_descriptor.getNestedTypes().get(1);
internal_static_common_ConfigGroupSchema_ValuesEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_common_ConfigGroupSchema_ValuesEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_common_ConfigGroupSchema_PoliciesEntry_descriptor =
internal_static_common_ConfigGroupSchema_descriptor.getNestedTypes().get(2);
internal_static_common_ConfigGroupSchema_PoliciesEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_common_ConfigGroupSchema_PoliciesEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_common_ConfigValueSchema_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_common_ConfigValueSchema_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_common_ConfigValueSchema_descriptor,
new java.lang.String[] { });
internal_static_common_ConfigPolicySchema_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_common_ConfigPolicySchema_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_common_ConfigPolicySchema_descriptor,
new java.lang.String[] { });
internal_static_common_Config_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_common_Config_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_common_Config_descriptor,
new java.lang.String[] { "Sequence", "ChannelGroup", });
internal_static_common_ConfigUpdateEnvelope_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_common_ConfigUpdateEnvelope_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_common_ConfigUpdateEnvelope_descriptor,
new java.lang.String[] { "ConfigUpdate", "Signatures", });
internal_static_common_ConfigUpdate_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_common_ConfigUpdate_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_common_ConfigUpdate_descriptor,
new java.lang.String[] { "ChannelId", "ReadSet", "WriteSet", });
internal_static_common_ConfigGroup_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_common_ConfigGroup_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_common_ConfigGroup_descriptor,
new java.lang.String[] { "Version", "Groups", "Values", "Policies", "ModPolicy", });
internal_static_common_ConfigGroup_GroupsEntry_descriptor =
internal_static_common_ConfigGroup_descriptor.getNestedTypes().get(0);
internal_static_common_ConfigGroup_GroupsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_common_ConfigGroup_GroupsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_common_ConfigGroup_ValuesEntry_descriptor =
internal_static_common_ConfigGroup_descriptor.getNestedTypes().get(1);
internal_static_common_ConfigGroup_ValuesEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_common_ConfigGroup_ValuesEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_common_ConfigGroup_PoliciesEntry_descriptor =
internal_static_common_ConfigGroup_descriptor.getNestedTypes().get(2);
internal_static_common_ConfigGroup_PoliciesEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_common_ConfigGroup_PoliciesEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_common_ConfigValue_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_common_ConfigValue_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_common_ConfigValue_descriptor,
new java.lang.String[] { "Version", "Value", "ModPolicy", });
internal_static_common_ConfigPolicy_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_common_ConfigPolicy_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_common_ConfigPolicy_descriptor,
new java.lang.String[] { "Version", "Policy", "ModPolicy", });
internal_static_common_ConfigSignature_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_common_ConfigSignature_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_common_ConfigSignature_descriptor,
new java.lang.String[] { "SignatureHeader", "Signature", });
org.hyperledger.fabric.protos.common.Common.getDescriptor();
org.hyperledger.fabric.protos.common.Policies.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy