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

org.hyperledger.fabric.protos.common.Configuration Maven / Gradle / Ivy

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

package org.hyperledger.fabric.protos.common;

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

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

    /**
     * 
     * Currently supported algorithms are: SHAKE256
     * 
* * optional string name = 1; */ java.lang.String getName(); /** *
     * Currently supported algorithms are: SHAKE256
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); } /** *
   * HashingAlgorithm is encoded into the configuration transaction as  a configuration item of type Chain
   * with a Key of "HashingAlgorithm" and a Value of  HashingAlgorithm as marshaled protobuf bytes
   * 
* * Protobuf type {@code common.HashingAlgorithm} */ public static final class HashingAlgorithm extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.HashingAlgorithm) HashingAlgorithmOrBuilder { // Use HashingAlgorithm.newBuilder() to construct. private HashingAlgorithm(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HashingAlgorithm() { name_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private HashingAlgorithm( 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(); name_ = 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.Configuration.internal_static_common_HashingAlgorithm_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_HashingAlgorithm_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm.class, org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Currently supported algorithms are: SHAKE256
     * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * Currently supported algorithms are: SHAKE256
     * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; 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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } 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.Configuration.HashingAlgorithm)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm other = (org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm) obj; boolean result = true; result = result && getName() .equals(other.getName()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * HashingAlgorithm is encoded into the configuration transaction as  a configuration item of type Chain
     * with a Key of "HashingAlgorithm" and a Value of  HashingAlgorithm as marshaled protobuf bytes
     * 
* * Protobuf type {@code common.HashingAlgorithm} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.HashingAlgorithm) org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithmOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_HashingAlgorithm_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_HashingAlgorithm_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm.class, org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_HashingAlgorithm_descriptor; } public org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm.getDefaultInstance(); } public org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm build() { org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm buildPartial() { org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm result = new org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm(this); result.name_ = name_; onBuilt(); return result; } 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.Configuration.HashingAlgorithm) { return mergeFrom((org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm other) { if (other == org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } 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.Configuration.HashingAlgorithm parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** *
       * Currently supported algorithms are: SHAKE256
       * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Currently supported algorithms are: SHAKE256
       * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Currently supported algorithms are: SHAKE256
       * 
* * optional string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Currently supported algorithms are: SHAKE256
       * 
* * optional string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Currently supported algorithms are: SHAKE256
       * 
* * optional string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = 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.HashingAlgorithm) } // @@protoc_insertion_point(class_scope:common.HashingAlgorithm) private static final org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm(); } public static org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public HashingAlgorithm parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HashingAlgorithm(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.common.Configuration.HashingAlgorithm getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BlockDataHashingStructureOrBuilder extends // @@protoc_insertion_point(interface_extends:common.BlockDataHashingStructure) com.google.protobuf.MessageOrBuilder { /** *
     * width specifies the width of the Merkle tree to use when computing the BlockDataHash
     * in order to replicate flat hashing, set this width to MAX_UINT32
     * 
* * optional uint32 width = 1; */ int getWidth(); } /** *
   * BlockDataHashingStructure is encoded into the configuration transaction as a configuration item of
   * type Chain with a Key of "BlockDataHashingStructure" and a Value of HashingAlgorithm as marshaled protobuf bytes
   * 
* * Protobuf type {@code common.BlockDataHashingStructure} */ public static final class BlockDataHashingStructure extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.BlockDataHashingStructure) BlockDataHashingStructureOrBuilder { // Use BlockDataHashingStructure.newBuilder() to construct. private BlockDataHashingStructure(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BlockDataHashingStructure() { width_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private BlockDataHashingStructure( 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: { width_ = input.readUInt32(); 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.Configuration.internal_static_common_BlockDataHashingStructure_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_BlockDataHashingStructure_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure.class, org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure.Builder.class); } public static final int WIDTH_FIELD_NUMBER = 1; private int width_; /** *
     * width specifies the width of the Merkle tree to use when computing the BlockDataHash
     * in order to replicate flat hashing, set this width to MAX_UINT32
     * 
* * optional uint32 width = 1; */ public int getWidth() { return width_; } 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 (width_ != 0) { output.writeUInt32(1, width_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (width_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, width_); } 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.Configuration.BlockDataHashingStructure)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure other = (org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure) obj; boolean result = true; result = result && (getWidth() == other.getWidth()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + WIDTH_FIELD_NUMBER; hash = (53 * hash) + getWidth(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * BlockDataHashingStructure is encoded into the configuration transaction as a configuration item of
     * type Chain with a Key of "BlockDataHashingStructure" and a Value of HashingAlgorithm as marshaled protobuf bytes
     * 
* * Protobuf type {@code common.BlockDataHashingStructure} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.BlockDataHashingStructure) org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructureOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_BlockDataHashingStructure_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_BlockDataHashingStructure_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure.class, org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); width_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_BlockDataHashingStructure_descriptor; } public org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure.getDefaultInstance(); } public org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure build() { org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure buildPartial() { org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure result = new org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure(this); result.width_ = width_; onBuilt(); return result; } 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.Configuration.BlockDataHashingStructure) { return mergeFrom((org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure other) { if (other == org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure.getDefaultInstance()) return this; if (other.getWidth() != 0) { setWidth(other.getWidth()); } 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.Configuration.BlockDataHashingStructure parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int width_ ; /** *
       * width specifies the width of the Merkle tree to use when computing the BlockDataHash
       * in order to replicate flat hashing, set this width to MAX_UINT32
       * 
* * optional uint32 width = 1; */ public int getWidth() { return width_; } /** *
       * width specifies the width of the Merkle tree to use when computing the BlockDataHash
       * in order to replicate flat hashing, set this width to MAX_UINT32
       * 
* * optional uint32 width = 1; */ public Builder setWidth(int value) { width_ = value; onChanged(); return this; } /** *
       * width specifies the width of the Merkle tree to use when computing the BlockDataHash
       * in order to replicate flat hashing, set this width to MAX_UINT32
       * 
* * optional uint32 width = 1; */ public Builder clearWidth() { width_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:common.BlockDataHashingStructure) } // @@protoc_insertion_point(class_scope:common.BlockDataHashingStructure) private static final org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure(); } public static org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BlockDataHashingStructure parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BlockDataHashingStructure(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.common.Configuration.BlockDataHashingStructure getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OrdererAddressesOrBuilder extends // @@protoc_insertion_point(interface_extends:common.OrdererAddresses) com.google.protobuf.MessageOrBuilder { /** * repeated string addresses = 1; */ java.util.List getAddressesList(); /** * repeated string addresses = 1; */ int getAddressesCount(); /** * repeated string addresses = 1; */ java.lang.String getAddresses(int index); /** * repeated string addresses = 1; */ com.google.protobuf.ByteString getAddressesBytes(int index); } /** *
   * OrdererAddresses is encoded into the configuration transaction as a configuration item of type Chain
   * with a Key of "OrdererAddresses" and a Value of OrdererAddresses as marshaled protobuf bytes
   * 
* * Protobuf type {@code common.OrdererAddresses} */ public static final class OrdererAddresses extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.OrdererAddresses) OrdererAddressesOrBuilder { // Use OrdererAddresses.newBuilder() to construct. private OrdererAddresses(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OrdererAddresses() { addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private OrdererAddresses( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { addresses_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } addresses_.add(s); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { addresses_ = addresses_.getUnmodifiableView(); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_OrdererAddresses_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_OrdererAddresses_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses.class, org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses.Builder.class); } public static final int ADDRESSES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList addresses_; /** * repeated string addresses = 1; */ public com.google.protobuf.ProtocolStringList getAddressesList() { return addresses_; } /** * repeated string addresses = 1; */ public int getAddressesCount() { return addresses_.size(); } /** * repeated string addresses = 1; */ public java.lang.String getAddresses(int index) { return addresses_.get(index); } /** * repeated string addresses = 1; */ public com.google.protobuf.ByteString getAddressesBytes(int index) { return addresses_.getByteString(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < addresses_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addresses_.getRaw(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < addresses_.size(); i++) { dataSize += computeStringSizeNoTag(addresses_.getRaw(i)); } size += dataSize; size += 1 * getAddressesList().size(); } 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.Configuration.OrdererAddresses)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses other = (org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses) obj; boolean result = true; result = result && getAddressesList() .equals(other.getAddressesList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getAddressesCount() > 0) { hash = (37 * hash) + ADDRESSES_FIELD_NUMBER; hash = (53 * hash) + getAddressesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * OrdererAddresses is encoded into the configuration transaction as a configuration item of type Chain
     * with a Key of "OrdererAddresses" and a Value of OrdererAddresses as marshaled protobuf bytes
     * 
* * Protobuf type {@code common.OrdererAddresses} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.OrdererAddresses) org.hyperledger.fabric.protos.common.Configuration.OrdererAddressesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_OrdererAddresses_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_OrdererAddresses_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses.class, org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_OrdererAddresses_descriptor; } public org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses.getDefaultInstance(); } public org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses build() { org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses buildPartial() { org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses result = new org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { addresses_ = addresses_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.addresses_ = addresses_; 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.Configuration.OrdererAddresses) { return mergeFrom((org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses other) { if (other == org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses.getDefaultInstance()) return this; if (!other.addresses_.isEmpty()) { if (addresses_.isEmpty()) { addresses_ = other.addresses_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAddressesIsMutable(); addresses_.addAll(other.addresses_); } onChanged(); } 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.Configuration.OrdererAddresses parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAddressesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { addresses_ = new com.google.protobuf.LazyStringArrayList(addresses_); bitField0_ |= 0x00000001; } } /** * repeated string addresses = 1; */ public com.google.protobuf.ProtocolStringList getAddressesList() { return addresses_.getUnmodifiableView(); } /** * repeated string addresses = 1; */ public int getAddressesCount() { return addresses_.size(); } /** * repeated string addresses = 1; */ public java.lang.String getAddresses(int index) { return addresses_.get(index); } /** * repeated string addresses = 1; */ public com.google.protobuf.ByteString getAddressesBytes(int index) { return addresses_.getByteString(index); } /** * repeated string addresses = 1; */ public Builder setAddresses( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAddressesIsMutable(); addresses_.set(index, value); onChanged(); return this; } /** * repeated string addresses = 1; */ public Builder addAddresses( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAddressesIsMutable(); addresses_.add(value); onChanged(); return this; } /** * repeated string addresses = 1; */ public Builder addAllAddresses( java.lang.Iterable values) { ensureAddressesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, addresses_); onChanged(); return this; } /** * repeated string addresses = 1; */ public Builder clearAddresses() { addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string addresses = 1; */ public Builder addAddressesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAddressesIsMutable(); addresses_.add(value); onChanged(); return this; } 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.OrdererAddresses) } // @@protoc_insertion_point(class_scope:common.OrdererAddresses) private static final org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses(); } public static org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OrdererAddresses parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OrdererAddresses(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.common.Configuration.OrdererAddresses getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConsortiumOrBuilder extends // @@protoc_insertion_point(interface_extends:common.Consortium) com.google.protobuf.MessageOrBuilder { /** * optional string name = 1; */ java.lang.String getName(); /** * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); } /** *
   * Consortium represents the consortium context in which the channel was created
   * 
* * Protobuf type {@code common.Consortium} */ public static final class Consortium extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.Consortium) ConsortiumOrBuilder { // Use Consortium.newBuilder() to construct. private Consortium(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Consortium() { name_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Consortium( 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(); name_ = 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.Configuration.internal_static_common_Consortium_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_Consortium_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configuration.Consortium.class, org.hyperledger.fabric.protos.common.Configuration.Consortium.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; 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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } 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.Configuration.Consortium)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Configuration.Consortium other = (org.hyperledger.fabric.protos.common.Configuration.Consortium) obj; boolean result = true; result = result && getName() .equals(other.getName()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Configuration.Consortium parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configuration.Consortium parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configuration.Consortium parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configuration.Consortium parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configuration.Consortium parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configuration.Consortium parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configuration.Consortium parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configuration.Consortium parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configuration.Consortium parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configuration.Consortium parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configuration.Consortium prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Consortium represents the consortium context in which the channel was created
     * 
* * Protobuf type {@code common.Consortium} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.Consortium) org.hyperledger.fabric.protos.common.Configuration.ConsortiumOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_Consortium_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_Consortium_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configuration.Consortium.class, org.hyperledger.fabric.protos.common.Configuration.Consortium.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Configuration.Consortium.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Configuration.internal_static_common_Consortium_descriptor; } public org.hyperledger.fabric.protos.common.Configuration.Consortium getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Configuration.Consortium.getDefaultInstance(); } public org.hyperledger.fabric.protos.common.Configuration.Consortium build() { org.hyperledger.fabric.protos.common.Configuration.Consortium result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.common.Configuration.Consortium buildPartial() { org.hyperledger.fabric.protos.common.Configuration.Consortium result = new org.hyperledger.fabric.protos.common.Configuration.Consortium(this); result.name_ = name_; onBuilt(); return result; } 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.Configuration.Consortium) { return mergeFrom((org.hyperledger.fabric.protos.common.Configuration.Consortium)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configuration.Consortium other) { if (other == org.hyperledger.fabric.protos.common.Configuration.Consortium.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } 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.Configuration.Consortium parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.common.Configuration.Consortium) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * optional string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = 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.Consortium) } // @@protoc_insertion_point(class_scope:common.Consortium) private static final org.hyperledger.fabric.protos.common.Configuration.Consortium DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configuration.Consortium(); } public static org.hyperledger.fabric.protos.common.Configuration.Consortium getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Consortium parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Consortium(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.common.Configuration.Consortium getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_HashingAlgorithm_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_HashingAlgorithm_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_BlockDataHashingStructure_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_BlockDataHashingStructure_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_OrdererAddresses_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_OrdererAddresses_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_Consortium_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_Consortium_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\032common/configuration.proto\022\006common\" \n\020" + "HashingAlgorithm\022\014\n\004name\030\001 \001(\t\"*\n\031BlockD" + "ataHashingStructure\022\r\n\005width\030\001 \001(\r\"%\n\020Or" + "dererAddresses\022\021\n\taddresses\030\001 \003(\t\"\032\n\nCon" + "sortium\022\014\n\004name\030\001 \001(\tBS\n$org.hyperledger" + ".fabric.protos.commonZ+github.com/hyperl" + "edger/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[] { }, assigner); internal_static_common_HashingAlgorithm_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_common_HashingAlgorithm_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_HashingAlgorithm_descriptor, new java.lang.String[] { "Name", }); internal_static_common_BlockDataHashingStructure_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_common_BlockDataHashingStructure_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_BlockDataHashingStructure_descriptor, new java.lang.String[] { "Width", }); internal_static_common_OrdererAddresses_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_common_OrdererAddresses_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_OrdererAddresses_descriptor, new java.lang.String[] { "Addresses", }); internal_static_common_Consortium_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_common_Consortium_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_Consortium_descriptor, new java.lang.String[] { "Name", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy