org.hyperledger.fabric.protos.ledger.queryresult.KeyModification Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: ledger/queryresult/kv_query_result.proto
// Protobuf Java Version: 4.28.2
package org.hyperledger.fabric.protos.ledger.queryresult;
/**
*
* KeyModification -- QueryResult for history query. Holds a transaction ID, value,
* timestamp, and delete marker which resulted from a history query.
*
*
* Protobuf type {@code queryresult.KeyModification}
*/
public final class KeyModification extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:queryresult.KeyModification)
KeyModificationOrBuilder {
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= */ "",
KeyModification.class.getName());
}
// Use KeyModification.newBuilder() to construct.
private KeyModification(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private KeyModification() {
txId_ = "";
value_ = com.google.protobuf.ByteString.EMPTY;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.ledger.queryresult.KVQueryResultProto.internal_static_queryresult_KeyModification_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.ledger.queryresult.KVQueryResultProto.internal_static_queryresult_KeyModification_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.ledger.queryresult.KeyModification.class, org.hyperledger.fabric.protos.ledger.queryresult.KeyModification.Builder.class);
}
private int bitField0_;
public static final int TX_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object txId_ = "";
/**
* string tx_id = 1 [json_name = "txId"];
* @return The txId.
*/
@java.lang.Override
public java.lang.String getTxId() {
java.lang.Object ref = txId_;
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();
txId_ = s;
return s;
}
}
/**
* string tx_id = 1 [json_name = "txId"];
* @return The bytes for txId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTxIdBytes() {
java.lang.Object ref = txId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
txId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes value = 2 [json_name = "value"];
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
public static final int TIMESTAMP_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp timestamp_;
/**
* .google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
* @return The timestamp.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getTimestamp() {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
/**
* .google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
public static final int IS_DELETE_FIELD_NUMBER = 4;
private boolean isDelete_ = false;
/**
* bool is_delete = 4 [json_name = "isDelete"];
* @return The isDelete.
*/
@java.lang.Override
public boolean getIsDelete() {
return isDelete_;
}
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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(txId_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, txId_);
}
if (!value_.isEmpty()) {
output.writeBytes(2, value_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getTimestamp());
}
if (isDelete_ != false) {
output.writeBool(4, isDelete_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(txId_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, txId_);
}
if (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, value_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTimestamp());
}
if (isDelete_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, isDelete_);
}
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.ledger.queryresult.KeyModification)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.ledger.queryresult.KeyModification other = (org.hyperledger.fabric.protos.ledger.queryresult.KeyModification) obj;
if (!getTxId()
.equals(other.getTxId())) return false;
if (!getValue()
.equals(other.getValue())) return false;
if (hasTimestamp() != other.hasTimestamp()) return false;
if (hasTimestamp()) {
if (!getTimestamp()
.equals(other.getTimestamp())) return false;
}
if (getIsDelete()
!= other.getIsDelete()) 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) + TX_ID_FIELD_NUMBER;
hash = (53 * hash) + getTxId().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
if (hasTimestamp()) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimestamp().hashCode();
}
hash = (37 * hash) + IS_DELETE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsDelete());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.ledger.queryresult.KeyModification parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.ledger.queryresult.KeyModification 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.ledger.queryresult.KeyModification parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.ledger.queryresult.KeyModification 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.ledger.queryresult.KeyModification parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.ledger.queryresult.KeyModification parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.ledger.queryresult.KeyModification parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.ledger.queryresult.KeyModification 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.ledger.queryresult.KeyModification parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.ledger.queryresult.KeyModification 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.ledger.queryresult.KeyModification parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.ledger.queryresult.KeyModification 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.ledger.queryresult.KeyModification 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;
}
/**
*
* KeyModification -- QueryResult for history query. Holds a transaction ID, value,
* timestamp, and delete marker which resulted from a history query.
*
*
* Protobuf type {@code queryresult.KeyModification}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:queryresult.KeyModification)
org.hyperledger.fabric.protos.ledger.queryresult.KeyModificationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.ledger.queryresult.KVQueryResultProto.internal_static_queryresult_KeyModification_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.ledger.queryresult.KVQueryResultProto.internal_static_queryresult_KeyModification_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.ledger.queryresult.KeyModification.class, org.hyperledger.fabric.protos.ledger.queryresult.KeyModification.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.ledger.queryresult.KeyModification.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getTimestampFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
txId_ = "";
value_ = com.google.protobuf.ByteString.EMPTY;
timestamp_ = null;
if (timestampBuilder_ != null) {
timestampBuilder_.dispose();
timestampBuilder_ = null;
}
isDelete_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.ledger.queryresult.KVQueryResultProto.internal_static_queryresult_KeyModification_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.ledger.queryresult.KeyModification getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.ledger.queryresult.KeyModification.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.ledger.queryresult.KeyModification build() {
org.hyperledger.fabric.protos.ledger.queryresult.KeyModification result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.ledger.queryresult.KeyModification buildPartial() {
org.hyperledger.fabric.protos.ledger.queryresult.KeyModification result = new org.hyperledger.fabric.protos.ledger.queryresult.KeyModification(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.hyperledger.fabric.protos.ledger.queryresult.KeyModification result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.txId_ = txId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.value_ = value_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.timestamp_ = timestampBuilder_ == null
? timestamp_
: timestampBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.isDelete_ = isDelete_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.ledger.queryresult.KeyModification) {
return mergeFrom((org.hyperledger.fabric.protos.ledger.queryresult.KeyModification)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.ledger.queryresult.KeyModification other) {
if (other == org.hyperledger.fabric.protos.ledger.queryresult.KeyModification.getDefaultInstance()) return this;
if (!other.getTxId().isEmpty()) {
txId_ = other.txId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
setValue(other.getValue());
}
if (other.hasTimestamp()) {
mergeTimestamp(other.getTimestamp());
}
if (other.getIsDelete() != false) {
setIsDelete(other.getIsDelete());
}
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: {
txId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
value_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getTimestampFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
isDelete_ = input.readBool();
bitField0_ |= 0x00000008;
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 int bitField0_;
private java.lang.Object txId_ = "";
/**
* string tx_id = 1 [json_name = "txId"];
* @return The txId.
*/
public java.lang.String getTxId() {
java.lang.Object ref = txId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
txId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string tx_id = 1 [json_name = "txId"];
* @return The bytes for txId.
*/
public com.google.protobuf.ByteString
getTxIdBytes() {
java.lang.Object ref = txId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
txId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string tx_id = 1 [json_name = "txId"];
* @param value The txId to set.
* @return This builder for chaining.
*/
public Builder setTxId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
txId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string tx_id = 1 [json_name = "txId"];
* @return This builder for chaining.
*/
public Builder clearTxId() {
txId_ = getDefaultInstance().getTxId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string tx_id = 1 [json_name = "txId"];
* @param value The bytes for txId to set.
* @return This builder for chaining.
*/
public Builder setTxIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
txId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes value = 2 [json_name = "value"];
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
* bytes value = 2 [json_name = "value"];
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
value_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* bytes value = 2 [json_name = "value"];
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
private com.google.protobuf.Timestamp timestamp_;
private com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_;
/**
* .google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
* @return Whether the timestamp field is set.
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
* @return The timestamp.
*/
public com.google.protobuf.Timestamp getTimestamp() {
if (timestampBuilder_ == null) {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
} else {
return timestampBuilder_.getMessage();
}
}
/**
* .google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
*/
public Builder setTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timestamp_ = value;
} else {
timestampBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
*/
public Builder setTimestamp(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (timestampBuilder_ == null) {
timestamp_ = builderForValue.build();
} else {
timestampBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
*/
public Builder mergeTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
timestamp_ != null &&
timestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getTimestampBuilder().mergeFrom(value);
} else {
timestamp_ = value;
}
} else {
timestampBuilder_.mergeFrom(value);
}
if (timestamp_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* .google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000004);
timestamp_ = null;
if (timestampBuilder_ != null) {
timestampBuilder_.dispose();
timestampBuilder_ = null;
}
onChanged();
return this;
}
/**
* .google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
*/
public com.google.protobuf.Timestamp.Builder getTimestampBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getTimestampFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
*/
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
if (timestampBuilder_ != null) {
return timestampBuilder_.getMessageOrBuilder();
} else {
return timestamp_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
}
/**
* .google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
*/
private com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getTimestampFieldBuilder() {
if (timestampBuilder_ == null) {
timestampBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getTimestamp(),
getParentForChildren(),
isClean());
timestamp_ = null;
}
return timestampBuilder_;
}
private boolean isDelete_ ;
/**
* bool is_delete = 4 [json_name = "isDelete"];
* @return The isDelete.
*/
@java.lang.Override
public boolean getIsDelete() {
return isDelete_;
}
/**
* bool is_delete = 4 [json_name = "isDelete"];
* @param value The isDelete to set.
* @return This builder for chaining.
*/
public Builder setIsDelete(boolean value) {
isDelete_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* bool is_delete = 4 [json_name = "isDelete"];
* @return This builder for chaining.
*/
public Builder clearIsDelete() {
bitField0_ = (bitField0_ & ~0x00000008);
isDelete_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:queryresult.KeyModification)
}
// @@protoc_insertion_point(class_scope:queryresult.KeyModification)
private static final org.hyperledger.fabric.protos.ledger.queryresult.KeyModification DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.ledger.queryresult.KeyModification();
}
public static org.hyperledger.fabric.protos.ledger.queryresult.KeyModification getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public KeyModification 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.ledger.queryresult.KeyModification getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy