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

org.hyperledger.fabric.protos.peer.SnapshotRequest Maven / Gradle / Ivy

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

package org.hyperledger.fabric.protos.peer;

/**
 * 
 * SnapshotRequest contains information for a generate/cancel snapshot request
 * 
* * Protobuf type {@code protos.SnapshotRequest} */ public final class SnapshotRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protos.SnapshotRequest) SnapshotRequestOrBuilder { 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= */ "", SnapshotRequest.class.getName()); } // Use SnapshotRequest.newBuilder() to construct. private SnapshotRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SnapshotRequest() { channelId_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.SnapshotProto.internal_static_protos_SnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.SnapshotProto.internal_static_protos_SnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.SnapshotRequest.class, org.hyperledger.fabric.protos.peer.SnapshotRequest.Builder.class); } private int bitField0_; public static final int SIGNATURE_HEADER_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.common.SignatureHeader signatureHeader_; /** *
   * The signature header that contains creator identity and nonce
   * 
* * .common.SignatureHeader signature_header = 1 [json_name = "signatureHeader"]; * @return Whether the signatureHeader field is set. */ @java.lang.Override public boolean hasSignatureHeader() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The signature header that contains creator identity and nonce
   * 
* * .common.SignatureHeader signature_header = 1 [json_name = "signatureHeader"]; * @return The signatureHeader. */ @java.lang.Override public org.hyperledger.fabric.protos.common.SignatureHeader getSignatureHeader() { return signatureHeader_ == null ? org.hyperledger.fabric.protos.common.SignatureHeader.getDefaultInstance() : signatureHeader_; } /** *
   * The signature header that contains creator identity and nonce
   * 
* * .common.SignatureHeader signature_header = 1 [json_name = "signatureHeader"]; */ @java.lang.Override public org.hyperledger.fabric.protos.common.SignatureHeaderOrBuilder getSignatureHeaderOrBuilder() { return signatureHeader_ == null ? org.hyperledger.fabric.protos.common.SignatureHeader.getDefaultInstance() : signatureHeader_; } public static final int CHANNEL_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object channelId_ = ""; /** *
   * The channel ID
   * 
* * string channel_id = 2 [json_name = "channelId"]; * @return The channelId. */ @java.lang.Override public java.lang.String getChannelId() { java.lang.Object ref = channelId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); channelId_ = s; return s; } } /** *
   * The channel ID
   * 
* * string channel_id = 2 [json_name = "channelId"]; * @return The bytes for channelId. */ @java.lang.Override public com.google.protobuf.ByteString getChannelIdBytes() { java.lang.Object ref = channelId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channelId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BLOCK_NUMBER_FIELD_NUMBER = 3; private long blockNumber_ = 0L; /** *
   * The block number to generate a snapshot
   * 
* * uint64 block_number = 3 [json_name = "blockNumber"]; * @return The blockNumber. */ @java.lang.Override public long getBlockNumber() { return blockNumber_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getSignatureHeader()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(channelId_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, channelId_); } if (blockNumber_ != 0L) { output.writeUInt64(3, blockNumber_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSignatureHeader()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(channelId_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, channelId_); } if (blockNumber_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, blockNumber_); } 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.peer.SnapshotRequest)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.SnapshotRequest other = (org.hyperledger.fabric.protos.peer.SnapshotRequest) obj; if (hasSignatureHeader() != other.hasSignatureHeader()) return false; if (hasSignatureHeader()) { if (!getSignatureHeader() .equals(other.getSignatureHeader())) return false; } if (!getChannelId() .equals(other.getChannelId())) return false; if (getBlockNumber() != other.getBlockNumber()) 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(); if (hasSignatureHeader()) { hash = (37 * hash) + SIGNATURE_HEADER_FIELD_NUMBER; hash = (53 * hash) + getSignatureHeader().hashCode(); } hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; hash = (53 * hash) + getChannelId().hashCode(); hash = (37 * hash) + BLOCK_NUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockNumber()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.SnapshotRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.SnapshotRequest 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.peer.SnapshotRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.SnapshotRequest 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.peer.SnapshotRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.SnapshotRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.SnapshotRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.SnapshotRequest 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.peer.SnapshotRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.SnapshotRequest 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.peer.SnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.SnapshotRequest 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.peer.SnapshotRequest 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; } /** *
   * SnapshotRequest contains information for a generate/cancel snapshot request
   * 
* * Protobuf type {@code protos.SnapshotRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protos.SnapshotRequest) org.hyperledger.fabric.protos.peer.SnapshotRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.SnapshotProto.internal_static_protos_SnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.SnapshotProto.internal_static_protos_SnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.SnapshotRequest.class, org.hyperledger.fabric.protos.peer.SnapshotRequest.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.SnapshotRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getSignatureHeaderFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; signatureHeader_ = null; if (signatureHeaderBuilder_ != null) { signatureHeaderBuilder_.dispose(); signatureHeaderBuilder_ = null; } channelId_ = ""; blockNumber_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.SnapshotProto.internal_static_protos_SnapshotRequest_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.SnapshotRequest getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.SnapshotRequest.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.SnapshotRequest build() { org.hyperledger.fabric.protos.peer.SnapshotRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.SnapshotRequest buildPartial() { org.hyperledger.fabric.protos.peer.SnapshotRequest result = new org.hyperledger.fabric.protos.peer.SnapshotRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.hyperledger.fabric.protos.peer.SnapshotRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.signatureHeader_ = signatureHeaderBuilder_ == null ? signatureHeader_ : signatureHeaderBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.channelId_ = channelId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.blockNumber_ = blockNumber_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.SnapshotRequest) { return mergeFrom((org.hyperledger.fabric.protos.peer.SnapshotRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.SnapshotRequest other) { if (other == org.hyperledger.fabric.protos.peer.SnapshotRequest.getDefaultInstance()) return this; if (other.hasSignatureHeader()) { mergeSignatureHeader(other.getSignatureHeader()); } if (!other.getChannelId().isEmpty()) { channelId_ = other.channelId_; bitField0_ |= 0x00000002; onChanged(); } if (other.getBlockNumber() != 0L) { setBlockNumber(other.getBlockNumber()); } 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 10: { input.readMessage( getSignatureHeaderFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { channelId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { blockNumber_ = input.readUInt64(); bitField0_ |= 0x00000004; break; } // case 24 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 org.hyperledger.fabric.protos.common.SignatureHeader signatureHeader_; private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.common.SignatureHeader, org.hyperledger.fabric.protos.common.SignatureHeader.Builder, org.hyperledger.fabric.protos.common.SignatureHeaderOrBuilder> signatureHeaderBuilder_; /** *
     * The signature header that contains creator identity and nonce
     * 
* * .common.SignatureHeader signature_header = 1 [json_name = "signatureHeader"]; * @return Whether the signatureHeader field is set. */ public boolean hasSignatureHeader() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The signature header that contains creator identity and nonce
     * 
* * .common.SignatureHeader signature_header = 1 [json_name = "signatureHeader"]; * @return The signatureHeader. */ public org.hyperledger.fabric.protos.common.SignatureHeader getSignatureHeader() { if (signatureHeaderBuilder_ == null) { return signatureHeader_ == null ? org.hyperledger.fabric.protos.common.SignatureHeader.getDefaultInstance() : signatureHeader_; } else { return signatureHeaderBuilder_.getMessage(); } } /** *
     * The signature header that contains creator identity and nonce
     * 
* * .common.SignatureHeader signature_header = 1 [json_name = "signatureHeader"]; */ public Builder setSignatureHeader(org.hyperledger.fabric.protos.common.SignatureHeader value) { if (signatureHeaderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } signatureHeader_ = value; } else { signatureHeaderBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The signature header that contains creator identity and nonce
     * 
* * .common.SignatureHeader signature_header = 1 [json_name = "signatureHeader"]; */ public Builder setSignatureHeader( org.hyperledger.fabric.protos.common.SignatureHeader.Builder builderForValue) { if (signatureHeaderBuilder_ == null) { signatureHeader_ = builderForValue.build(); } else { signatureHeaderBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The signature header that contains creator identity and nonce
     * 
* * .common.SignatureHeader signature_header = 1 [json_name = "signatureHeader"]; */ public Builder mergeSignatureHeader(org.hyperledger.fabric.protos.common.SignatureHeader value) { if (signatureHeaderBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && signatureHeader_ != null && signatureHeader_ != org.hyperledger.fabric.protos.common.SignatureHeader.getDefaultInstance()) { getSignatureHeaderBuilder().mergeFrom(value); } else { signatureHeader_ = value; } } else { signatureHeaderBuilder_.mergeFrom(value); } if (signatureHeader_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * The signature header that contains creator identity and nonce
     * 
* * .common.SignatureHeader signature_header = 1 [json_name = "signatureHeader"]; */ public Builder clearSignatureHeader() { bitField0_ = (bitField0_ & ~0x00000001); signatureHeader_ = null; if (signatureHeaderBuilder_ != null) { signatureHeaderBuilder_.dispose(); signatureHeaderBuilder_ = null; } onChanged(); return this; } /** *
     * The signature header that contains creator identity and nonce
     * 
* * .common.SignatureHeader signature_header = 1 [json_name = "signatureHeader"]; */ public org.hyperledger.fabric.protos.common.SignatureHeader.Builder getSignatureHeaderBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSignatureHeaderFieldBuilder().getBuilder(); } /** *
     * The signature header that contains creator identity and nonce
     * 
* * .common.SignatureHeader signature_header = 1 [json_name = "signatureHeader"]; */ public org.hyperledger.fabric.protos.common.SignatureHeaderOrBuilder getSignatureHeaderOrBuilder() { if (signatureHeaderBuilder_ != null) { return signatureHeaderBuilder_.getMessageOrBuilder(); } else { return signatureHeader_ == null ? org.hyperledger.fabric.protos.common.SignatureHeader.getDefaultInstance() : signatureHeader_; } } /** *
     * The signature header that contains creator identity and nonce
     * 
* * .common.SignatureHeader signature_header = 1 [json_name = "signatureHeader"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.common.SignatureHeader, org.hyperledger.fabric.protos.common.SignatureHeader.Builder, org.hyperledger.fabric.protos.common.SignatureHeaderOrBuilder> getSignatureHeaderFieldBuilder() { if (signatureHeaderBuilder_ == null) { signatureHeaderBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.common.SignatureHeader, org.hyperledger.fabric.protos.common.SignatureHeader.Builder, org.hyperledger.fabric.protos.common.SignatureHeaderOrBuilder>( getSignatureHeader(), getParentForChildren(), isClean()); signatureHeader_ = null; } return signatureHeaderBuilder_; } private java.lang.Object channelId_ = ""; /** *
     * The channel ID
     * 
* * string channel_id = 2 [json_name = "channelId"]; * @return The channelId. */ public java.lang.String getChannelId() { java.lang.Object ref = channelId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); channelId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The channel ID
     * 
* * string channel_id = 2 [json_name = "channelId"]; * @return The bytes for channelId. */ public com.google.protobuf.ByteString getChannelIdBytes() { java.lang.Object ref = channelId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channelId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The channel ID
     * 
* * string channel_id = 2 [json_name = "channelId"]; * @param value The channelId to set. * @return This builder for chaining. */ public Builder setChannelId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } channelId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The channel ID
     * 
* * string channel_id = 2 [json_name = "channelId"]; * @return This builder for chaining. */ public Builder clearChannelId() { channelId_ = getDefaultInstance().getChannelId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * The channel ID
     * 
* * string channel_id = 2 [json_name = "channelId"]; * @param value The bytes for channelId to set. * @return This builder for chaining. */ public Builder setChannelIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); channelId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private long blockNumber_ ; /** *
     * The block number to generate a snapshot
     * 
* * uint64 block_number = 3 [json_name = "blockNumber"]; * @return The blockNumber. */ @java.lang.Override public long getBlockNumber() { return blockNumber_; } /** *
     * The block number to generate a snapshot
     * 
* * uint64 block_number = 3 [json_name = "blockNumber"]; * @param value The blockNumber to set. * @return This builder for chaining. */ public Builder setBlockNumber(long value) { blockNumber_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The block number to generate a snapshot
     * 
* * uint64 block_number = 3 [json_name = "blockNumber"]; * @return This builder for chaining. */ public Builder clearBlockNumber() { bitField0_ = (bitField0_ & ~0x00000004); blockNumber_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protos.SnapshotRequest) } // @@protoc_insertion_point(class_scope:protos.SnapshotRequest) private static final org.hyperledger.fabric.protos.peer.SnapshotRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.SnapshotRequest(); } public static org.hyperledger.fabric.protos.peer.SnapshotRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SnapshotRequest 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.peer.SnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy