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

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

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: common/ledger.proto
// Protobuf Java Version: 4.28.2

package org.hyperledger.fabric.protos.common;

/**
 * 
 * Contains information about the blockchain ledger such as height, current
 * block hash, and previous block hash.
 * 
* * Protobuf type {@code common.BlockchainInfo} */ public final class BlockchainInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:common.BlockchainInfo) BlockchainInfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 2, /* suffix= */ "", BlockchainInfo.class.getName()); } // Use BlockchainInfo.newBuilder() to construct. private BlockchainInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private BlockchainInfo() { currentBlockHash_ = com.google.protobuf.ByteString.EMPTY; previousBlockHash_ = com.google.protobuf.ByteString.EMPTY; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.LedgerProto.internal_static_common_BlockchainInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.LedgerProto.internal_static_common_BlockchainInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.BlockchainInfo.class, org.hyperledger.fabric.protos.common.BlockchainInfo.Builder.class); } private int bitField0_; public static final int HEIGHT_FIELD_NUMBER = 1; private long height_ = 0L; /** * uint64 height = 1 [json_name = "height"]; * @return The height. */ @java.lang.Override public long getHeight() { return height_; } public static final int CURRENTBLOCKHASH_FIELD_NUMBER = 2; private com.google.protobuf.ByteString currentBlockHash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes currentBlockHash = 2 [json_name = "currentBlockHash"]; * @return The currentBlockHash. */ @java.lang.Override public com.google.protobuf.ByteString getCurrentBlockHash() { return currentBlockHash_; } public static final int PREVIOUSBLOCKHASH_FIELD_NUMBER = 3; private com.google.protobuf.ByteString previousBlockHash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes previousBlockHash = 3 [json_name = "previousBlockHash"]; * @return The previousBlockHash. */ @java.lang.Override public com.google.protobuf.ByteString getPreviousBlockHash() { return previousBlockHash_; } public static final int BOOTSTRAPPINGSNAPSHOTINFO_FIELD_NUMBER = 4; private org.hyperledger.fabric.protos.common.BootstrappingSnapshotInfo bootstrappingSnapshotInfo_; /** *
   * Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot.
   * It is nil if the channel is not bootstrapped from a snapshot.
   * 
* * .common.BootstrappingSnapshotInfo bootstrappingSnapshotInfo = 4 [json_name = "bootstrappingSnapshotInfo"]; * @return Whether the bootstrappingSnapshotInfo field is set. */ @java.lang.Override public boolean hasBootstrappingSnapshotInfo() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot.
   * It is nil if the channel is not bootstrapped from a snapshot.
   * 
* * .common.BootstrappingSnapshotInfo bootstrappingSnapshotInfo = 4 [json_name = "bootstrappingSnapshotInfo"]; * @return The bootstrappingSnapshotInfo. */ @java.lang.Override public org.hyperledger.fabric.protos.common.BootstrappingSnapshotInfo getBootstrappingSnapshotInfo() { return bootstrappingSnapshotInfo_ == null ? org.hyperledger.fabric.protos.common.BootstrappingSnapshotInfo.getDefaultInstance() : bootstrappingSnapshotInfo_; } /** *
   * Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot.
   * It is nil if the channel is not bootstrapped from a snapshot.
   * 
* * .common.BootstrappingSnapshotInfo bootstrappingSnapshotInfo = 4 [json_name = "bootstrappingSnapshotInfo"]; */ @java.lang.Override public org.hyperledger.fabric.protos.common.BootstrappingSnapshotInfoOrBuilder getBootstrappingSnapshotInfoOrBuilder() { return bootstrappingSnapshotInfo_ == null ? org.hyperledger.fabric.protos.common.BootstrappingSnapshotInfo.getDefaultInstance() : bootstrappingSnapshotInfo_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (height_ != 0L) { output.writeUInt64(1, height_); } if (!currentBlockHash_.isEmpty()) { output.writeBytes(2, currentBlockHash_); } if (!previousBlockHash_.isEmpty()) { output.writeBytes(3, previousBlockHash_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getBootstrappingSnapshotInfo()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (height_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, height_); } if (!currentBlockHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, currentBlockHash_); } if (!previousBlockHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, previousBlockHash_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getBootstrappingSnapshotInfo()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.BlockchainInfo)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.BlockchainInfo other = (org.hyperledger.fabric.protos.common.BlockchainInfo) obj; if (getHeight() != other.getHeight()) return false; if (!getCurrentBlockHash() .equals(other.getCurrentBlockHash())) return false; if (!getPreviousBlockHash() .equals(other.getPreviousBlockHash())) return false; if (hasBootstrappingSnapshotInfo() != other.hasBootstrappingSnapshotInfo()) return false; if (hasBootstrappingSnapshotInfo()) { if (!getBootstrappingSnapshotInfo() .equals(other.getBootstrappingSnapshotInfo())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + HEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getHeight()); hash = (37 * hash) + CURRENTBLOCKHASH_FIELD_NUMBER; hash = (53 * hash) + getCurrentBlockHash().hashCode(); hash = (37 * hash) + PREVIOUSBLOCKHASH_FIELD_NUMBER; hash = (53 * hash) + getPreviousBlockHash().hashCode(); if (hasBootstrappingSnapshotInfo()) { hash = (37 * hash) + BOOTSTRAPPINGSNAPSHOTINFO_FIELD_NUMBER; hash = (53 * hash) + getBootstrappingSnapshotInfo().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.BlockchainInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.BlockchainInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.BlockchainInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.BlockchainInfo 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.BlockchainInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.BlockchainInfo 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.BlockchainInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.BlockchainInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.common.BlockchainInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.BlockchainInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.common.BlockchainInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.BlockchainInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.common.BlockchainInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Contains information about the blockchain ledger such as height, current
   * block hash, and previous block hash.
   * 
* * Protobuf type {@code common.BlockchainInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:common.BlockchainInfo) org.hyperledger.fabric.protos.common.BlockchainInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.LedgerProto.internal_static_common_BlockchainInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.LedgerProto.internal_static_common_BlockchainInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.BlockchainInfo.class, org.hyperledger.fabric.protos.common.BlockchainInfo.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.BlockchainInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getBootstrappingSnapshotInfoFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; height_ = 0L; currentBlockHash_ = com.google.protobuf.ByteString.EMPTY; previousBlockHash_ = com.google.protobuf.ByteString.EMPTY; bootstrappingSnapshotInfo_ = null; if (bootstrappingSnapshotInfoBuilder_ != null) { bootstrappingSnapshotInfoBuilder_.dispose(); bootstrappingSnapshotInfoBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.LedgerProto.internal_static_common_BlockchainInfo_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.common.BlockchainInfo getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.BlockchainInfo.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.common.BlockchainInfo build() { org.hyperledger.fabric.protos.common.BlockchainInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.common.BlockchainInfo buildPartial() { org.hyperledger.fabric.protos.common.BlockchainInfo result = new org.hyperledger.fabric.protos.common.BlockchainInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.hyperledger.fabric.protos.common.BlockchainInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.height_ = height_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.currentBlockHash_ = currentBlockHash_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.previousBlockHash_ = previousBlockHash_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.bootstrappingSnapshotInfo_ = bootstrappingSnapshotInfoBuilder_ == null ? bootstrappingSnapshotInfo_ : bootstrappingSnapshotInfoBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.common.BlockchainInfo) { return mergeFrom((org.hyperledger.fabric.protos.common.BlockchainInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.BlockchainInfo other) { if (other == org.hyperledger.fabric.protos.common.BlockchainInfo.getDefaultInstance()) return this; if (other.getHeight() != 0L) { setHeight(other.getHeight()); } if (other.getCurrentBlockHash() != com.google.protobuf.ByteString.EMPTY) { setCurrentBlockHash(other.getCurrentBlockHash()); } if (other.getPreviousBlockHash() != com.google.protobuf.ByteString.EMPTY) { setPreviousBlockHash(other.getPreviousBlockHash()); } if (other.hasBootstrappingSnapshotInfo()) { mergeBootstrappingSnapshotInfo(other.getBootstrappingSnapshotInfo()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { height_ = input.readUInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { currentBlockHash_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { previousBlockHash_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getBootstrappingSnapshotInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long height_ ; /** * uint64 height = 1 [json_name = "height"]; * @return The height. */ @java.lang.Override public long getHeight() { return height_; } /** * uint64 height = 1 [json_name = "height"]; * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(long value) { height_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * uint64 height = 1 [json_name = "height"]; * @return This builder for chaining. */ public Builder clearHeight() { bitField0_ = (bitField0_ & ~0x00000001); height_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString currentBlockHash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes currentBlockHash = 2 [json_name = "currentBlockHash"]; * @return The currentBlockHash. */ @java.lang.Override public com.google.protobuf.ByteString getCurrentBlockHash() { return currentBlockHash_; } /** * bytes currentBlockHash = 2 [json_name = "currentBlockHash"]; * @param value The currentBlockHash to set. * @return This builder for chaining. */ public Builder setCurrentBlockHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } currentBlockHash_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes currentBlockHash = 2 [json_name = "currentBlockHash"]; * @return This builder for chaining. */ public Builder clearCurrentBlockHash() { bitField0_ = (bitField0_ & ~0x00000002); currentBlockHash_ = getDefaultInstance().getCurrentBlockHash(); onChanged(); return this; } private com.google.protobuf.ByteString previousBlockHash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes previousBlockHash = 3 [json_name = "previousBlockHash"]; * @return The previousBlockHash. */ @java.lang.Override public com.google.protobuf.ByteString getPreviousBlockHash() { return previousBlockHash_; } /** * bytes previousBlockHash = 3 [json_name = "previousBlockHash"]; * @param value The previousBlockHash to set. * @return This builder for chaining. */ public Builder setPreviousBlockHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } previousBlockHash_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bytes previousBlockHash = 3 [json_name = "previousBlockHash"]; * @return This builder for chaining. */ public Builder clearPreviousBlockHash() { bitField0_ = (bitField0_ & ~0x00000004); previousBlockHash_ = getDefaultInstance().getPreviousBlockHash(); onChanged(); return this; } private org.hyperledger.fabric.protos.common.BootstrappingSnapshotInfo bootstrappingSnapshotInfo_; private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.common.BootstrappingSnapshotInfo, org.hyperledger.fabric.protos.common.BootstrappingSnapshotInfo.Builder, org.hyperledger.fabric.protos.common.BootstrappingSnapshotInfoOrBuilder> bootstrappingSnapshotInfoBuilder_; /** *
     * Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot.
     * It is nil if the channel is not bootstrapped from a snapshot.
     * 
* * .common.BootstrappingSnapshotInfo bootstrappingSnapshotInfo = 4 [json_name = "bootstrappingSnapshotInfo"]; * @return Whether the bootstrappingSnapshotInfo field is set. */ public boolean hasBootstrappingSnapshotInfo() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot.
     * It is nil if the channel is not bootstrapped from a snapshot.
     * 
* * .common.BootstrappingSnapshotInfo bootstrappingSnapshotInfo = 4 [json_name = "bootstrappingSnapshotInfo"]; * @return The bootstrappingSnapshotInfo. */ public org.hyperledger.fabric.protos.common.BootstrappingSnapshotInfo getBootstrappingSnapshotInfo() { if (bootstrappingSnapshotInfoBuilder_ == null) { return bootstrappingSnapshotInfo_ == null ? org.hyperledger.fabric.protos.common.BootstrappingSnapshotInfo.getDefaultInstance() : bootstrappingSnapshotInfo_; } else { return bootstrappingSnapshotInfoBuilder_.getMessage(); } } /** *
     * Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot.
     * It is nil if the channel is not bootstrapped from a snapshot.
     * 
* * .common.BootstrappingSnapshotInfo bootstrappingSnapshotInfo = 4 [json_name = "bootstrappingSnapshotInfo"]; */ public Builder setBootstrappingSnapshotInfo(org.hyperledger.fabric.protos.common.BootstrappingSnapshotInfo value) { if (bootstrappingSnapshotInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bootstrappingSnapshotInfo_ = value; } else { bootstrappingSnapshotInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot.
     * It is nil if the channel is not bootstrapped from a snapshot.
     * 
* * .common.BootstrappingSnapshotInfo bootstrappingSnapshotInfo = 4 [json_name = "bootstrappingSnapshotInfo"]; */ public Builder setBootstrappingSnapshotInfo( org.hyperledger.fabric.protos.common.BootstrappingSnapshotInfo.Builder builderForValue) { if (bootstrappingSnapshotInfoBuilder_ == null) { bootstrappingSnapshotInfo_ = builderForValue.build(); } else { bootstrappingSnapshotInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot.
     * It is nil if the channel is not bootstrapped from a snapshot.
     * 
* * .common.BootstrappingSnapshotInfo bootstrappingSnapshotInfo = 4 [json_name = "bootstrappingSnapshotInfo"]; */ public Builder mergeBootstrappingSnapshotInfo(org.hyperledger.fabric.protos.common.BootstrappingSnapshotInfo value) { if (bootstrappingSnapshotInfoBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && bootstrappingSnapshotInfo_ != null && bootstrappingSnapshotInfo_ != org.hyperledger.fabric.protos.common.BootstrappingSnapshotInfo.getDefaultInstance()) { getBootstrappingSnapshotInfoBuilder().mergeFrom(value); } else { bootstrappingSnapshotInfo_ = value; } } else { bootstrappingSnapshotInfoBuilder_.mergeFrom(value); } if (bootstrappingSnapshotInfo_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
     * Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot.
     * It is nil if the channel is not bootstrapped from a snapshot.
     * 
* * .common.BootstrappingSnapshotInfo bootstrappingSnapshotInfo = 4 [json_name = "bootstrappingSnapshotInfo"]; */ public Builder clearBootstrappingSnapshotInfo() { bitField0_ = (bitField0_ & ~0x00000008); bootstrappingSnapshotInfo_ = null; if (bootstrappingSnapshotInfoBuilder_ != null) { bootstrappingSnapshotInfoBuilder_.dispose(); bootstrappingSnapshotInfoBuilder_ = null; } onChanged(); return this; } /** *
     * Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot.
     * It is nil if the channel is not bootstrapped from a snapshot.
     * 
* * .common.BootstrappingSnapshotInfo bootstrappingSnapshotInfo = 4 [json_name = "bootstrappingSnapshotInfo"]; */ public org.hyperledger.fabric.protos.common.BootstrappingSnapshotInfo.Builder getBootstrappingSnapshotInfoBuilder() { bitField0_ |= 0x00000008; onChanged(); return getBootstrappingSnapshotInfoFieldBuilder().getBuilder(); } /** *
     * Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot.
     * It is nil if the channel is not bootstrapped from a snapshot.
     * 
* * .common.BootstrappingSnapshotInfo bootstrappingSnapshotInfo = 4 [json_name = "bootstrappingSnapshotInfo"]; */ public org.hyperledger.fabric.protos.common.BootstrappingSnapshotInfoOrBuilder getBootstrappingSnapshotInfoOrBuilder() { if (bootstrappingSnapshotInfoBuilder_ != null) { return bootstrappingSnapshotInfoBuilder_.getMessageOrBuilder(); } else { return bootstrappingSnapshotInfo_ == null ? org.hyperledger.fabric.protos.common.BootstrappingSnapshotInfo.getDefaultInstance() : bootstrappingSnapshotInfo_; } } /** *
     * Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot.
     * It is nil if the channel is not bootstrapped from a snapshot.
     * 
* * .common.BootstrappingSnapshotInfo bootstrappingSnapshotInfo = 4 [json_name = "bootstrappingSnapshotInfo"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.common.BootstrappingSnapshotInfo, org.hyperledger.fabric.protos.common.BootstrappingSnapshotInfo.Builder, org.hyperledger.fabric.protos.common.BootstrappingSnapshotInfoOrBuilder> getBootstrappingSnapshotInfoFieldBuilder() { if (bootstrappingSnapshotInfoBuilder_ == null) { bootstrappingSnapshotInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.common.BootstrappingSnapshotInfo, org.hyperledger.fabric.protos.common.BootstrappingSnapshotInfo.Builder, org.hyperledger.fabric.protos.common.BootstrappingSnapshotInfoOrBuilder>( getBootstrappingSnapshotInfo(), getParentForChildren(), isClean()); bootstrappingSnapshotInfo_ = null; } return bootstrappingSnapshotInfoBuilder_; } // @@protoc_insertion_point(builder_scope:common.BlockchainInfo) } // @@protoc_insertion_point(class_scope:common.BlockchainInfo) private static final org.hyperledger.fabric.protos.common.BlockchainInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.BlockchainInfo(); } public static org.hyperledger.fabric.protos.common.BlockchainInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BlockchainInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.common.BlockchainInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy