org.hyperledger.fabric.protos.orderer.SeekPosition Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: orderer/ab.proto
// Protobuf Java Version: 4.28.2
package org.hyperledger.fabric.protos.orderer;
/**
* Protobuf type {@code orderer.SeekPosition}
*/
public final class SeekPosition extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:orderer.SeekPosition)
SeekPositionOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
SeekPosition.class.getName());
}
// Use SeekPosition.newBuilder() to construct.
private SeekPosition(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private SeekPosition() {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.AbProto.internal_static_orderer_SeekPosition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.AbProto.internal_static_orderer_SeekPosition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.SeekPosition.class, org.hyperledger.fabric.protos.orderer.SeekPosition.Builder.class);
}
private int typeCase_ = 0;
@SuppressWarnings("serial")
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),
NEXT_COMMIT(4),
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 4: return NEXT_COMMIT;
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 [json_name = "newest"];
* @return Whether the newest field is set.
*/
@java.lang.Override
public boolean hasNewest() {
return typeCase_ == 1;
}
/**
* .orderer.SeekNewest newest = 1 [json_name = "newest"];
* @return The newest.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.SeekNewest getNewest() {
if (typeCase_ == 1) {
return (org.hyperledger.fabric.protos.orderer.SeekNewest) type_;
}
return org.hyperledger.fabric.protos.orderer.SeekNewest.getDefaultInstance();
}
/**
* .orderer.SeekNewest newest = 1 [json_name = "newest"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.SeekNewestOrBuilder getNewestOrBuilder() {
if (typeCase_ == 1) {
return (org.hyperledger.fabric.protos.orderer.SeekNewest) type_;
}
return org.hyperledger.fabric.protos.orderer.SeekNewest.getDefaultInstance();
}
public static final int OLDEST_FIELD_NUMBER = 2;
/**
* .orderer.SeekOldest oldest = 2 [json_name = "oldest"];
* @return Whether the oldest field is set.
*/
@java.lang.Override
public boolean hasOldest() {
return typeCase_ == 2;
}
/**
* .orderer.SeekOldest oldest = 2 [json_name = "oldest"];
* @return The oldest.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.SeekOldest getOldest() {
if (typeCase_ == 2) {
return (org.hyperledger.fabric.protos.orderer.SeekOldest) type_;
}
return org.hyperledger.fabric.protos.orderer.SeekOldest.getDefaultInstance();
}
/**
* .orderer.SeekOldest oldest = 2 [json_name = "oldest"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.SeekOldestOrBuilder getOldestOrBuilder() {
if (typeCase_ == 2) {
return (org.hyperledger.fabric.protos.orderer.SeekOldest) type_;
}
return org.hyperledger.fabric.protos.orderer.SeekOldest.getDefaultInstance();
}
public static final int SPECIFIED_FIELD_NUMBER = 3;
/**
* .orderer.SeekSpecified specified = 3 [json_name = "specified"];
* @return Whether the specified field is set.
*/
@java.lang.Override
public boolean hasSpecified() {
return typeCase_ == 3;
}
/**
* .orderer.SeekSpecified specified = 3 [json_name = "specified"];
* @return The specified.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.SeekSpecified getSpecified() {
if (typeCase_ == 3) {
return (org.hyperledger.fabric.protos.orderer.SeekSpecified) type_;
}
return org.hyperledger.fabric.protos.orderer.SeekSpecified.getDefaultInstance();
}
/**
* .orderer.SeekSpecified specified = 3 [json_name = "specified"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.SeekSpecifiedOrBuilder getSpecifiedOrBuilder() {
if (typeCase_ == 3) {
return (org.hyperledger.fabric.protos.orderer.SeekSpecified) type_;
}
return org.hyperledger.fabric.protos.orderer.SeekSpecified.getDefaultInstance();
}
public static final int NEXT_COMMIT_FIELD_NUMBER = 4;
/**
* .orderer.SeekNextCommit next_commit = 4 [json_name = "nextCommit"];
* @return Whether the nextCommit field is set.
*/
@java.lang.Override
public boolean hasNextCommit() {
return typeCase_ == 4;
}
/**
* .orderer.SeekNextCommit next_commit = 4 [json_name = "nextCommit"];
* @return The nextCommit.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.SeekNextCommit getNextCommit() {
if (typeCase_ == 4) {
return (org.hyperledger.fabric.protos.orderer.SeekNextCommit) type_;
}
return org.hyperledger.fabric.protos.orderer.SeekNextCommit.getDefaultInstance();
}
/**
* .orderer.SeekNextCommit next_commit = 4 [json_name = "nextCommit"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.SeekNextCommitOrBuilder getNextCommitOrBuilder() {
if (typeCase_ == 4) {
return (org.hyperledger.fabric.protos.orderer.SeekNextCommit) type_;
}
return org.hyperledger.fabric.protos.orderer.SeekNextCommit.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.SeekNewest) type_);
}
if (typeCase_ == 2) {
output.writeMessage(2, (org.hyperledger.fabric.protos.orderer.SeekOldest) type_);
}
if (typeCase_ == 3) {
output.writeMessage(3, (org.hyperledger.fabric.protos.orderer.SeekSpecified) type_);
}
if (typeCase_ == 4) {
output.writeMessage(4, (org.hyperledger.fabric.protos.orderer.SeekNextCommit) 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.SeekNewest) type_);
}
if (typeCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (org.hyperledger.fabric.protos.orderer.SeekOldest) type_);
}
if (typeCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (org.hyperledger.fabric.protos.orderer.SeekSpecified) type_);
}
if (typeCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (org.hyperledger.fabric.protos.orderer.SeekNextCommit) 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.SeekPosition)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.orderer.SeekPosition other = (org.hyperledger.fabric.protos.orderer.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 4:
if (!getNextCommit()
.equals(other.getNextCommit())) 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 4:
hash = (37 * hash) + NEXT_COMMIT_FIELD_NUMBER;
hash = (53 * hash) + getNextCommit().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.orderer.SeekPosition parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.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.SeekPosition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.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.SeekPosition parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.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.SeekPosition parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.SeekPosition parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.SeekPosition parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.SeekPosition parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.SeekPosition parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.SeekPosition parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.orderer.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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code orderer.SeekPosition}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:orderer.SeekPosition)
org.hyperledger.fabric.protos.orderer.SeekPositionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.AbProto.internal_static_orderer_SeekPosition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.AbProto.internal_static_orderer_SeekPosition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.SeekPosition.class, org.hyperledger.fabric.protos.orderer.SeekPosition.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.orderer.SeekPosition.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (newestBuilder_ != null) {
newestBuilder_.clear();
}
if (oldestBuilder_ != null) {
oldestBuilder_.clear();
}
if (specifiedBuilder_ != null) {
specifiedBuilder_.clear();
}
if (nextCommitBuilder_ != null) {
nextCommitBuilder_.clear();
}
typeCase_ = 0;
type_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.orderer.AbProto.internal_static_orderer_SeekPosition_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.SeekPosition getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.orderer.SeekPosition.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.SeekPosition build() {
org.hyperledger.fabric.protos.orderer.SeekPosition result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.SeekPosition buildPartial() {
org.hyperledger.fabric.protos.orderer.SeekPosition result = new org.hyperledger.fabric.protos.orderer.SeekPosition(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(org.hyperledger.fabric.protos.orderer.SeekPosition result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(org.hyperledger.fabric.protos.orderer.SeekPosition result) {
result.typeCase_ = typeCase_;
result.type_ = this.type_;
if (typeCase_ == 1 &&
newestBuilder_ != null) {
result.type_ = newestBuilder_.build();
}
if (typeCase_ == 2 &&
oldestBuilder_ != null) {
result.type_ = oldestBuilder_.build();
}
if (typeCase_ == 3 &&
specifiedBuilder_ != null) {
result.type_ = specifiedBuilder_.build();
}
if (typeCase_ == 4 &&
nextCommitBuilder_ != null) {
result.type_ = nextCommitBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.orderer.SeekPosition) {
return mergeFrom((org.hyperledger.fabric.protos.orderer.SeekPosition)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.SeekPosition other) {
if (other == org.hyperledger.fabric.protos.orderer.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 NEXT_COMMIT: {
mergeNextCommit(other.getNextCommit());
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
case 34: {
input.readMessage(
getNextCommitFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 4;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int 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 int bitField0_;
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.orderer.SeekNewest, org.hyperledger.fabric.protos.orderer.SeekNewest.Builder, org.hyperledger.fabric.protos.orderer.SeekNewestOrBuilder> newestBuilder_;
/**
* .orderer.SeekNewest newest = 1 [json_name = "newest"];
* @return Whether the newest field is set.
*/
@java.lang.Override
public boolean hasNewest() {
return typeCase_ == 1;
}
/**
* .orderer.SeekNewest newest = 1 [json_name = "newest"];
* @return The newest.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.SeekNewest getNewest() {
if (newestBuilder_ == null) {
if (typeCase_ == 1) {
return (org.hyperledger.fabric.protos.orderer.SeekNewest) type_;
}
return org.hyperledger.fabric.protos.orderer.SeekNewest.getDefaultInstance();
} else {
if (typeCase_ == 1) {
return newestBuilder_.getMessage();
}
return org.hyperledger.fabric.protos.orderer.SeekNewest.getDefaultInstance();
}
}
/**
* .orderer.SeekNewest newest = 1 [json_name = "newest"];
*/
public Builder setNewest(org.hyperledger.fabric.protos.orderer.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 [json_name = "newest"];
*/
public Builder setNewest(
org.hyperledger.fabric.protos.orderer.SeekNewest.Builder builderForValue) {
if (newestBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
newestBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 1;
return this;
}
/**
* .orderer.SeekNewest newest = 1 [json_name = "newest"];
*/
public Builder mergeNewest(org.hyperledger.fabric.protos.orderer.SeekNewest value) {
if (newestBuilder_ == null) {
if (typeCase_ == 1 &&
type_ != org.hyperledger.fabric.protos.orderer.SeekNewest.getDefaultInstance()) {
type_ = org.hyperledger.fabric.protos.orderer.SeekNewest.newBuilder((org.hyperledger.fabric.protos.orderer.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 [json_name = "newest"];
*/
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 [json_name = "newest"];
*/
public org.hyperledger.fabric.protos.orderer.SeekNewest.Builder getNewestBuilder() {
return getNewestFieldBuilder().getBuilder();
}
/**
* .orderer.SeekNewest newest = 1 [json_name = "newest"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.SeekNewestOrBuilder getNewestOrBuilder() {
if ((typeCase_ == 1) && (newestBuilder_ != null)) {
return newestBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 1) {
return (org.hyperledger.fabric.protos.orderer.SeekNewest) type_;
}
return org.hyperledger.fabric.protos.orderer.SeekNewest.getDefaultInstance();
}
}
/**
* .orderer.SeekNewest newest = 1 [json_name = "newest"];
*/
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.orderer.SeekNewest, org.hyperledger.fabric.protos.orderer.SeekNewest.Builder, org.hyperledger.fabric.protos.orderer.SeekNewestOrBuilder>
getNewestFieldBuilder() {
if (newestBuilder_ == null) {
if (!(typeCase_ == 1)) {
type_ = org.hyperledger.fabric.protos.orderer.SeekNewest.getDefaultInstance();
}
newestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.orderer.SeekNewest, org.hyperledger.fabric.protos.orderer.SeekNewest.Builder, org.hyperledger.fabric.protos.orderer.SeekNewestOrBuilder>(
(org.hyperledger.fabric.protos.orderer.SeekNewest) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 1;
onChanged();
return newestBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.orderer.SeekOldest, org.hyperledger.fabric.protos.orderer.SeekOldest.Builder, org.hyperledger.fabric.protos.orderer.SeekOldestOrBuilder> oldestBuilder_;
/**
* .orderer.SeekOldest oldest = 2 [json_name = "oldest"];
* @return Whether the oldest field is set.
*/
@java.lang.Override
public boolean hasOldest() {
return typeCase_ == 2;
}
/**
* .orderer.SeekOldest oldest = 2 [json_name = "oldest"];
* @return The oldest.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.SeekOldest getOldest() {
if (oldestBuilder_ == null) {
if (typeCase_ == 2) {
return (org.hyperledger.fabric.protos.orderer.SeekOldest) type_;
}
return org.hyperledger.fabric.protos.orderer.SeekOldest.getDefaultInstance();
} else {
if (typeCase_ == 2) {
return oldestBuilder_.getMessage();
}
return org.hyperledger.fabric.protos.orderer.SeekOldest.getDefaultInstance();
}
}
/**
* .orderer.SeekOldest oldest = 2 [json_name = "oldest"];
*/
public Builder setOldest(org.hyperledger.fabric.protos.orderer.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 [json_name = "oldest"];
*/
public Builder setOldest(
org.hyperledger.fabric.protos.orderer.SeekOldest.Builder builderForValue) {
if (oldestBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
oldestBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 2;
return this;
}
/**
* .orderer.SeekOldest oldest = 2 [json_name = "oldest"];
*/
public Builder mergeOldest(org.hyperledger.fabric.protos.orderer.SeekOldest value) {
if (oldestBuilder_ == null) {
if (typeCase_ == 2 &&
type_ != org.hyperledger.fabric.protos.orderer.SeekOldest.getDefaultInstance()) {
type_ = org.hyperledger.fabric.protos.orderer.SeekOldest.newBuilder((org.hyperledger.fabric.protos.orderer.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 [json_name = "oldest"];
*/
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 [json_name = "oldest"];
*/
public org.hyperledger.fabric.protos.orderer.SeekOldest.Builder getOldestBuilder() {
return getOldestFieldBuilder().getBuilder();
}
/**
* .orderer.SeekOldest oldest = 2 [json_name = "oldest"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.SeekOldestOrBuilder getOldestOrBuilder() {
if ((typeCase_ == 2) && (oldestBuilder_ != null)) {
return oldestBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 2) {
return (org.hyperledger.fabric.protos.orderer.SeekOldest) type_;
}
return org.hyperledger.fabric.protos.orderer.SeekOldest.getDefaultInstance();
}
}
/**
* .orderer.SeekOldest oldest = 2 [json_name = "oldest"];
*/
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.orderer.SeekOldest, org.hyperledger.fabric.protos.orderer.SeekOldest.Builder, org.hyperledger.fabric.protos.orderer.SeekOldestOrBuilder>
getOldestFieldBuilder() {
if (oldestBuilder_ == null) {
if (!(typeCase_ == 2)) {
type_ = org.hyperledger.fabric.protos.orderer.SeekOldest.getDefaultInstance();
}
oldestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.orderer.SeekOldest, org.hyperledger.fabric.protos.orderer.SeekOldest.Builder, org.hyperledger.fabric.protos.orderer.SeekOldestOrBuilder>(
(org.hyperledger.fabric.protos.orderer.SeekOldest) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 2;
onChanged();
return oldestBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.orderer.SeekSpecified, org.hyperledger.fabric.protos.orderer.SeekSpecified.Builder, org.hyperledger.fabric.protos.orderer.SeekSpecifiedOrBuilder> specifiedBuilder_;
/**
* .orderer.SeekSpecified specified = 3 [json_name = "specified"];
* @return Whether the specified field is set.
*/
@java.lang.Override
public boolean hasSpecified() {
return typeCase_ == 3;
}
/**
* .orderer.SeekSpecified specified = 3 [json_name = "specified"];
* @return The specified.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.SeekSpecified getSpecified() {
if (specifiedBuilder_ == null) {
if (typeCase_ == 3) {
return (org.hyperledger.fabric.protos.orderer.SeekSpecified) type_;
}
return org.hyperledger.fabric.protos.orderer.SeekSpecified.getDefaultInstance();
} else {
if (typeCase_ == 3) {
return specifiedBuilder_.getMessage();
}
return org.hyperledger.fabric.protos.orderer.SeekSpecified.getDefaultInstance();
}
}
/**
* .orderer.SeekSpecified specified = 3 [json_name = "specified"];
*/
public Builder setSpecified(org.hyperledger.fabric.protos.orderer.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 [json_name = "specified"];
*/
public Builder setSpecified(
org.hyperledger.fabric.protos.orderer.SeekSpecified.Builder builderForValue) {
if (specifiedBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
specifiedBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 3;
return this;
}
/**
* .orderer.SeekSpecified specified = 3 [json_name = "specified"];
*/
public Builder mergeSpecified(org.hyperledger.fabric.protos.orderer.SeekSpecified value) {
if (specifiedBuilder_ == null) {
if (typeCase_ == 3 &&
type_ != org.hyperledger.fabric.protos.orderer.SeekSpecified.getDefaultInstance()) {
type_ = org.hyperledger.fabric.protos.orderer.SeekSpecified.newBuilder((org.hyperledger.fabric.protos.orderer.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 [json_name = "specified"];
*/
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 [json_name = "specified"];
*/
public org.hyperledger.fabric.protos.orderer.SeekSpecified.Builder getSpecifiedBuilder() {
return getSpecifiedFieldBuilder().getBuilder();
}
/**
* .orderer.SeekSpecified specified = 3 [json_name = "specified"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.SeekSpecifiedOrBuilder getSpecifiedOrBuilder() {
if ((typeCase_ == 3) && (specifiedBuilder_ != null)) {
return specifiedBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 3) {
return (org.hyperledger.fabric.protos.orderer.SeekSpecified) type_;
}
return org.hyperledger.fabric.protos.orderer.SeekSpecified.getDefaultInstance();
}
}
/**
* .orderer.SeekSpecified specified = 3 [json_name = "specified"];
*/
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.orderer.SeekSpecified, org.hyperledger.fabric.protos.orderer.SeekSpecified.Builder, org.hyperledger.fabric.protos.orderer.SeekSpecifiedOrBuilder>
getSpecifiedFieldBuilder() {
if (specifiedBuilder_ == null) {
if (!(typeCase_ == 3)) {
type_ = org.hyperledger.fabric.protos.orderer.SeekSpecified.getDefaultInstance();
}
specifiedBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.orderer.SeekSpecified, org.hyperledger.fabric.protos.orderer.SeekSpecified.Builder, org.hyperledger.fabric.protos.orderer.SeekSpecifiedOrBuilder>(
(org.hyperledger.fabric.protos.orderer.SeekSpecified) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 3;
onChanged();
return specifiedBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.orderer.SeekNextCommit, org.hyperledger.fabric.protos.orderer.SeekNextCommit.Builder, org.hyperledger.fabric.protos.orderer.SeekNextCommitOrBuilder> nextCommitBuilder_;
/**
* .orderer.SeekNextCommit next_commit = 4 [json_name = "nextCommit"];
* @return Whether the nextCommit field is set.
*/
@java.lang.Override
public boolean hasNextCommit() {
return typeCase_ == 4;
}
/**
* .orderer.SeekNextCommit next_commit = 4 [json_name = "nextCommit"];
* @return The nextCommit.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.SeekNextCommit getNextCommit() {
if (nextCommitBuilder_ == null) {
if (typeCase_ == 4) {
return (org.hyperledger.fabric.protos.orderer.SeekNextCommit) type_;
}
return org.hyperledger.fabric.protos.orderer.SeekNextCommit.getDefaultInstance();
} else {
if (typeCase_ == 4) {
return nextCommitBuilder_.getMessage();
}
return org.hyperledger.fabric.protos.orderer.SeekNextCommit.getDefaultInstance();
}
}
/**
* .orderer.SeekNextCommit next_commit = 4 [json_name = "nextCommit"];
*/
public Builder setNextCommit(org.hyperledger.fabric.protos.orderer.SeekNextCommit value) {
if (nextCommitBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
nextCommitBuilder_.setMessage(value);
}
typeCase_ = 4;
return this;
}
/**
* .orderer.SeekNextCommit next_commit = 4 [json_name = "nextCommit"];
*/
public Builder setNextCommit(
org.hyperledger.fabric.protos.orderer.SeekNextCommit.Builder builderForValue) {
if (nextCommitBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
nextCommitBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 4;
return this;
}
/**
* .orderer.SeekNextCommit next_commit = 4 [json_name = "nextCommit"];
*/
public Builder mergeNextCommit(org.hyperledger.fabric.protos.orderer.SeekNextCommit value) {
if (nextCommitBuilder_ == null) {
if (typeCase_ == 4 &&
type_ != org.hyperledger.fabric.protos.orderer.SeekNextCommit.getDefaultInstance()) {
type_ = org.hyperledger.fabric.protos.orderer.SeekNextCommit.newBuilder((org.hyperledger.fabric.protos.orderer.SeekNextCommit) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 4) {
nextCommitBuilder_.mergeFrom(value);
} else {
nextCommitBuilder_.setMessage(value);
}
}
typeCase_ = 4;
return this;
}
/**
* .orderer.SeekNextCommit next_commit = 4 [json_name = "nextCommit"];
*/
public Builder clearNextCommit() {
if (nextCommitBuilder_ == null) {
if (typeCase_ == 4) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 4) {
typeCase_ = 0;
type_ = null;
}
nextCommitBuilder_.clear();
}
return this;
}
/**
* .orderer.SeekNextCommit next_commit = 4 [json_name = "nextCommit"];
*/
public org.hyperledger.fabric.protos.orderer.SeekNextCommit.Builder getNextCommitBuilder() {
return getNextCommitFieldBuilder().getBuilder();
}
/**
* .orderer.SeekNextCommit next_commit = 4 [json_name = "nextCommit"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.SeekNextCommitOrBuilder getNextCommitOrBuilder() {
if ((typeCase_ == 4) && (nextCommitBuilder_ != null)) {
return nextCommitBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 4) {
return (org.hyperledger.fabric.protos.orderer.SeekNextCommit) type_;
}
return org.hyperledger.fabric.protos.orderer.SeekNextCommit.getDefaultInstance();
}
}
/**
* .orderer.SeekNextCommit next_commit = 4 [json_name = "nextCommit"];
*/
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.orderer.SeekNextCommit, org.hyperledger.fabric.protos.orderer.SeekNextCommit.Builder, org.hyperledger.fabric.protos.orderer.SeekNextCommitOrBuilder>
getNextCommitFieldBuilder() {
if (nextCommitBuilder_ == null) {
if (!(typeCase_ == 4)) {
type_ = org.hyperledger.fabric.protos.orderer.SeekNextCommit.getDefaultInstance();
}
nextCommitBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.orderer.SeekNextCommit, org.hyperledger.fabric.protos.orderer.SeekNextCommit.Builder, org.hyperledger.fabric.protos.orderer.SeekNextCommitOrBuilder>(
(org.hyperledger.fabric.protos.orderer.SeekNextCommit) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 4;
onChanged();
return nextCommitBuilder_;
}
// @@protoc_insertion_point(builder_scope:orderer.SeekPosition)
}
// @@protoc_insertion_point(class_scope:orderer.SeekPosition)
private static final org.hyperledger.fabric.protos.orderer.SeekPosition DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.SeekPosition();
}
public static org.hyperledger.fabric.protos.orderer.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.SeekPosition getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy