org.hyperledger.fabric.protos.orderer.Ab Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fabric-sdk-java Show documentation
Show all versions of fabric-sdk-java Show documentation
Java SDK for Hyperledger Fabric. Deprecated as of Fabric v2.5, replaced by org.hyperledger.fabric:fabric-gateway.
// 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
*
*
* .common.Status status = 1;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
*
* Status code, which may be used to programatically respond to success/failure
*
*
* .common.Status status = 1;
* @return The status.
*/
org.hyperledger.fabric.protos.common.Common.Status getStatus();
/**
*
* Info string which may contain additional information about the status returned
*
*
* string info = 2;
* @return The info.
*/
java.lang.String getInfo();
/**
*
* Info string which may contain additional information about the status returned
*
*
* string info = 2;
* @return The bytes for info.
*/
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 {
private static final long serialVersionUID = 0L;
// Use BroadcastResponse.newBuilder() to construct.
private BroadcastResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BroadcastResponse() {
status_ = 0;
info_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BroadcastResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_BroadcastResponse_descriptor;
}
@java.lang.Override
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
*
*
* .common.Status status = 1;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Status code, which may be used to programatically respond to success/failure
*
*
* .common.Status status = 1;
* @return The status.
*/
@java.lang.Override public org.hyperledger.fabric.protos.common.Common.Status getStatus() {
@SuppressWarnings("deprecation")
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
*
*
* string info = 2;
* @return The info.
*/
@java.lang.Override
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
*
*
* string info = 2;
* @return The bytes for info.
*/
@java.lang.Override
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;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (status_ != org.hyperledger.fabric.protos.common.Common.Status.UNKNOWN.getNumber()) {
output.writeEnum(1, status_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(info_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, info_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(info_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, info_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse other = (org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse) obj;
if (status_ != other.status_) return false;
if (!getInfo()
.equals(other.getInfo())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (37 * hash) + INFO_FIELD_NUMBER;
hash = (53 * hash) + getInfo().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.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);
}
@java.lang.Override
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);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.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;
}
@java.lang.Override
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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
status_ = 0;
info_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_BroadcastResponse_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
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();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
status_ = input.readEnum();
break;
} // case 8
case 18: {
info_ = input.readStringRequireUtf8();
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int status_ = 0;
/**
*
* Status code, which may be used to programatically respond to success/failure
*
*
* .common.Status status = 1;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Status code, which may be used to programatically respond to success/failure
*
*
* .common.Status status = 1;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
*
* Status code, which may be used to programatically respond to success/failure
*
*
* .common.Status status = 1;
* @return The status.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.common.Common.Status getStatus() {
@SuppressWarnings("deprecation")
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
*
*
* .common.Status status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
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
*
*
* .common.Status status = 1;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private java.lang.Object info_ = "";
/**
*
* Info string which may contain additional information about the status returned
*
*
* string info = 2;
* @return The info.
*/
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
*
*
* string info = 2;
* @return The bytes for info.
*/
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
*
*
* string info = 2;
* @param value The info to set.
* @return This builder for chaining.
*/
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
*
*
* string info = 2;
* @return This builder for chaining.
*/
public Builder clearInfo() {
info_ = getDefaultInstance().getInfo();
onChanged();
return this;
}
/**
*
* Info string which may contain additional information about the status returned
*
*
* string info = 2;
* @param value The bytes for info to set.
* @return This builder for chaining.
*/
public Builder setInfoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
info_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@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() {
@java.lang.Override
public BroadcastResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.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 {
private static final long serialVersionUID = 0L;
// Use SeekNewest.newBuilder() to construct.
private SeekNewest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SeekNewest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SeekNewest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekNewest_descriptor;
}
@java.lang.Override
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;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.orderer.Ab.SeekNewest)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.orderer.Ab.SeekNewest other = (org.hyperledger.fabric.protos.orderer.Ab.SeekNewest) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.orderer.Ab.SeekNewest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.Ab.SeekNewest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.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);
}
@java.lang.Override
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);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.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;
}
@java.lang.Override
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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekNewest_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.Ab.SeekNewest getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.orderer.Ab.SeekNewest.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
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;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@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() {
@java.lang.Override
public SeekNewest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.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 {
private static final long serialVersionUID = 0L;
// Use SeekOldest.newBuilder() to construct.
private SeekOldest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SeekOldest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SeekOldest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekOldest_descriptor;
}
@java.lang.Override
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;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.orderer.Ab.SeekOldest)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.orderer.Ab.SeekOldest other = (org.hyperledger.fabric.protos.orderer.Ab.SeekOldest) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.orderer.Ab.SeekOldest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.Ab.SeekOldest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.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);
}
@java.lang.Override
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);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.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;
}
@java.lang.Override
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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekOldest_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.Ab.SeekOldest getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.orderer.Ab.SeekOldest.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
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;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@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() {
@java.lang.Override
public SeekOldest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.Ab.SeekOldest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SeekSpecifiedOrBuilder extends
// @@protoc_insertion_point(interface_extends:orderer.SeekSpecified)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 number = 1;
* @return The number.
*/
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 {
private static final long serialVersionUID = 0L;
// Use SeekSpecified.newBuilder() to construct.
private SeekSpecified(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SeekSpecified() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SeekSpecified();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekSpecified_descriptor;
}
@java.lang.Override
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_;
/**
* uint64 number = 1;
* @return The number.
*/
@java.lang.Override
public long getNumber() {
return number_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (number_ != 0L) {
output.writeUInt64(1, number_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (number_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, number_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified other = (org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified) obj;
if (getNumber()
!= other.getNumber()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NUMBER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNumber());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.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);
}
@java.lang.Override
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);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.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;
}
@java.lang.Override
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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
number_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekSpecified_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
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());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
number_ = input.readUInt64();
break;
} // case 8
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private long number_ ;
/**
* uint64 number = 1;
* @return The number.
*/
@java.lang.Override
public long getNumber() {
return number_;
}
/**
* uint64 number = 1;
* @param value The number to set.
* @return This builder for chaining.
*/
public Builder setNumber(long value) {
number_ = value;
onChanged();
return this;
}
/**
* uint64 number = 1;
* @return This builder for chaining.
*/
public Builder clearNumber() {
number_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@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() {
@java.lang.Override
public SeekSpecified parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SeekPositionOrBuilder extends
// @@protoc_insertion_point(interface_extends:orderer.SeekPosition)
com.google.protobuf.MessageOrBuilder {
/**
* .orderer.SeekNewest newest = 1;
* @return Whether the newest field is set.
*/
boolean hasNewest();
/**
* .orderer.SeekNewest newest = 1;
* @return The newest.
*/
org.hyperledger.fabric.protos.orderer.Ab.SeekNewest getNewest();
/**
* .orderer.SeekNewest newest = 1;
*/
org.hyperledger.fabric.protos.orderer.Ab.SeekNewestOrBuilder getNewestOrBuilder();
/**
* .orderer.SeekOldest oldest = 2;
* @return Whether the oldest field is set.
*/
boolean hasOldest();
/**
* .orderer.SeekOldest oldest = 2;
* @return The oldest.
*/
org.hyperledger.fabric.protos.orderer.Ab.SeekOldest getOldest();
/**
* .orderer.SeekOldest oldest = 2;
*/
org.hyperledger.fabric.protos.orderer.Ab.SeekOldestOrBuilder getOldestOrBuilder();
/**
* .orderer.SeekSpecified specified = 3;
* @return Whether the specified field is set.
*/
boolean hasSpecified();
/**
* .orderer.SeekSpecified specified = 3;
* @return The specified.
*/
org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified getSpecified();
/**
* .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 {
private static final long serialVersionUID = 0L;
// Use SeekPosition.newBuilder() to construct.
private SeekPosition(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SeekPosition() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SeekPosition();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekPosition_descriptor;
}
@java.lang.Override
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,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
NEWEST(1),
OLDEST(2),
SPECIFIED(3),
TYPE_NOT_SET(0);
private final int value;
private TypeCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @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;
/**
* .orderer.SeekNewest newest = 1;
* @return Whether the newest field is set.
*/
@java.lang.Override
public boolean hasNewest() {
return typeCase_ == 1;
}
/**
* .orderer.SeekNewest newest = 1;
* @return The newest.
*/
@java.lang.Override
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();
}
/**
* .orderer.SeekNewest newest = 1;
*/
@java.lang.Override
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;
/**
* .orderer.SeekOldest oldest = 2;
* @return Whether the oldest field is set.
*/
@java.lang.Override
public boolean hasOldest() {
return typeCase_ == 2;
}
/**
* .orderer.SeekOldest oldest = 2;
* @return The oldest.
*/
@java.lang.Override
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();
}
/**
* .orderer.SeekOldest oldest = 2;
*/
@java.lang.Override
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;
/**
* .orderer.SeekSpecified specified = 3;
* @return Whether the specified field is set.
*/
@java.lang.Override
public boolean hasSpecified() {
return typeCase_ == 3;
}
/**
* .orderer.SeekSpecified specified = 3;
* @return The specified.
*/
@java.lang.Override
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();
}
/**
* .orderer.SeekSpecified specified = 3;
*/
@java.lang.Override
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;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (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_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
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_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.orderer.Ab.SeekPosition)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.orderer.Ab.SeekPosition other = (org.hyperledger.fabric.protos.orderer.Ab.SeekPosition) obj;
if (!getTypeCase().equals(other.getTypeCase())) return false;
switch (typeCase_) {
case 1:
if (!getNewest()
.equals(other.getNewest())) return false;
break;
case 2:
if (!getOldest()
.equals(other.getOldest())) return false;
break;
case 3:
if (!getSpecified()
.equals(other.getSpecified())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.orderer.Ab.SeekPosition parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.Ab.SeekPosition parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.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);
}
@java.lang.Override
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);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.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;
}
@java.lang.Override
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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (newestBuilder_ != null) {
newestBuilder_.clear();
}
if (oldestBuilder_ != null) {
oldestBuilder_.clear();
}
if (specifiedBuilder_ != null) {
specifiedBuilder_.clear();
}
typeCase_ = 0;
type_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekPosition_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.Ab.SeekPosition getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
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;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getNewestFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getOldestFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getSpecifiedFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 3;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int 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_;
/**
* .orderer.SeekNewest newest = 1;
* @return Whether the newest field is set.
*/
@java.lang.Override
public boolean hasNewest() {
return typeCase_ == 1;
}
/**
* .orderer.SeekNewest newest = 1;
* @return The newest.
*/
@java.lang.Override
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();
}
}
/**
* .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;
}
/**
* .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;
}
/**
* .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);
} else {
newestBuilder_.setMessage(value);
}
}
typeCase_ = 1;
return this;
}
/**
* .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;
}
/**
* .orderer.SeekNewest newest = 1;
*/
public org.hyperledger.fabric.protos.orderer.Ab.SeekNewest.Builder getNewestBuilder() {
return getNewestFieldBuilder().getBuilder();
}
/**
* .orderer.SeekNewest newest = 1;
*/
@java.lang.Override
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();
}
}
/**
* .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_;
/**
* .orderer.SeekOldest oldest = 2;
* @return Whether the oldest field is set.
*/
@java.lang.Override
public boolean hasOldest() {
return typeCase_ == 2;
}
/**
* .orderer.SeekOldest oldest = 2;
* @return The oldest.
*/
@java.lang.Override
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();
}
}
/**
* .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;
}
/**
* .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;
}
/**
* .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);
} else {
oldestBuilder_.setMessage(value);
}
}
typeCase_ = 2;
return this;
}
/**
* .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;
}
/**
* .orderer.SeekOldest oldest = 2;
*/
public org.hyperledger.fabric.protos.orderer.Ab.SeekOldest.Builder getOldestBuilder() {
return getOldestFieldBuilder().getBuilder();
}
/**
* .orderer.SeekOldest oldest = 2;
*/
@java.lang.Override
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();
}
}
/**
* .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_;
/**
* .orderer.SeekSpecified specified = 3;
* @return Whether the specified field is set.
*/
@java.lang.Override
public boolean hasSpecified() {
return typeCase_ == 3;
}
/**
* .orderer.SeekSpecified specified = 3;
* @return The specified.
*/
@java.lang.Override
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();
}
}
/**
* .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;
}
/**
* .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;
}
/**
* .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);
} else {
specifiedBuilder_.setMessage(value);
}
}
typeCase_ = 3;
return this;
}
/**
* .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;
}
/**
* .orderer.SeekSpecified specified = 3;
*/
public org.hyperledger.fabric.protos.orderer.Ab.SeekSpecified.Builder getSpecifiedBuilder() {
return getSpecifiedFieldBuilder().getBuilder();
}
/**
* .orderer.SeekSpecified specified = 3;
*/
@java.lang.Override
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();
}
}
/**
* .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_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@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() {
@java.lang.Override
public SeekPosition parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.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
*
*
* .orderer.SeekPosition start = 1;
* @return Whether the start field is set.
*/
boolean hasStart();
/**
*
* The position to start the deliver from
*
*
* .orderer.SeekPosition start = 1;
* @return The start.
*/
org.hyperledger.fabric.protos.orderer.Ab.SeekPosition getStart();
/**
*
* The position to start the deliver from
*
*
* .orderer.SeekPosition start = 1;
*/
org.hyperledger.fabric.protos.orderer.Ab.SeekPositionOrBuilder getStartOrBuilder();
/**
*
* The position to stop the deliver
*
*
* .orderer.SeekPosition stop = 2;
* @return Whether the stop field is set.
*/
boolean hasStop();
/**
*
* The position to stop the deliver
*
*
* .orderer.SeekPosition stop = 2;
* @return The stop.
*/
org.hyperledger.fabric.protos.orderer.Ab.SeekPosition getStop();
/**
*
* The position to stop the deliver
*
*
* .orderer.SeekPosition stop = 2;
*/
org.hyperledger.fabric.protos.orderer.Ab.SeekPositionOrBuilder getStopOrBuilder();
/**
*
* The behavior when a missing block is encountered
*
*
* .orderer.SeekInfo.SeekBehavior behavior = 3;
* @return The enum numeric value on the wire for behavior.
*/
int getBehaviorValue();
/**
*
* The behavior when a missing block is encountered
*
*
* .orderer.SeekInfo.SeekBehavior behavior = 3;
* @return The behavior.
*/
org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekBehavior getBehavior();
/**
*
* How to respond to errors reported to the deliver service
*
*
* .orderer.SeekInfo.SeekErrorResponse error_response = 4;
* @return The enum numeric value on the wire for errorResponse.
*/
int getErrorResponseValue();
/**
*
* How to respond to errors reported to the deliver service
*
*
* .orderer.SeekInfo.SeekErrorResponse error_response = 4;
* @return The errorResponse.
*/
org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekErrorResponse getErrorResponse();
}
/**
*
* 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.
*
*
* Protobuf type {@code orderer.SeekInfo}
*/
public static final class SeekInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:orderer.SeekInfo)
SeekInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use SeekInfo.newBuilder() to construct.
private SeekInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SeekInfo() {
behavior_ = 0;
errorResponse_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SeekInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekInfo_descriptor;
}
@java.lang.Override
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);
}
/**
*
* 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 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;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SeekBehavior valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire 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() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
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)
}
/**
*
* SeekErrorTolerance indicates to the server how block provider errors should be tolerated. By default,
* if the deliver service detects a problem in the underlying block source (typically, in the orderer,
* a consenter error), it will begin to reject deliver requests. This is to prevent a client from waiting
* for blocks from an orderer which is stuck in an errored state. This is almost always the desired behavior
* and clients should stick with the default STRICT checking behavior. However, in some scenarios, particularly
* when attempting to recover from a crash or other corruption, it's desirable to force an orderer to respond
* with blocks on a best effort basis, even if the backing consensus implementation is in an errored state.
* In this case, set the SeekErrorResponse to BEST_EFFORT to ignore the consenter errors.
*
*
* Protobuf enum {@code orderer.SeekInfo.SeekErrorResponse}
*/
public enum SeekErrorResponse
implements com.google.protobuf.ProtocolMessageEnum {
/**
* STRICT = 0;
*/
STRICT(0),
/**
* BEST_EFFORT = 1;
*/
BEST_EFFORT(1),
UNRECOGNIZED(-1),
;
/**
* STRICT = 0;
*/
public static final int STRICT_VALUE = 0;
/**
* BEST_EFFORT = 1;
*/
public static final int BEST_EFFORT_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;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SeekErrorResponse valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static SeekErrorResponse forNumber(int value) {
switch (value) {
case 0: return STRICT;
case 1: return BEST_EFFORT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
SeekErrorResponse> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public SeekErrorResponse findValueByNumber(int number) {
return SeekErrorResponse.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
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(1);
}
private static final SeekErrorResponse[] VALUES = values();
public static SeekErrorResponse 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 SeekErrorResponse(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:orderer.SeekInfo.SeekErrorResponse)
}
public static final int START_FIELD_NUMBER = 1;
private org.hyperledger.fabric.protos.orderer.Ab.SeekPosition start_;
/**
*
* The position to start the deliver from
*
*
* .orderer.SeekPosition start = 1;
* @return Whether the start field is set.
*/
@java.lang.Override
public boolean hasStart() {
return start_ != null;
}
/**
*
* The position to start the deliver from
*
*
* .orderer.SeekPosition start = 1;
* @return The start.
*/
@java.lang.Override
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
*
*
* .orderer.SeekPosition start = 1;
*/
@java.lang.Override
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
*
*
* .orderer.SeekPosition stop = 2;
* @return Whether the stop field is set.
*/
@java.lang.Override
public boolean hasStop() {
return stop_ != null;
}
/**
*
* The position to stop the deliver
*
*
* .orderer.SeekPosition stop = 2;
* @return The stop.
*/
@java.lang.Override
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
*
*
* .orderer.SeekPosition stop = 2;
*/
@java.lang.Override
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
*
*
* .orderer.SeekInfo.SeekBehavior behavior = 3;
* @return The enum numeric value on the wire for behavior.
*/
@java.lang.Override public int getBehaviorValue() {
return behavior_;
}
/**
*
* The behavior when a missing block is encountered
*
*
* .orderer.SeekInfo.SeekBehavior behavior = 3;
* @return The behavior.
*/
@java.lang.Override public org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekBehavior getBehavior() {
@SuppressWarnings("deprecation")
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;
}
public static final int ERROR_RESPONSE_FIELD_NUMBER = 4;
private int errorResponse_;
/**
*
* How to respond to errors reported to the deliver service
*
*
* .orderer.SeekInfo.SeekErrorResponse error_response = 4;
* @return The enum numeric value on the wire for errorResponse.
*/
@java.lang.Override public int getErrorResponseValue() {
return errorResponse_;
}
/**
*
* How to respond to errors reported to the deliver service
*
*
* .orderer.SeekInfo.SeekErrorResponse error_response = 4;
* @return The errorResponse.
*/
@java.lang.Override public org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekErrorResponse getErrorResponse() {
@SuppressWarnings("deprecation")
org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekErrorResponse result = org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekErrorResponse.valueOf(errorResponse_);
return result == null ? org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekErrorResponse.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (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_);
}
if (errorResponse_ != org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekErrorResponse.STRICT.getNumber()) {
output.writeEnum(4, errorResponse_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
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_);
}
if (errorResponse_ != org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekErrorResponse.STRICT.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, errorResponse_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.orderer.Ab.SeekInfo)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.orderer.Ab.SeekInfo other = (org.hyperledger.fabric.protos.orderer.Ab.SeekInfo) obj;
if (hasStart() != other.hasStart()) return false;
if (hasStart()) {
if (!getStart()
.equals(other.getStart())) return false;
}
if (hasStop() != other.hasStop()) return false;
if (hasStop()) {
if (!getStop()
.equals(other.getStop())) return false;
}
if (behavior_ != other.behavior_) return false;
if (errorResponse_ != other.errorResponse_) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (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 = (37 * hash) + ERROR_RESPONSE_FIELD_NUMBER;
hash = (53 * hash) + errorResponse_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.orderer.Ab.SeekInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.Ab.SeekInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.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);
}
@java.lang.Override
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);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.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.
*
*
* 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;
}
@java.lang.Override
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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
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;
errorResponse_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_SeekInfo_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.Ab.SeekInfo getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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_;
result.errorResponse_ = errorResponse_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
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());
}
if (other.errorResponse_ != 0) {
setErrorResponseValue(other.getErrorResponseValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getStartFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
case 18: {
input.readMessage(
getStopFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 18
case 24: {
behavior_ = input.readEnum();
break;
} // case 24
case 32: {
errorResponse_ = input.readEnum();
break;
} // case 32
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private org.hyperledger.fabric.protos.orderer.Ab.SeekPosition start_;
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
*
*
* .orderer.SeekPosition start = 1;
* @return Whether the start field is set.
*/
public boolean hasStart() {
return startBuilder_ != null || start_ != null;
}
/**
*
* The position to start the deliver from
*
*
* .orderer.SeekPosition start = 1;
* @return The start.
*/
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
*
*
* .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
*
*
* .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
*
*
* .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
*
*
* .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
*
*
* .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
*
*
* .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
*
*
* .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_;
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
*
*
* .orderer.SeekPosition stop = 2;
* @return Whether the stop field is set.
*/
public boolean hasStop() {
return stopBuilder_ != null || stop_ != null;
}
/**
*
* The position to stop the deliver
*
*
* .orderer.SeekPosition stop = 2;
* @return The stop.
*/
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
*
*
* .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
*
*
* .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
*
*
* .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
*
*
* .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
*
*
* .orderer.SeekPosition stop = 2;
*/
public org.hyperledger.fabric.protos.orderer.Ab.SeekPosition.Builder getStopBuilder() {
onChanged();
return getStopFieldBuilder().getBuilder();
}
/**
*
* The position to stop the deliver
*
*
* .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
*
*
* .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
*
*
* .orderer.SeekInfo.SeekBehavior behavior = 3;
* @return The enum numeric value on the wire for behavior.
*/
@java.lang.Override public int getBehaviorValue() {
return behavior_;
}
/**
*
* The behavior when a missing block is encountered
*
*
* .orderer.SeekInfo.SeekBehavior behavior = 3;
* @param value The enum numeric value on the wire for behavior to set.
* @return This builder for chaining.
*/
public Builder setBehaviorValue(int value) {
behavior_ = value;
onChanged();
return this;
}
/**
*
* The behavior when a missing block is encountered
*
*
* .orderer.SeekInfo.SeekBehavior behavior = 3;
* @return The behavior.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekBehavior getBehavior() {
@SuppressWarnings("deprecation")
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
*
*
* .orderer.SeekInfo.SeekBehavior behavior = 3;
* @param value The behavior to set.
* @return This builder for chaining.
*/
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
*
*
* .orderer.SeekInfo.SeekBehavior behavior = 3;
* @return This builder for chaining.
*/
public Builder clearBehavior() {
behavior_ = 0;
onChanged();
return this;
}
private int errorResponse_ = 0;
/**
*
* How to respond to errors reported to the deliver service
*
*
* .orderer.SeekInfo.SeekErrorResponse error_response = 4;
* @return The enum numeric value on the wire for errorResponse.
*/
@java.lang.Override public int getErrorResponseValue() {
return errorResponse_;
}
/**
*
* How to respond to errors reported to the deliver service
*
*
* .orderer.SeekInfo.SeekErrorResponse error_response = 4;
* @param value The enum numeric value on the wire for errorResponse to set.
* @return This builder for chaining.
*/
public Builder setErrorResponseValue(int value) {
errorResponse_ = value;
onChanged();
return this;
}
/**
*
* How to respond to errors reported to the deliver service
*
*
* .orderer.SeekInfo.SeekErrorResponse error_response = 4;
* @return The errorResponse.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekErrorResponse getErrorResponse() {
@SuppressWarnings("deprecation")
org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekErrorResponse result = org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekErrorResponse.valueOf(errorResponse_);
return result == null ? org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekErrorResponse.UNRECOGNIZED : result;
}
/**
*
* How to respond to errors reported to the deliver service
*
*
* .orderer.SeekInfo.SeekErrorResponse error_response = 4;
* @param value The errorResponse to set.
* @return This builder for chaining.
*/
public Builder setErrorResponse(org.hyperledger.fabric.protos.orderer.Ab.SeekInfo.SeekErrorResponse value) {
if (value == null) {
throw new NullPointerException();
}
errorResponse_ = value.getNumber();
onChanged();
return this;
}
/**
*
* How to respond to errors reported to the deliver service
*
*
* .orderer.SeekInfo.SeekErrorResponse error_response = 4;
* @return This builder for chaining.
*/
public Builder clearErrorResponse() {
errorResponse_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@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() {
@java.lang.Override
public SeekInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.Ab.SeekInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeliverResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:orderer.DeliverResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .common.Status status = 1;
* @return Whether the status field is set.
*/
boolean hasStatus();
/**
* .common.Status status = 1;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
* .common.Status status = 1;
* @return The status.
*/
org.hyperledger.fabric.protos.common.Common.Status getStatus();
/**
* .common.Block block = 2;
* @return Whether the block field is set.
*/
boolean hasBlock();
/**
* .common.Block block = 2;
* @return The block.
*/
org.hyperledger.fabric.protos.common.Common.Block getBlock();
/**
* .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 {
private static final long serialVersionUID = 0L;
// Use DeliverResponse.newBuilder() to construct.
private DeliverResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeliverResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeliverResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_DeliverResponse_descriptor;
}
@java.lang.Override
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,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
STATUS(1),
BLOCK(2),
TYPE_NOT_SET(0);
private final int value;
private TypeCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @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;
/**
* .common.Status status = 1;
* @return Whether the status field is set.
*/
public boolean hasStatus() {
return typeCase_ == 1;
}
/**
* .common.Status status = 1;
* @return The enum numeric value on the wire for status.
*/
public int getStatusValue() {
if (typeCase_ == 1) {
return (java.lang.Integer) type_;
}
return 0;
}
/**
* .common.Status status = 1;
* @return The status.
*/
public org.hyperledger.fabric.protos.common.Common.Status getStatus() {
if (typeCase_ == 1) {
@SuppressWarnings("deprecation")
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;
/**
* .common.Block block = 2;
* @return Whether the block field is set.
*/
@java.lang.Override
public boolean hasBlock() {
return typeCase_ == 2;
}
/**
* .common.Block block = 2;
* @return The block.
*/
@java.lang.Override
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();
}
/**
* .common.Block block = 2;
*/
@java.lang.Override
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;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (typeCase_ == 1) {
output.writeEnum(1, ((java.lang.Integer) type_));
}
if (typeCase_ == 2) {
output.writeMessage(2, (org.hyperledger.fabric.protos.common.Common.Block) type_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
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_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse other = (org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse) obj;
if (!getTypeCase().equals(other.getTypeCase())) return false;
switch (typeCase_) {
case 1:
if (getStatusValue()
!= other.getStatusValue()) return false;
break;
case 2:
if (!getBlock()
.equals(other.getBlock())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.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);
}
@java.lang.Override
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);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.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;
}
@java.lang.Override
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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (blockBuilder_ != null) {
blockBuilder_.clear();
}
typeCase_ = 0;
type_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.orderer.Ab.internal_static_orderer_DeliverResponse_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
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;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
typeCase_ = 1;
type_ = rawValue;
break;
} // case 8
case 18: {
input.readMessage(
getBlockFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 2;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int typeCase_ = 0;
private java.lang.Object type_;
public TypeCase
getTypeCase() {
return TypeCase.forNumber(
typeCase_);
}
public Builder clearType() {
typeCase_ = 0;
type_ = null;
onChanged();
return this;
}
/**
* .common.Status status = 1;
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return typeCase_ == 1;
}
/**
* .common.Status status = 1;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override
public int getStatusValue() {
if (typeCase_ == 1) {
return ((java.lang.Integer) type_).intValue();
}
return 0;
}
/**
* .common.Status status = 1;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
typeCase_ = 1;
type_ = value;
onChanged();
return this;
}
/**
* .common.Status status = 1;
* @return The status.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.common.Common.Status getStatus() {
if (typeCase_ == 1) {
@SuppressWarnings("deprecation")
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;
}
/**
* .common.Status status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
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;
}
/**
* .common.Status status = 1;
* @return This builder for chaining.
*/
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_;
/**
* .common.Block block = 2;
* @return Whether the block field is set.
*/
@java.lang.Override
public boolean hasBlock() {
return typeCase_ == 2;
}
/**
* .common.Block block = 2;
* @return The block.
*/
@java.lang.Override
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();
}
}
/**
* .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;
}
/**
* .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;
}
/**
* .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);
} else {
blockBuilder_.setMessage(value);
}
}
typeCase_ = 2;
return this;
}
/**
* .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;
}
/**
* .common.Block block = 2;
*/
public org.hyperledger.fabric.protos.common.Common.Block.Builder getBlockBuilder() {
return getBlockFieldBuilder().getBuilder();
}
/**
* .common.Block block = 2;
*/
@java.lang.Override
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();
}
}
/**
* .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_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@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() {
@java.lang.Override
public DeliverResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.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\"\264\002\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\022;\n\016error_response" +
"\030\004 \001(\0162#.orderer.SeekInfo.SeekErrorRespo" +
"nse\"<\n\014SeekBehavior\022\025\n\021BLOCK_UNTIL_READY" +
"\020\000\022\025\n\021FAIL_IF_NOT_READY\020\001\"0\n\021SeekErrorRe" +
"sponse\022\n\n\006STRICT\020\000\022\017\n\013BEST_EFFORT\020\001\"[\n\017D" +
"eliverResponse\022 \n\006status\030\001 \001(\0162\016.common." +
"StatusH\000\022\036\n\005block\030\002 \001(\0132\r.common.BlockH\000" +
"B\006\n\004Type2\213\001\n\017AtomicBroadcast\022=\n\tBroadcas" +
"t\022\020.common.Envelope\032\032.orderer.BroadcastR" +
"esponse(\0010\001\0229\n\007Deliver\022\020.common.Envelope" +
"\032\030.orderer.DeliverResponse(\0010\001BX\n%org.hy" +
"perledger.fabric.protos.ordererZ/github." +
"com/hyperledger/fabric-protos-go/orderer" +
"b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.hyperledger.fabric.protos.common.Common.getDescriptor(),
});
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", "ErrorResponse", });
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)
}