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

org.hyperledger.fabric.protos.orderer.Ab Maven / Gradle / Ivy

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

package org.hyperledger.fabric.protos.orderer;

public final class Ab {
  private Ab() {}
  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 BroadcastResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:orderer.BroadcastResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Status code, which may be used to programatically respond to success/failure
     * 
* * optional .common.Status status = 1; */ int getStatusValue(); /** *
     * Status code, which may be used to programatically respond to success/failure
     * 
* * optional .common.Status status = 1; */ org.hyperledger.fabric.protos.common.Common.Status getStatus(); /** *
     * Info string which may contain additional information about the status returned
     * 
* * optional string info = 2; */ java.lang.String getInfo(); /** *
     * Info string which may contain additional information about the status returned
     * 
* * optional string info = 2; */ com.google.protobuf.ByteString getInfoBytes(); } /** * Protobuf type {@code orderer.BroadcastResponse} */ public static final class BroadcastResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:orderer.BroadcastResponse) BroadcastResponseOrBuilder { // Use BroadcastResponse.newBuilder() to construct. private BroadcastResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BroadcastResponse() { status_ = 0; info_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private BroadcastResponse( 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: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); info_ = 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.orderer.Ab.internal_static_orderer_BroadcastResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_BroadcastResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse.class, org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse.Builder.class); } public static final int STATUS_FIELD_NUMBER = 1; private int status_; /** *
     * Status code, which may be used to programatically respond to success/failure
     * 
* * optional .common.Status status = 1; */ public int getStatusValue() { return status_; } /** *
     * Status code, which may be used to programatically respond to success/failure
     * 
* * optional .common.Status status = 1; */ public org.hyperledger.fabric.protos.common.Common.Status getStatus() { org.hyperledger.fabric.protos.common.Common.Status result = org.hyperledger.fabric.protos.common.Common.Status.valueOf(status_); return result == null ? org.hyperledger.fabric.protos.common.Common.Status.UNRECOGNIZED : result; } public static final int INFO_FIELD_NUMBER = 2; private volatile java.lang.Object info_; /** *
     * Info string which may contain additional information about the status returned
     * 
* * optional string info = 2; */ public java.lang.String getInfo() { java.lang.Object ref = info_; 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(); info_ = s; return s; } } /** *
     * Info string which may contain additional information about the status returned
     * 
* * optional string info = 2; */ public com.google.protobuf.ByteString getInfoBytes() { java.lang.Object ref = info_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); info_ = 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 (status_ != org.hyperledger.fabric.protos.common.Common.Status.UNKNOWN.getNumber()) { output.writeEnum(1, status_); } if (!getInfoBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, info_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (status_ != org.hyperledger.fabric.protos.common.Common.Status.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, status_); } if (!getInfoBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, info_); } 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.orderer.Ab.BroadcastResponse)) { return super.equals(obj); } org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse other = (org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse) obj; boolean result = true; result = result && status_ == other.status_; result = result && getInfo() .equals(other.getInfo()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; hash = (37 * hash) + INFO_FIELD_NUMBER; hash = (53 * hash) + getInfo().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse 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.orderer.Ab.BroadcastResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse 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.orderer.Ab.BroadcastResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse 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.orderer.Ab.BroadcastResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse 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.orderer.Ab.BroadcastResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code orderer.BroadcastResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:orderer.BroadcastResponse) org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_BroadcastResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_BroadcastResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse.class, org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse.Builder.class); } // Construct using org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse.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(); status_ = 0; info_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_BroadcastResponse_descriptor; } public org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse getDefaultInstanceForType() { return org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse.getDefaultInstance(); } public org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse build() { org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse buildPartial() { org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse result = new org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse(this); result.status_ = status_; result.info_ = info_; 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.orderer.Ab.BroadcastResponse) { return mergeFrom((org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse other) { if (other == org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse.getDefaultInstance()) return this; if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (!other.getInfo().isEmpty()) { info_ = other.info_; 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.orderer.Ab.BroadcastResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int status_ = 0; /** *
       * Status code, which may be used to programatically respond to success/failure
       * 
* * optional .common.Status status = 1; */ public int getStatusValue() { return status_; } /** *
       * Status code, which may be used to programatically respond to success/failure
       * 
* * optional .common.Status status = 1; */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** *
       * Status code, which may be used to programatically respond to success/failure
       * 
* * optional .common.Status status = 1; */ public org.hyperledger.fabric.protos.common.Common.Status getStatus() { org.hyperledger.fabric.protos.common.Common.Status result = org.hyperledger.fabric.protos.common.Common.Status.valueOf(status_); return result == null ? org.hyperledger.fabric.protos.common.Common.Status.UNRECOGNIZED : result; } /** *
       * Status code, which may be used to programatically respond to success/failure
       * 
* * optional .common.Status status = 1; */ public Builder setStatus(org.hyperledger.fabric.protos.common.Common.Status value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** *
       * Status code, which may be used to programatically respond to success/failure
       * 
* * optional .common.Status status = 1; */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private java.lang.Object info_ = ""; /** *
       * Info string which may contain additional information about the status returned
       * 
* * optional string info = 2; */ public java.lang.String getInfo() { java.lang.Object ref = info_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); info_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Info string which may contain additional information about the status returned
       * 
* * optional string info = 2; */ public com.google.protobuf.ByteString getInfoBytes() { java.lang.Object ref = info_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); info_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Info string which may contain additional information about the status returned
       * 
* * optional string info = 2; */ public Builder setInfo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } info_ = value; onChanged(); return this; } /** *
       * Info string which may contain additional information about the status returned
       * 
* * optional string info = 2; */ public Builder clearInfo() { info_ = getDefaultInstance().getInfo(); onChanged(); return this; } /** *
       * Info string which may contain additional information about the status returned
       * 
* * optional string info = 2; */ public Builder setInfoBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); info_ = 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:orderer.BroadcastResponse) } // @@protoc_insertion_point(class_scope:orderer.BroadcastResponse) private static final org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse(); } public static org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BroadcastResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BroadcastResponse(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.orderer.Ab.BroadcastResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SeekNewestOrBuilder extends // @@protoc_insertion_point(interface_extends:orderer.SeekNewest) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code orderer.SeekNewest} */ public static final class SeekNewest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:orderer.SeekNewest) SeekNewestOrBuilder { // Use SeekNewest.newBuilder() to construct. private SeekNewest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SeekNewest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SeekNewest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekNewest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekNewest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.Ab.SeekNewest.class, org.hyperledger.fabric.protos.orderer.Ab.SeekNewest.Builder.class); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.orderer.Ab.SeekNewest)) { return super.equals(obj); } org.hyperledger.fabric.protos.orderer.Ab.SeekNewest other = (org.hyperledger.fabric.protos.orderer.Ab.SeekNewest) obj; boolean result = true; return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.orderer.Ab.SeekNewest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekNewest 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.orderer.Ab.SeekNewest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekNewest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekNewest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekNewest 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.orderer.Ab.SeekNewest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekNewest 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.orderer.Ab.SeekNewest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekNewest 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.orderer.Ab.SeekNewest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code orderer.SeekNewest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:orderer.SeekNewest) org.hyperledger.fabric.protos.orderer.Ab.SeekNewestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekNewest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekNewest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.Ab.SeekNewest.class, org.hyperledger.fabric.protos.orderer.Ab.SeekNewest.Builder.class); } // Construct using org.hyperledger.fabric.protos.orderer.Ab.SeekNewest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekNewest_descriptor; } public org.hyperledger.fabric.protos.orderer.Ab.SeekNewest getDefaultInstanceForType() { return org.hyperledger.fabric.protos.orderer.Ab.SeekNewest.getDefaultInstance(); } public org.hyperledger.fabric.protos.orderer.Ab.SeekNewest build() { org.hyperledger.fabric.protos.orderer.Ab.SeekNewest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.orderer.Ab.SeekNewest buildPartial() { org.hyperledger.fabric.protos.orderer.Ab.SeekNewest result = new org.hyperledger.fabric.protos.orderer.Ab.SeekNewest(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.orderer.Ab.SeekNewest) { return mergeFrom((org.hyperledger.fabric.protos.orderer.Ab.SeekNewest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.Ab.SeekNewest other) { if (other == org.hyperledger.fabric.protos.orderer.Ab.SeekNewest.getDefaultInstance()) return this; onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.orderer.Ab.SeekNewest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.orderer.Ab.SeekNewest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:orderer.SeekNewest) } // @@protoc_insertion_point(class_scope:orderer.SeekNewest) private static final org.hyperledger.fabric.protos.orderer.Ab.SeekNewest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.Ab.SeekNewest(); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekNewest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SeekNewest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SeekNewest(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.orderer.Ab.SeekNewest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SeekOldestOrBuilder extends // @@protoc_insertion_point(interface_extends:orderer.SeekOldest) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code orderer.SeekOldest} */ public static final class SeekOldest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:orderer.SeekOldest) SeekOldestOrBuilder { // Use SeekOldest.newBuilder() to construct. private SeekOldest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SeekOldest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SeekOldest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekOldest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekOldest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.Ab.SeekOldest.class, org.hyperledger.fabric.protos.orderer.Ab.SeekOldest.Builder.class); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.orderer.Ab.SeekOldest)) { return super.equals(obj); } org.hyperledger.fabric.protos.orderer.Ab.SeekOldest other = (org.hyperledger.fabric.protos.orderer.Ab.SeekOldest) obj; boolean result = true; return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.orderer.Ab.SeekOldest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekOldest 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.orderer.Ab.SeekOldest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekOldest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekOldest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekOldest 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.orderer.Ab.SeekOldest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekOldest 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.orderer.Ab.SeekOldest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekOldest 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.orderer.Ab.SeekOldest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code orderer.SeekOldest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:orderer.SeekOldest) org.hyperledger.fabric.protos.orderer.Ab.SeekOldestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekOldest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekOldest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.Ab.SeekOldest.class, org.hyperledger.fabric.protos.orderer.Ab.SeekOldest.Builder.class); } // Construct using org.hyperledger.fabric.protos.orderer.Ab.SeekOldest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekOldest_descriptor; } public org.hyperledger.fabric.protos.orderer.Ab.SeekOldest getDefaultInstanceForType() { return org.hyperledger.fabric.protos.orderer.Ab.SeekOldest.getDefaultInstance(); } public org.hyperledger.fabric.protos.orderer.Ab.SeekOldest build() { org.hyperledger.fabric.protos.orderer.Ab.SeekOldest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.orderer.Ab.SeekOldest buildPartial() { org.hyperledger.fabric.protos.orderer.Ab.SeekOldest result = new org.hyperledger.fabric.protos.orderer.Ab.SeekOldest(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.orderer.Ab.SeekOldest) { return mergeFrom((org.hyperledger.fabric.protos.orderer.Ab.SeekOldest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.Ab.SeekOldest other) { if (other == org.hyperledger.fabric.protos.orderer.Ab.SeekOldest.getDefaultInstance()) return this; onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.orderer.Ab.SeekOldest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.orderer.Ab.SeekOldest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:orderer.SeekOldest) } // @@protoc_insertion_point(class_scope:orderer.SeekOldest) private static final org.hyperledger.fabric.protos.orderer.Ab.SeekOldest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.Ab.SeekOldest(); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekOldest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SeekOldest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SeekOldest(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.orderer.Ab.SeekOldest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SeekSpecifiedOrBuilder extends // @@protoc_insertion_point(interface_extends:orderer.SeekSpecified) com.google.protobuf.MessageOrBuilder { /** * optional uint64 number = 1; */ long getNumber(); } /** * Protobuf type {@code orderer.SeekSpecified} */ public static final class SeekSpecified extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:orderer.SeekSpecified) SeekSpecifiedOrBuilder { // Use SeekSpecified.newBuilder() to construct. private SeekSpecified(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SeekSpecified() { number_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SeekSpecified( 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: { number_ = input.readUInt64(); 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.orderer.Ab.internal_static_orderer_SeekSpecified_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekSpecified_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified.class, org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified.Builder.class); } public static final int NUMBER_FIELD_NUMBER = 1; private long number_; /** * optional uint64 number = 1; */ public long getNumber() { return number_; } 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 (number_ != 0L) { output.writeUInt64(1, number_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (number_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, number_); } 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.orderer.Ab.SeekSpecified)) { return super.equals(obj); } org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified other = (org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified) obj; boolean result = true; result = result && (getNumber() == other.getNumber()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNumber()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified 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.orderer.Ab.SeekSpecified parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified 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.orderer.Ab.SeekSpecified parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified 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.orderer.Ab.SeekSpecified parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified 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.orderer.Ab.SeekSpecified prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code orderer.SeekSpecified} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:orderer.SeekSpecified) org.hyperledger.fabric.protos.orderer.Ab.SeekSpecifiedOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekSpecified_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekSpecified_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified.class, org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified.Builder.class); } // Construct using org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified.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(); number_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekSpecified_descriptor; } public org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified getDefaultInstanceForType() { return org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified.getDefaultInstance(); } public org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified build() { org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified buildPartial() { org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified result = new org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified(this); result.number_ = number_; 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.orderer.Ab.SeekSpecified) { return mergeFrom((org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified other) { if (other == org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified.getDefaultInstance()) return this; if (other.getNumber() != 0L) { setNumber(other.getNumber()); } 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.orderer.Ab.SeekSpecified parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long number_ ; /** * optional uint64 number = 1; */ public long getNumber() { return number_; } /** * optional uint64 number = 1; */ public Builder setNumber(long value) { number_ = value; onChanged(); return this; } /** * optional uint64 number = 1; */ public Builder clearNumber() { number_ = 0L; 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:orderer.SeekSpecified) } // @@protoc_insertion_point(class_scope:orderer.SeekSpecified) private static final org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified(); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SeekSpecified parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SeekSpecified(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.orderer.Ab.SeekSpecified getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SeekPositionOrBuilder extends // @@protoc_insertion_point(interface_extends:orderer.SeekPosition) com.google.protobuf.MessageOrBuilder { /** * optional .orderer.SeekNewest newest = 1; */ org.hyperledger.fabric.protos.orderer.Ab.SeekNewest getNewest(); /** * optional .orderer.SeekNewest newest = 1; */ org.hyperledger.fabric.protos.orderer.Ab.SeekNewestOrBuilder getNewestOrBuilder(); /** * optional .orderer.SeekOldest oldest = 2; */ org.hyperledger.fabric.protos.orderer.Ab.SeekOldest getOldest(); /** * optional .orderer.SeekOldest oldest = 2; */ org.hyperledger.fabric.protos.orderer.Ab.SeekOldestOrBuilder getOldestOrBuilder(); /** * optional .orderer.SeekSpecified specified = 3; */ org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified getSpecified(); /** * optional .orderer.SeekSpecified specified = 3; */ org.hyperledger.fabric.protos.orderer.Ab.SeekSpecifiedOrBuilder getSpecifiedOrBuilder(); public org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.TypeCase getTypeCase(); } /** * Protobuf type {@code orderer.SeekPosition} */ public static final class SeekPosition extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:orderer.SeekPosition) SeekPositionOrBuilder { // Use SeekPosition.newBuilder() to construct. private SeekPosition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SeekPosition() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SeekPosition( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { org.hyperledger.fabric.protos.orderer.Ab.SeekNewest.Builder subBuilder = null; if (typeCase_ == 1) { subBuilder = ((org.hyperledger.fabric.protos.orderer.Ab.SeekNewest) type_).toBuilder(); } type_ = input.readMessage(org.hyperledger.fabric.protos.orderer.Ab.SeekNewest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.orderer.Ab.SeekNewest) type_); type_ = subBuilder.buildPartial(); } typeCase_ = 1; break; } case 18: { org.hyperledger.fabric.protos.orderer.Ab.SeekOldest.Builder subBuilder = null; if (typeCase_ == 2) { subBuilder = ((org.hyperledger.fabric.protos.orderer.Ab.SeekOldest) type_).toBuilder(); } type_ = input.readMessage(org.hyperledger.fabric.protos.orderer.Ab.SeekOldest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.orderer.Ab.SeekOldest) type_); type_ = subBuilder.buildPartial(); } typeCase_ = 2; break; } case 26: { org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified.Builder subBuilder = null; if (typeCase_ == 3) { subBuilder = ((org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified) type_).toBuilder(); } type_ = input.readMessage(org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified) type_); type_ = subBuilder.buildPartial(); } typeCase_ = 3; 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.orderer.Ab.internal_static_orderer_SeekPosition_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekPosition_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.class, org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.Builder.class); } private int typeCase_ = 0; private java.lang.Object type_; public enum TypeCase implements com.google.protobuf.Internal.EnumLite { NEWEST(1), OLDEST(2), SPECIFIED(3), TYPE_NOT_SET(0); private final int value; private TypeCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TypeCase valueOf(int value) { return forNumber(value); } public static TypeCase forNumber(int value) { switch (value) { case 1: return NEWEST; case 2: return OLDEST; case 3: return SPECIFIED; case 0: return TYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public TypeCase getTypeCase() { return TypeCase.forNumber( typeCase_); } public static final int NEWEST_FIELD_NUMBER = 1; /** * optional .orderer.SeekNewest newest = 1; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekNewest getNewest() { if (typeCase_ == 1) { return (org.hyperledger.fabric.protos.orderer.Ab.SeekNewest) type_; } return org.hyperledger.fabric.protos.orderer.Ab.SeekNewest.getDefaultInstance(); } /** * optional .orderer.SeekNewest newest = 1; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekNewestOrBuilder getNewestOrBuilder() { if (typeCase_ == 1) { return (org.hyperledger.fabric.protos.orderer.Ab.SeekNewest) type_; } return org.hyperledger.fabric.protos.orderer.Ab.SeekNewest.getDefaultInstance(); } public static final int OLDEST_FIELD_NUMBER = 2; /** * optional .orderer.SeekOldest oldest = 2; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekOldest getOldest() { if (typeCase_ == 2) { return (org.hyperledger.fabric.protos.orderer.Ab.SeekOldest) type_; } return org.hyperledger.fabric.protos.orderer.Ab.SeekOldest.getDefaultInstance(); } /** * optional .orderer.SeekOldest oldest = 2; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekOldestOrBuilder getOldestOrBuilder() { if (typeCase_ == 2) { return (org.hyperledger.fabric.protos.orderer.Ab.SeekOldest) type_; } return org.hyperledger.fabric.protos.orderer.Ab.SeekOldest.getDefaultInstance(); } public static final int SPECIFIED_FIELD_NUMBER = 3; /** * optional .orderer.SeekSpecified specified = 3; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified getSpecified() { if (typeCase_ == 3) { return (org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified) type_; } return org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified.getDefaultInstance(); } /** * optional .orderer.SeekSpecified specified = 3; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekSpecifiedOrBuilder getSpecifiedOrBuilder() { if (typeCase_ == 3) { return (org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified) type_; } return org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified.getDefaultInstance(); } 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 (typeCase_ == 1) { output.writeMessage(1, (org.hyperledger.fabric.protos.orderer.Ab.SeekNewest) type_); } if (typeCase_ == 2) { output.writeMessage(2, (org.hyperledger.fabric.protos.orderer.Ab.SeekOldest) type_); } if (typeCase_ == 3) { output.writeMessage(3, (org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified) type_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (typeCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (org.hyperledger.fabric.protos.orderer.Ab.SeekNewest) type_); } if (typeCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (org.hyperledger.fabric.protos.orderer.Ab.SeekOldest) type_); } if (typeCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified) type_); } 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.orderer.Ab.SeekPosition)) { return super.equals(obj); } org.hyperledger.fabric.protos.orderer.Ab.SeekPosition other = (org.hyperledger.fabric.protos.orderer.Ab.SeekPosition) obj; boolean result = true; result = result && getTypeCase().equals( other.getTypeCase()); if (!result) return false; switch (typeCase_) { case 1: result = result && getNewest() .equals(other.getNewest()); break; case 2: result = result && getOldest() .equals(other.getOldest()); break; case 3: result = result && getSpecified() .equals(other.getSpecified()); break; case 0: default: } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); switch (typeCase_) { case 1: hash = (37 * hash) + NEWEST_FIELD_NUMBER; hash = (53 * hash) + getNewest().hashCode(); break; case 2: hash = (37 * hash) + OLDEST_FIELD_NUMBER; hash = (53 * hash) + getOldest().hashCode(); break; case 3: hash = (37 * hash) + SPECIFIED_FIELD_NUMBER; hash = (53 * hash) + getSpecified().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.orderer.Ab.SeekPosition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekPosition 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.orderer.Ab.SeekPosition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekPosition parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekPosition parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekPosition 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.orderer.Ab.SeekPosition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekPosition 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.orderer.Ab.SeekPosition parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekPosition 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.orderer.Ab.SeekPosition prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code orderer.SeekPosition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:orderer.SeekPosition) org.hyperledger.fabric.protos.orderer.Ab.SeekPositionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekPosition_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekPosition_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.class, org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.Builder.class); } // Construct using org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.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(); typeCase_ = 0; type_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekPosition_descriptor; } public org.hyperledger.fabric.protos.orderer.Ab.SeekPosition getDefaultInstanceForType() { return org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.getDefaultInstance(); } public org.hyperledger.fabric.protos.orderer.Ab.SeekPosition build() { org.hyperledger.fabric.protos.orderer.Ab.SeekPosition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.orderer.Ab.SeekPosition buildPartial() { org.hyperledger.fabric.protos.orderer.Ab.SeekPosition result = new org.hyperledger.fabric.protos.orderer.Ab.SeekPosition(this); if (typeCase_ == 1) { if (newestBuilder_ == null) { result.type_ = type_; } else { result.type_ = newestBuilder_.build(); } } if (typeCase_ == 2) { if (oldestBuilder_ == null) { result.type_ = type_; } else { result.type_ = oldestBuilder_.build(); } } if (typeCase_ == 3) { if (specifiedBuilder_ == null) { result.type_ = type_; } else { result.type_ = specifiedBuilder_.build(); } } result.typeCase_ = typeCase_; 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.orderer.Ab.SeekPosition) { return mergeFrom((org.hyperledger.fabric.protos.orderer.Ab.SeekPosition)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.Ab.SeekPosition other) { if (other == org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.getDefaultInstance()) return this; switch (other.getTypeCase()) { case NEWEST: { mergeNewest(other.getNewest()); break; } case OLDEST: { mergeOldest(other.getOldest()); break; } case SPECIFIED: { mergeSpecified(other.getSpecified()); break; } case TYPE_NOT_SET: { break; } } 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.orderer.Ab.SeekPosition parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.orderer.Ab.SeekPosition) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int typeCase_ = 0; private java.lang.Object type_; public TypeCase getTypeCase() { return TypeCase.forNumber( typeCase_); } public Builder clearType() { typeCase_ = 0; type_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.orderer.Ab.SeekNewest, org.hyperledger.fabric.protos.orderer.Ab.SeekNewest.Builder, org.hyperledger.fabric.protos.orderer.Ab.SeekNewestOrBuilder> newestBuilder_; /** * optional .orderer.SeekNewest newest = 1; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekNewest getNewest() { if (newestBuilder_ == null) { if (typeCase_ == 1) { return (org.hyperledger.fabric.protos.orderer.Ab.SeekNewest) type_; } return org.hyperledger.fabric.protos.orderer.Ab.SeekNewest.getDefaultInstance(); } else { if (typeCase_ == 1) { return newestBuilder_.getMessage(); } return org.hyperledger.fabric.protos.orderer.Ab.SeekNewest.getDefaultInstance(); } } /** * optional .orderer.SeekNewest newest = 1; */ public Builder setNewest(org.hyperledger.fabric.protos.orderer.Ab.SeekNewest value) { if (newestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { newestBuilder_.setMessage(value); } typeCase_ = 1; return this; } /** * optional .orderer.SeekNewest newest = 1; */ public Builder setNewest( org.hyperledger.fabric.protos.orderer.Ab.SeekNewest.Builder builderForValue) { if (newestBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { newestBuilder_.setMessage(builderForValue.build()); } typeCase_ = 1; return this; } /** * optional .orderer.SeekNewest newest = 1; */ public Builder mergeNewest(org.hyperledger.fabric.protos.orderer.Ab.SeekNewest value) { if (newestBuilder_ == null) { if (typeCase_ == 1 && type_ != org.hyperledger.fabric.protos.orderer.Ab.SeekNewest.getDefaultInstance()) { type_ = org.hyperledger.fabric.protos.orderer.Ab.SeekNewest.newBuilder((org.hyperledger.fabric.protos.orderer.Ab.SeekNewest) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 1) { newestBuilder_.mergeFrom(value); } newestBuilder_.setMessage(value); } typeCase_ = 1; return this; } /** * optional .orderer.SeekNewest newest = 1; */ public Builder clearNewest() { if (newestBuilder_ == null) { if (typeCase_ == 1) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 1) { typeCase_ = 0; type_ = null; } newestBuilder_.clear(); } return this; } /** * optional .orderer.SeekNewest newest = 1; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekNewest.Builder getNewestBuilder() { return getNewestFieldBuilder().getBuilder(); } /** * optional .orderer.SeekNewest newest = 1; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekNewestOrBuilder getNewestOrBuilder() { if ((typeCase_ == 1) && (newestBuilder_ != null)) { return newestBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 1) { return (org.hyperledger.fabric.protos.orderer.Ab.SeekNewest) type_; } return org.hyperledger.fabric.protos.orderer.Ab.SeekNewest.getDefaultInstance(); } } /** * optional .orderer.SeekNewest newest = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.orderer.Ab.SeekNewest, org.hyperledger.fabric.protos.orderer.Ab.SeekNewest.Builder, org.hyperledger.fabric.protos.orderer.Ab.SeekNewestOrBuilder> getNewestFieldBuilder() { if (newestBuilder_ == null) { if (!(typeCase_ == 1)) { type_ = org.hyperledger.fabric.protos.orderer.Ab.SeekNewest.getDefaultInstance(); } newestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.orderer.Ab.SeekNewest, org.hyperledger.fabric.protos.orderer.Ab.SeekNewest.Builder, org.hyperledger.fabric.protos.orderer.Ab.SeekNewestOrBuilder>( (org.hyperledger.fabric.protos.orderer.Ab.SeekNewest) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 1; onChanged();; return newestBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.orderer.Ab.SeekOldest, org.hyperledger.fabric.protos.orderer.Ab.SeekOldest.Builder, org.hyperledger.fabric.protos.orderer.Ab.SeekOldestOrBuilder> oldestBuilder_; /** * optional .orderer.SeekOldest oldest = 2; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekOldest getOldest() { if (oldestBuilder_ == null) { if (typeCase_ == 2) { return (org.hyperledger.fabric.protos.orderer.Ab.SeekOldest) type_; } return org.hyperledger.fabric.protos.orderer.Ab.SeekOldest.getDefaultInstance(); } else { if (typeCase_ == 2) { return oldestBuilder_.getMessage(); } return org.hyperledger.fabric.protos.orderer.Ab.SeekOldest.getDefaultInstance(); } } /** * optional .orderer.SeekOldest oldest = 2; */ public Builder setOldest(org.hyperledger.fabric.protos.orderer.Ab.SeekOldest value) { if (oldestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { oldestBuilder_.setMessage(value); } typeCase_ = 2; return this; } /** * optional .orderer.SeekOldest oldest = 2; */ public Builder setOldest( org.hyperledger.fabric.protos.orderer.Ab.SeekOldest.Builder builderForValue) { if (oldestBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { oldestBuilder_.setMessage(builderForValue.build()); } typeCase_ = 2; return this; } /** * optional .orderer.SeekOldest oldest = 2; */ public Builder mergeOldest(org.hyperledger.fabric.protos.orderer.Ab.SeekOldest value) { if (oldestBuilder_ == null) { if (typeCase_ == 2 && type_ != org.hyperledger.fabric.protos.orderer.Ab.SeekOldest.getDefaultInstance()) { type_ = org.hyperledger.fabric.protos.orderer.Ab.SeekOldest.newBuilder((org.hyperledger.fabric.protos.orderer.Ab.SeekOldest) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 2) { oldestBuilder_.mergeFrom(value); } oldestBuilder_.setMessage(value); } typeCase_ = 2; return this; } /** * optional .orderer.SeekOldest oldest = 2; */ public Builder clearOldest() { if (oldestBuilder_ == null) { if (typeCase_ == 2) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 2) { typeCase_ = 0; type_ = null; } oldestBuilder_.clear(); } return this; } /** * optional .orderer.SeekOldest oldest = 2; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekOldest.Builder getOldestBuilder() { return getOldestFieldBuilder().getBuilder(); } /** * optional .orderer.SeekOldest oldest = 2; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekOldestOrBuilder getOldestOrBuilder() { if ((typeCase_ == 2) && (oldestBuilder_ != null)) { return oldestBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 2) { return (org.hyperledger.fabric.protos.orderer.Ab.SeekOldest) type_; } return org.hyperledger.fabric.protos.orderer.Ab.SeekOldest.getDefaultInstance(); } } /** * optional .orderer.SeekOldest oldest = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.orderer.Ab.SeekOldest, org.hyperledger.fabric.protos.orderer.Ab.SeekOldest.Builder, org.hyperledger.fabric.protos.orderer.Ab.SeekOldestOrBuilder> getOldestFieldBuilder() { if (oldestBuilder_ == null) { if (!(typeCase_ == 2)) { type_ = org.hyperledger.fabric.protos.orderer.Ab.SeekOldest.getDefaultInstance(); } oldestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.orderer.Ab.SeekOldest, org.hyperledger.fabric.protos.orderer.Ab.SeekOldest.Builder, org.hyperledger.fabric.protos.orderer.Ab.SeekOldestOrBuilder>( (org.hyperledger.fabric.protos.orderer.Ab.SeekOldest) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 2; onChanged();; return oldestBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified, org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified.Builder, org.hyperledger.fabric.protos.orderer.Ab.SeekSpecifiedOrBuilder> specifiedBuilder_; /** * optional .orderer.SeekSpecified specified = 3; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified getSpecified() { if (specifiedBuilder_ == null) { if (typeCase_ == 3) { return (org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified) type_; } return org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified.getDefaultInstance(); } else { if (typeCase_ == 3) { return specifiedBuilder_.getMessage(); } return org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified.getDefaultInstance(); } } /** * optional .orderer.SeekSpecified specified = 3; */ public Builder setSpecified(org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified value) { if (specifiedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { specifiedBuilder_.setMessage(value); } typeCase_ = 3; return this; } /** * optional .orderer.SeekSpecified specified = 3; */ public Builder setSpecified( org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified.Builder builderForValue) { if (specifiedBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { specifiedBuilder_.setMessage(builderForValue.build()); } typeCase_ = 3; return this; } /** * optional .orderer.SeekSpecified specified = 3; */ public Builder mergeSpecified(org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified value) { if (specifiedBuilder_ == null) { if (typeCase_ == 3 && type_ != org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified.getDefaultInstance()) { type_ = org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified.newBuilder((org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 3) { specifiedBuilder_.mergeFrom(value); } specifiedBuilder_.setMessage(value); } typeCase_ = 3; return this; } /** * optional .orderer.SeekSpecified specified = 3; */ public Builder clearSpecified() { if (specifiedBuilder_ == null) { if (typeCase_ == 3) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 3) { typeCase_ = 0; type_ = null; } specifiedBuilder_.clear(); } return this; } /** * optional .orderer.SeekSpecified specified = 3; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified.Builder getSpecifiedBuilder() { return getSpecifiedFieldBuilder().getBuilder(); } /** * optional .orderer.SeekSpecified specified = 3; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekSpecifiedOrBuilder getSpecifiedOrBuilder() { if ((typeCase_ == 3) && (specifiedBuilder_ != null)) { return specifiedBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 3) { return (org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified) type_; } return org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified.getDefaultInstance(); } } /** * optional .orderer.SeekSpecified specified = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified, org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified.Builder, org.hyperledger.fabric.protos.orderer.Ab.SeekSpecifiedOrBuilder> getSpecifiedFieldBuilder() { if (specifiedBuilder_ == null) { if (!(typeCase_ == 3)) { type_ = org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified.getDefaultInstance(); } specifiedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified, org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified.Builder, org.hyperledger.fabric.protos.orderer.Ab.SeekSpecifiedOrBuilder>( (org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 3; onChanged();; return specifiedBuilder_; } 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:orderer.SeekPosition) } // @@protoc_insertion_point(class_scope:orderer.SeekPosition) private static final org.hyperledger.fabric.protos.orderer.Ab.SeekPosition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.Ab.SeekPosition(); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekPosition getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SeekPosition parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SeekPosition(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.orderer.Ab.SeekPosition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SeekInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:orderer.SeekInfo) com.google.protobuf.MessageOrBuilder { /** *
     * The position to start the deliver from
     * 
* * optional .orderer.SeekPosition start = 1; */ boolean hasStart(); /** *
     * The position to start the deliver from
     * 
* * optional .orderer.SeekPosition start = 1; */ org.hyperledger.fabric.protos.orderer.Ab.SeekPosition getStart(); /** *
     * The position to start the deliver from
     * 
* * optional .orderer.SeekPosition start = 1; */ org.hyperledger.fabric.protos.orderer.Ab.SeekPositionOrBuilder getStartOrBuilder(); /** *
     * The position to stop the deliver
     * 
* * optional .orderer.SeekPosition stop = 2; */ boolean hasStop(); /** *
     * The position to stop the deliver
     * 
* * optional .orderer.SeekPosition stop = 2; */ org.hyperledger.fabric.protos.orderer.Ab.SeekPosition getStop(); /** *
     * The position to stop the deliver
     * 
* * optional .orderer.SeekPosition stop = 2; */ org.hyperledger.fabric.protos.orderer.Ab.SeekPositionOrBuilder getStopOrBuilder(); /** *
     * The behavior when a missing block is encountered
     * 
* * optional .orderer.SeekInfo.SeekBehavior behavior = 3; */ int getBehaviorValue(); /** *
     * The behavior when a missing block is encountered
     * 
* * optional .orderer.SeekInfo.SeekBehavior behavior = 3; */ org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekBehavior getBehavior(); } /** *
   * SeekInfo specifies the range of requested blocks to return
   * If the start position is not found, an error is immediately returned
   * Otherwise, blocks are returned until a missing block is encountered, then behavior is dictated
   * by the SeekBehavior specified.  If BLOCK_UNTIL_READY is specified, the reply will block until
   * the requested blocks are available, if FAIL_IF_NOT_READY is specified, the reply will return an
   * error indicating that the block is not found.  To request that all blocks be returned indefinitely
   * as they are created, behavior should be set to BLOCK_UNTIL_READY and the stop should be set to
   * specified with a number of MAX_UINT64
   * 
* * Protobuf type {@code orderer.SeekInfo} */ public static final class SeekInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:orderer.SeekInfo) SeekInfoOrBuilder { // Use SeekInfo.newBuilder() to construct. private SeekInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SeekInfo() { behavior_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SeekInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.Builder subBuilder = null; if (start_ != null) { subBuilder = start_.toBuilder(); } start_ = input.readMessage(org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(start_); start_ = subBuilder.buildPartial(); } break; } case 18: { org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.Builder subBuilder = null; if (stop_ != null) { subBuilder = stop_.toBuilder(); } stop_ = input.readMessage(org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(stop_); stop_ = subBuilder.buildPartial(); } break; } case 24: { int rawValue = input.readEnum(); behavior_ = rawValue; 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.orderer.Ab.internal_static_orderer_SeekInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.class, org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.Builder.class); } /** * Protobuf enum {@code orderer.SeekInfo.SeekBehavior} */ public enum SeekBehavior implements com.google.protobuf.ProtocolMessageEnum { /** * BLOCK_UNTIL_READY = 0; */ BLOCK_UNTIL_READY(0), /** * FAIL_IF_NOT_READY = 1; */ FAIL_IF_NOT_READY(1), UNRECOGNIZED(-1), ; /** * BLOCK_UNTIL_READY = 0; */ public static final int BLOCK_UNTIL_READY_VALUE = 0; /** * FAIL_IF_NOT_READY = 1; */ public static final int FAIL_IF_NOT_READY_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SeekBehavior valueOf(int value) { return forNumber(value); } public static SeekBehavior forNumber(int value) { switch (value) { case 0: return BLOCK_UNTIL_READY; case 1: return FAIL_IF_NOT_READY; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< SeekBehavior> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public SeekBehavior findValueByNumber(int number) { return SeekBehavior.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.getDescriptor().getEnumTypes().get(0); } private static final SeekBehavior[] VALUES = values(); public static SeekBehavior valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private SeekBehavior(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:orderer.SeekInfo.SeekBehavior) } public static final int START_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.orderer.Ab.SeekPosition start_; /** *
     * The position to start the deliver from
     * 
* * optional .orderer.SeekPosition start = 1; */ public boolean hasStart() { return start_ != null; } /** *
     * The position to start the deliver from
     * 
* * optional .orderer.SeekPosition start = 1; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekPosition getStart() { return start_ == null ? org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.getDefaultInstance() : start_; } /** *
     * The position to start the deliver from
     * 
* * optional .orderer.SeekPosition start = 1; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekPositionOrBuilder getStartOrBuilder() { return getStart(); } public static final int STOP_FIELD_NUMBER = 2; private org.hyperledger.fabric.protos.orderer.Ab.SeekPosition stop_; /** *
     * The position to stop the deliver
     * 
* * optional .orderer.SeekPosition stop = 2; */ public boolean hasStop() { return stop_ != null; } /** *
     * The position to stop the deliver
     * 
* * optional .orderer.SeekPosition stop = 2; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekPosition getStop() { return stop_ == null ? org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.getDefaultInstance() : stop_; } /** *
     * The position to stop the deliver
     * 
* * optional .orderer.SeekPosition stop = 2; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekPositionOrBuilder getStopOrBuilder() { return getStop(); } public static final int BEHAVIOR_FIELD_NUMBER = 3; private int behavior_; /** *
     * The behavior when a missing block is encountered
     * 
* * optional .orderer.SeekInfo.SeekBehavior behavior = 3; */ public int getBehaviorValue() { return behavior_; } /** *
     * The behavior when a missing block is encountered
     * 
* * optional .orderer.SeekInfo.SeekBehavior behavior = 3; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekBehavior getBehavior() { org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekBehavior result = org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekBehavior.valueOf(behavior_); return result == null ? org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekBehavior.UNRECOGNIZED : result; } 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 (start_ != null) { output.writeMessage(1, getStart()); } if (stop_ != null) { output.writeMessage(2, getStop()); } if (behavior_ != org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekBehavior.BLOCK_UNTIL_READY.getNumber()) { output.writeEnum(3, behavior_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (start_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStart()); } if (stop_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getStop()); } if (behavior_ != org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekBehavior.BLOCK_UNTIL_READY.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, behavior_); } 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.orderer.Ab.SeekInfo)) { return super.equals(obj); } org.hyperledger.fabric.protos.orderer.Ab.SeekInfo other = (org.hyperledger.fabric.protos.orderer.Ab.SeekInfo) obj; boolean result = true; result = result && (hasStart() == other.hasStart()); if (hasStart()) { result = result && getStart() .equals(other.getStart()); } result = result && (hasStop() == other.hasStop()); if (hasStop()) { result = result && getStop() .equals(other.getStop()); } result = result && behavior_ == other.behavior_; return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasStart()) { hash = (37 * hash) + START_FIELD_NUMBER; hash = (53 * hash) + getStart().hashCode(); } if (hasStop()) { hash = (37 * hash) + STOP_FIELD_NUMBER; hash = (53 * hash) + getStop().hashCode(); } hash = (37 * hash) + BEHAVIOR_FIELD_NUMBER; hash = (53 * hash) + behavior_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.orderer.Ab.SeekInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekInfo 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.orderer.Ab.SeekInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekInfo 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.orderer.Ab.SeekInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekInfo 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.orderer.Ab.SeekInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekInfo 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.orderer.Ab.SeekInfo 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; } /** *
     * SeekInfo specifies the range of requested blocks to return
     * If the start position is not found, an error is immediately returned
     * Otherwise, blocks are returned until a missing block is encountered, then behavior is dictated
     * by the SeekBehavior specified.  If BLOCK_UNTIL_READY is specified, the reply will block until
     * the requested blocks are available, if FAIL_IF_NOT_READY is specified, the reply will return an
     * error indicating that the block is not found.  To request that all blocks be returned indefinitely
     * as they are created, behavior should be set to BLOCK_UNTIL_READY and the stop should be set to
     * specified with a number of MAX_UINT64
     * 
* * Protobuf type {@code orderer.SeekInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:orderer.SeekInfo) org.hyperledger.fabric.protos.orderer.Ab.SeekInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.class, org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.Builder.class); } // Construct using org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (startBuilder_ == null) { start_ = null; } else { start_ = null; startBuilder_ = null; } if (stopBuilder_ == null) { stop_ = null; } else { stop_ = null; stopBuilder_ = null; } behavior_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekInfo_descriptor; } public org.hyperledger.fabric.protos.orderer.Ab.SeekInfo getDefaultInstanceForType() { return org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.getDefaultInstance(); } public org.hyperledger.fabric.protos.orderer.Ab.SeekInfo build() { org.hyperledger.fabric.protos.orderer.Ab.SeekInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.orderer.Ab.SeekInfo buildPartial() { org.hyperledger.fabric.protos.orderer.Ab.SeekInfo result = new org.hyperledger.fabric.protos.orderer.Ab.SeekInfo(this); if (startBuilder_ == null) { result.start_ = start_; } else { result.start_ = startBuilder_.build(); } if (stopBuilder_ == null) { result.stop_ = stop_; } else { result.stop_ = stopBuilder_.build(); } result.behavior_ = behavior_; 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.orderer.Ab.SeekInfo) { return mergeFrom((org.hyperledger.fabric.protos.orderer.Ab.SeekInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.Ab.SeekInfo other) { if (other == org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.getDefaultInstance()) return this; if (other.hasStart()) { mergeStart(other.getStart()); } if (other.hasStop()) { mergeStop(other.getStop()); } if (other.behavior_ != 0) { setBehaviorValue(other.getBehaviorValue()); } 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.orderer.Ab.SeekInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.orderer.Ab.SeekInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.hyperledger.fabric.protos.orderer.Ab.SeekPosition start_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.orderer.Ab.SeekPosition, org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.Builder, org.hyperledger.fabric.protos.orderer.Ab.SeekPositionOrBuilder> startBuilder_; /** *
       * The position to start the deliver from
       * 
* * optional .orderer.SeekPosition start = 1; */ public boolean hasStart() { return startBuilder_ != null || start_ != null; } /** *
       * The position to start the deliver from
       * 
* * optional .orderer.SeekPosition start = 1; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekPosition getStart() { if (startBuilder_ == null) { return start_ == null ? org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.getDefaultInstance() : start_; } else { return startBuilder_.getMessage(); } } /** *
       * The position to start the deliver from
       * 
* * optional .orderer.SeekPosition start = 1; */ public Builder setStart(org.hyperledger.fabric.protos.orderer.Ab.SeekPosition value) { if (startBuilder_ == null) { if (value == null) { throw new NullPointerException(); } start_ = value; onChanged(); } else { startBuilder_.setMessage(value); } return this; } /** *
       * The position to start the deliver from
       * 
* * optional .orderer.SeekPosition start = 1; */ public Builder setStart( org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.Builder builderForValue) { if (startBuilder_ == null) { start_ = builderForValue.build(); onChanged(); } else { startBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The position to start the deliver from
       * 
* * optional .orderer.SeekPosition start = 1; */ public Builder mergeStart(org.hyperledger.fabric.protos.orderer.Ab.SeekPosition value) { if (startBuilder_ == null) { if (start_ != null) { start_ = org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.newBuilder(start_).mergeFrom(value).buildPartial(); } else { start_ = value; } onChanged(); } else { startBuilder_.mergeFrom(value); } return this; } /** *
       * The position to start the deliver from
       * 
* * optional .orderer.SeekPosition start = 1; */ public Builder clearStart() { if (startBuilder_ == null) { start_ = null; onChanged(); } else { start_ = null; startBuilder_ = null; } return this; } /** *
       * The position to start the deliver from
       * 
* * optional .orderer.SeekPosition start = 1; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.Builder getStartBuilder() { onChanged(); return getStartFieldBuilder().getBuilder(); } /** *
       * The position to start the deliver from
       * 
* * optional .orderer.SeekPosition start = 1; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekPositionOrBuilder getStartOrBuilder() { if (startBuilder_ != null) { return startBuilder_.getMessageOrBuilder(); } else { return start_ == null ? org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.getDefaultInstance() : start_; } } /** *
       * The position to start the deliver from
       * 
* * optional .orderer.SeekPosition start = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.orderer.Ab.SeekPosition, org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.Builder, org.hyperledger.fabric.protos.orderer.Ab.SeekPositionOrBuilder> getStartFieldBuilder() { if (startBuilder_ == null) { startBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.orderer.Ab.SeekPosition, org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.Builder, org.hyperledger.fabric.protos.orderer.Ab.SeekPositionOrBuilder>( getStart(), getParentForChildren(), isClean()); start_ = null; } return startBuilder_; } private org.hyperledger.fabric.protos.orderer.Ab.SeekPosition stop_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.orderer.Ab.SeekPosition, org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.Builder, org.hyperledger.fabric.protos.orderer.Ab.SeekPositionOrBuilder> stopBuilder_; /** *
       * The position to stop the deliver
       * 
* * optional .orderer.SeekPosition stop = 2; */ public boolean hasStop() { return stopBuilder_ != null || stop_ != null; } /** *
       * The position to stop the deliver
       * 
* * optional .orderer.SeekPosition stop = 2; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekPosition getStop() { if (stopBuilder_ == null) { return stop_ == null ? org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.getDefaultInstance() : stop_; } else { return stopBuilder_.getMessage(); } } /** *
       * The position to stop the deliver
       * 
* * optional .orderer.SeekPosition stop = 2; */ public Builder setStop(org.hyperledger.fabric.protos.orderer.Ab.SeekPosition value) { if (stopBuilder_ == null) { if (value == null) { throw new NullPointerException(); } stop_ = value; onChanged(); } else { stopBuilder_.setMessage(value); } return this; } /** *
       * The position to stop the deliver
       * 
* * optional .orderer.SeekPosition stop = 2; */ public Builder setStop( org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.Builder builderForValue) { if (stopBuilder_ == null) { stop_ = builderForValue.build(); onChanged(); } else { stopBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The position to stop the deliver
       * 
* * optional .orderer.SeekPosition stop = 2; */ public Builder mergeStop(org.hyperledger.fabric.protos.orderer.Ab.SeekPosition value) { if (stopBuilder_ == null) { if (stop_ != null) { stop_ = org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.newBuilder(stop_).mergeFrom(value).buildPartial(); } else { stop_ = value; } onChanged(); } else { stopBuilder_.mergeFrom(value); } return this; } /** *
       * The position to stop the deliver
       * 
* * optional .orderer.SeekPosition stop = 2; */ public Builder clearStop() { if (stopBuilder_ == null) { stop_ = null; onChanged(); } else { stop_ = null; stopBuilder_ = null; } return this; } /** *
       * The position to stop the deliver
       * 
* * optional .orderer.SeekPosition stop = 2; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.Builder getStopBuilder() { onChanged(); return getStopFieldBuilder().getBuilder(); } /** *
       * The position to stop the deliver
       * 
* * optional .orderer.SeekPosition stop = 2; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekPositionOrBuilder getStopOrBuilder() { if (stopBuilder_ != null) { return stopBuilder_.getMessageOrBuilder(); } else { return stop_ == null ? org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.getDefaultInstance() : stop_; } } /** *
       * The position to stop the deliver
       * 
* * optional .orderer.SeekPosition stop = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.orderer.Ab.SeekPosition, org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.Builder, org.hyperledger.fabric.protos.orderer.Ab.SeekPositionOrBuilder> getStopFieldBuilder() { if (stopBuilder_ == null) { stopBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.orderer.Ab.SeekPosition, org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.Builder, org.hyperledger.fabric.protos.orderer.Ab.SeekPositionOrBuilder>( getStop(), getParentForChildren(), isClean()); stop_ = null; } return stopBuilder_; } private int behavior_ = 0; /** *
       * The behavior when a missing block is encountered
       * 
* * optional .orderer.SeekInfo.SeekBehavior behavior = 3; */ public int getBehaviorValue() { return behavior_; } /** *
       * The behavior when a missing block is encountered
       * 
* * optional .orderer.SeekInfo.SeekBehavior behavior = 3; */ public Builder setBehaviorValue(int value) { behavior_ = value; onChanged(); return this; } /** *
       * The behavior when a missing block is encountered
       * 
* * optional .orderer.SeekInfo.SeekBehavior behavior = 3; */ public org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekBehavior getBehavior() { org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekBehavior result = org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekBehavior.valueOf(behavior_); return result == null ? org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekBehavior.UNRECOGNIZED : result; } /** *
       * The behavior when a missing block is encountered
       * 
* * optional .orderer.SeekInfo.SeekBehavior behavior = 3; */ public Builder setBehavior(org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekBehavior value) { if (value == null) { throw new NullPointerException(); } behavior_ = value.getNumber(); onChanged(); return this; } /** *
       * The behavior when a missing block is encountered
       * 
* * optional .orderer.SeekInfo.SeekBehavior behavior = 3; */ public Builder clearBehavior() { behavior_ = 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:orderer.SeekInfo) } // @@protoc_insertion_point(class_scope:orderer.SeekInfo) private static final org.hyperledger.fabric.protos.orderer.Ab.SeekInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.Ab.SeekInfo(); } public static org.hyperledger.fabric.protos.orderer.Ab.SeekInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SeekInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SeekInfo(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.orderer.Ab.SeekInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeliverResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:orderer.DeliverResponse) com.google.protobuf.MessageOrBuilder { /** * optional .common.Status status = 1; */ int getStatusValue(); /** * optional .common.Status status = 1; */ org.hyperledger.fabric.protos.common.Common.Status getStatus(); /** * optional .common.Block block = 2; */ org.hyperledger.fabric.protos.common.Common.Block getBlock(); /** * optional .common.Block block = 2; */ org.hyperledger.fabric.protos.common.Common.BlockOrBuilder getBlockOrBuilder(); public org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse.TypeCase getTypeCase(); } /** * Protobuf type {@code orderer.DeliverResponse} */ public static final class DeliverResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:orderer.DeliverResponse) DeliverResponseOrBuilder { // Use DeliverResponse.newBuilder() to construct. private DeliverResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeliverResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private DeliverResponse( 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: { int rawValue = input.readEnum(); typeCase_ = 1; type_ = rawValue; break; } case 18: { org.hyperledger.fabric.protos.common.Common.Block.Builder subBuilder = null; if (typeCase_ == 2) { subBuilder = ((org.hyperledger.fabric.protos.common.Common.Block) type_).toBuilder(); } type_ = input.readMessage(org.hyperledger.fabric.protos.common.Common.Block.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.common.Common.Block) type_); type_ = subBuilder.buildPartial(); } typeCase_ = 2; 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.orderer.Ab.internal_static_orderer_DeliverResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_DeliverResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse.class, org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse.Builder.class); } private int typeCase_ = 0; private java.lang.Object type_; public enum TypeCase implements com.google.protobuf.Internal.EnumLite { STATUS(1), BLOCK(2), TYPE_NOT_SET(0); private final int value; private TypeCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TypeCase valueOf(int value) { return forNumber(value); } public static TypeCase forNumber(int value) { switch (value) { case 1: return STATUS; case 2: return BLOCK; case 0: return TYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public TypeCase getTypeCase() { return TypeCase.forNumber( typeCase_); } public static final int STATUS_FIELD_NUMBER = 1; /** * optional .common.Status status = 1; */ public int getStatusValue() { if (typeCase_ == 1) { return (java.lang.Integer) type_; } return 0; } /** * optional .common.Status status = 1; */ public org.hyperledger.fabric.protos.common.Common.Status getStatus() { if (typeCase_ == 1) { org.hyperledger.fabric.protos.common.Common.Status result = org.hyperledger.fabric.protos.common.Common.Status.valueOf( (java.lang.Integer) type_); return result == null ? org.hyperledger.fabric.protos.common.Common.Status.UNRECOGNIZED : result; } return org.hyperledger.fabric.protos.common.Common.Status.UNKNOWN; } public static final int BLOCK_FIELD_NUMBER = 2; /** * optional .common.Block block = 2; */ public org.hyperledger.fabric.protos.common.Common.Block getBlock() { if (typeCase_ == 2) { return (org.hyperledger.fabric.protos.common.Common.Block) type_; } return org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance(); } /** * optional .common.Block block = 2; */ public org.hyperledger.fabric.protos.common.Common.BlockOrBuilder getBlockOrBuilder() { if (typeCase_ == 2) { return (org.hyperledger.fabric.protos.common.Common.Block) type_; } return org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance(); } 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 (typeCase_ == 1) { output.writeEnum(1, ((java.lang.Integer) type_)); } if (typeCase_ == 2) { output.writeMessage(2, (org.hyperledger.fabric.protos.common.Common.Block) type_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (typeCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, ((java.lang.Integer) type_)); } if (typeCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (org.hyperledger.fabric.protos.common.Common.Block) type_); } 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.orderer.Ab.DeliverResponse)) { return super.equals(obj); } org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse other = (org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse) obj; boolean result = true; result = result && getTypeCase().equals( other.getTypeCase()); if (!result) return false; switch (typeCase_) { case 1: result = result && getStatusValue() == other.getStatusValue(); break; case 2: result = result && getBlock() .equals(other.getBlock()); break; case 0: default: } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); switch (typeCase_) { case 1: hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatusValue(); break; case 2: hash = (37 * hash) + BLOCK_FIELD_NUMBER; hash = (53 * hash) + getBlock().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse 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.orderer.Ab.DeliverResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse 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.orderer.Ab.DeliverResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse 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.orderer.Ab.DeliverResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse 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.orderer.Ab.DeliverResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code orderer.DeliverResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:orderer.DeliverResponse) org.hyperledger.fabric.protos.orderer.Ab.DeliverResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_DeliverResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_DeliverResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse.class, org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse.Builder.class); } // Construct using org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse.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(); typeCase_ = 0; type_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_DeliverResponse_descriptor; } public org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse getDefaultInstanceForType() { return org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse.getDefaultInstance(); } public org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse build() { org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse buildPartial() { org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse result = new org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse(this); if (typeCase_ == 1) { result.type_ = type_; } if (typeCase_ == 2) { if (blockBuilder_ == null) { result.type_ = type_; } else { result.type_ = blockBuilder_.build(); } } result.typeCase_ = typeCase_; 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.orderer.Ab.DeliverResponse) { return mergeFrom((org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse other) { if (other == org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse.getDefaultInstance()) return this; switch (other.getTypeCase()) { case STATUS: { setStatusValue(other.getStatusValue()); break; } case BLOCK: { mergeBlock(other.getBlock()); break; } case TYPE_NOT_SET: { break; } } 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.orderer.Ab.DeliverResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int typeCase_ = 0; private java.lang.Object type_; public TypeCase getTypeCase() { return TypeCase.forNumber( typeCase_); } public Builder clearType() { typeCase_ = 0; type_ = null; onChanged(); return this; } /** * optional .common.Status status = 1; */ public int getStatusValue() { if (typeCase_ == 1) { return ((java.lang.Integer) type_).intValue(); } return 0; } /** * optional .common.Status status = 1; */ public Builder setStatusValue(int value) { typeCase_ = 1; type_ = value; onChanged(); return this; } /** * optional .common.Status status = 1; */ public org.hyperledger.fabric.protos.common.Common.Status getStatus() { if (typeCase_ == 1) { org.hyperledger.fabric.protos.common.Common.Status result = org.hyperledger.fabric.protos.common.Common.Status.valueOf( (java.lang.Integer) type_); return result == null ? org.hyperledger.fabric.protos.common.Common.Status.UNRECOGNIZED : result; } return org.hyperledger.fabric.protos.common.Common.Status.UNKNOWN; } /** * optional .common.Status status = 1; */ public Builder setStatus(org.hyperledger.fabric.protos.common.Common.Status value) { if (value == null) { throw new NullPointerException(); } typeCase_ = 1; type_ = value.getNumber(); onChanged(); return this; } /** * optional .common.Status status = 1; */ public Builder clearStatus() { if (typeCase_ == 1) { typeCase_ = 0; type_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Common.Block, org.hyperledger.fabric.protos.common.Common.Block.Builder, org.hyperledger.fabric.protos.common.Common.BlockOrBuilder> blockBuilder_; /** * optional .common.Block block = 2; */ public org.hyperledger.fabric.protos.common.Common.Block getBlock() { if (blockBuilder_ == null) { if (typeCase_ == 2) { return (org.hyperledger.fabric.protos.common.Common.Block) type_; } return org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance(); } else { if (typeCase_ == 2) { return blockBuilder_.getMessage(); } return org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance(); } } /** * optional .common.Block block = 2; */ public Builder setBlock(org.hyperledger.fabric.protos.common.Common.Block value) { if (blockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { blockBuilder_.setMessage(value); } typeCase_ = 2; return this; } /** * optional .common.Block block = 2; */ public Builder setBlock( org.hyperledger.fabric.protos.common.Common.Block.Builder builderForValue) { if (blockBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { blockBuilder_.setMessage(builderForValue.build()); } typeCase_ = 2; return this; } /** * optional .common.Block block = 2; */ public Builder mergeBlock(org.hyperledger.fabric.protos.common.Common.Block value) { if (blockBuilder_ == null) { if (typeCase_ == 2 && type_ != org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance()) { type_ = org.hyperledger.fabric.protos.common.Common.Block.newBuilder((org.hyperledger.fabric.protos.common.Common.Block) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 2) { blockBuilder_.mergeFrom(value); } blockBuilder_.setMessage(value); } typeCase_ = 2; return this; } /** * optional .common.Block block = 2; */ public Builder clearBlock() { if (blockBuilder_ == null) { if (typeCase_ == 2) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 2) { typeCase_ = 0; type_ = null; } blockBuilder_.clear(); } return this; } /** * optional .common.Block block = 2; */ public org.hyperledger.fabric.protos.common.Common.Block.Builder getBlockBuilder() { return getBlockFieldBuilder().getBuilder(); } /** * optional .common.Block block = 2; */ public org.hyperledger.fabric.protos.common.Common.BlockOrBuilder getBlockOrBuilder() { if ((typeCase_ == 2) && (blockBuilder_ != null)) { return blockBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 2) { return (org.hyperledger.fabric.protos.common.Common.Block) type_; } return org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance(); } } /** * optional .common.Block block = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Common.Block, org.hyperledger.fabric.protos.common.Common.Block.Builder, org.hyperledger.fabric.protos.common.Common.BlockOrBuilder> getBlockFieldBuilder() { if (blockBuilder_ == null) { if (!(typeCase_ == 2)) { type_ = org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance(); } blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Common.Block, org.hyperledger.fabric.protos.common.Common.Block.Builder, org.hyperledger.fabric.protos.common.Common.BlockOrBuilder>( (org.hyperledger.fabric.protos.common.Common.Block) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 2; onChanged();; return blockBuilder_; } 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:orderer.DeliverResponse) } // @@protoc_insertion_point(class_scope:orderer.DeliverResponse) private static final org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse(); } public static org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DeliverResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeliverResponse(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.orderer.Ab.DeliverResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_orderer_BroadcastResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_orderer_BroadcastResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_orderer_SeekNewest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_orderer_SeekNewest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_orderer_SeekOldest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_orderer_SeekOldest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_orderer_SeekSpecified_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_orderer_SeekSpecified_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_orderer_SeekPosition_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_orderer_SeekPosition_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_orderer_SeekInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_orderer_SeekInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_orderer_DeliverResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_orderer_DeliverResponse_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\020orderer/ab.proto\022\007orderer\032\023common/comm" + "on.proto\"A\n\021BroadcastResponse\022\036\n\006status\030" + "\001 \001(\0162\016.common.Status\022\014\n\004info\030\002 \001(\t\"\014\n\nS" + "eekNewest\"\014\n\nSeekOldest\"\037\n\rSeekSpecified" + "\022\016\n\006number\030\001 \001(\004\"\221\001\n\014SeekPosition\022%\n\006new" + "est\030\001 \001(\0132\023.orderer.SeekNewestH\000\022%\n\006olde" + "st\030\002 \001(\0132\023.orderer.SeekOldestH\000\022+\n\tspeci" + "fied\030\003 \001(\0132\026.orderer.SeekSpecifiedH\000B\006\n\004" + "Type\"\305\001\n\010SeekInfo\022$\n\005start\030\001 \001(\0132\025.order" + "er.SeekPosition\022#\n\004stop\030\002 \001(\0132\025.orderer.", "SeekPosition\0220\n\010behavior\030\003 \001(\0162\036.orderer" + ".SeekInfo.SeekBehavior\"<\n\014SeekBehavior\022\025" + "\n\021BLOCK_UNTIL_READY\020\000\022\025\n\021FAIL_IF_NOT_REA" + "DY\020\001\"[\n\017DeliverResponse\022 \n\006status\030\001 \001(\0162" + "\016.common.StatusH\000\022\036\n\005block\030\002 \001(\0132\r.commo" + "n.BlockH\000B\006\n\004Type2\217\001\n\017AtomicBroadcast\022?\n" + "\tBroadcast\022\020.common.Envelope\032\032.orderer.B" + "roadcastResponse\"\000(\0010\001\022;\n\007Deliver\022\020.comm" + "on.Envelope\032\030.orderer.DeliverResponse\"\000(" + "\0010\001BU\n%org.hyperledger.fabric.protos.ord", "ererZ,github.com/hyperledger/fabric/prot" + "os/ordererb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.hyperledger.fabric.protos.common.Common.getDescriptor(), }, assigner); internal_static_orderer_BroadcastResponse_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_orderer_BroadcastResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_orderer_BroadcastResponse_descriptor, new java.lang.String[] { "Status", "Info", }); internal_static_orderer_SeekNewest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_orderer_SeekNewest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_orderer_SeekNewest_descriptor, new java.lang.String[] { }); internal_static_orderer_SeekOldest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_orderer_SeekOldest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_orderer_SeekOldest_descriptor, new java.lang.String[] { }); internal_static_orderer_SeekSpecified_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_orderer_SeekSpecified_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_orderer_SeekSpecified_descriptor, new java.lang.String[] { "Number", }); internal_static_orderer_SeekPosition_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_orderer_SeekPosition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_orderer_SeekPosition_descriptor, new java.lang.String[] { "Newest", "Oldest", "Specified", "Type", }); internal_static_orderer_SeekInfo_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_orderer_SeekInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_orderer_SeekInfo_descriptor, new java.lang.String[] { "Start", "Stop", "Behavior", }); internal_static_orderer_DeliverResponse_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_orderer_DeliverResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_orderer_DeliverResponse_descriptor, new java.lang.String[] { "Status", "Block", "Type", }); org.hyperledger.fabric.protos.common.Common.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy