Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
cosmos.base.store.v1beta1.CommitInfoOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cosmos/base/store/v1beta1/commit_info.proto
package cosmos.base.store.v1beta1;
public final class CommitInfoOuterClass {
private CommitInfoOuterClass() {}
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 CommitInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.base.store.v1beta1.CommitInfo)
com.google.protobuf.MessageOrBuilder {
/**
* int64 version = 1;
*/
long getVersion();
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
java.util.List
getStoreInfosList();
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo getStoreInfos(int index);
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
int getStoreInfosCount();
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
java.util.List extends cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfoOrBuilder>
getStoreInfosOrBuilderList();
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfoOrBuilder getStoreInfosOrBuilder(
int index);
}
/**
*
* CommitInfo defines commit information used by the multi-store when committing
* a version/height.
*
*
* Protobuf type {@code cosmos.base.store.v1beta1.CommitInfo}
*/
public static final class CommitInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.base.store.v1beta1.CommitInfo)
CommitInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use CommitInfo.newBuilder() to construct.
private CommitInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CommitInfo() {
version_ = 0L;
storeInfos_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CommitInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
version_ = input.readInt64();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
storeInfos_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
storeInfos_.add(
input.readMessage(cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
storeInfos_ = java.util.Collections.unmodifiableList(storeInfos_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_CommitInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_CommitInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo.class, cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo.Builder.class);
}
private int bitField0_;
public static final int VERSION_FIELD_NUMBER = 1;
private long version_;
/**
* int64 version = 1;
*/
public long getVersion() {
return version_;
}
public static final int STORE_INFOS_FIELD_NUMBER = 2;
private java.util.List storeInfos_;
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
public java.util.List getStoreInfosList() {
return storeInfos_;
}
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
public java.util.List extends cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfoOrBuilder>
getStoreInfosOrBuilderList() {
return storeInfos_;
}
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
public int getStoreInfosCount() {
return storeInfos_.size();
}
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
public cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo getStoreInfos(int index) {
return storeInfos_.get(index);
}
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
public cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfoOrBuilder getStoreInfosOrBuilder(
int index) {
return storeInfos_.get(index);
}
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 (version_ != 0L) {
output.writeInt64(1, version_);
}
for (int i = 0; i < storeInfos_.size(); i++) {
output.writeMessage(2, storeInfos_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (version_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, version_);
}
for (int i = 0; i < storeInfos_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, storeInfos_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo)) {
return super.equals(obj);
}
cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo other = (cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo) obj;
boolean result = true;
result = result && (getVersion()
== other.getVersion());
result = result && getStoreInfosList()
.equals(other.getStoreInfosList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getVersion());
if (getStoreInfosCount() > 0) {
hash = (37 * hash) + STORE_INFOS_FIELD_NUMBER;
hash = (53 * hash) + getStoreInfosList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo 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 cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo 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 cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo 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(cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo 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;
}
/**
*
* CommitInfo defines commit information used by the multi-store when committing
* a version/height.
*
*
* Protobuf type {@code cosmos.base.store.v1beta1.CommitInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.base.store.v1beta1.CommitInfo)
cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_CommitInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_CommitInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo.class, cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo.Builder.class);
}
// Construct using cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStoreInfosFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
version_ = 0L;
if (storeInfosBuilder_ == null) {
storeInfos_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
storeInfosBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_CommitInfo_descriptor;
}
@java.lang.Override
public cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo getDefaultInstanceForType() {
return cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo.getDefaultInstance();
}
@java.lang.Override
public cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo build() {
cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo buildPartial() {
cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo result = new cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.version_ = version_;
if (storeInfosBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
storeInfos_ = java.util.Collections.unmodifiableList(storeInfos_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.storeInfos_ = storeInfos_;
} else {
result.storeInfos_ = storeInfosBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo) {
return mergeFrom((cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo other) {
if (other == cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo.getDefaultInstance()) return this;
if (other.getVersion() != 0L) {
setVersion(other.getVersion());
}
if (storeInfosBuilder_ == null) {
if (!other.storeInfos_.isEmpty()) {
if (storeInfos_.isEmpty()) {
storeInfos_ = other.storeInfos_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureStoreInfosIsMutable();
storeInfos_.addAll(other.storeInfos_);
}
onChanged();
}
} else {
if (!other.storeInfos_.isEmpty()) {
if (storeInfosBuilder_.isEmpty()) {
storeInfosBuilder_.dispose();
storeInfosBuilder_ = null;
storeInfos_ = other.storeInfos_;
bitField0_ = (bitField0_ & ~0x00000002);
storeInfosBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getStoreInfosFieldBuilder() : null;
} else {
storeInfosBuilder_.addAllMessages(other.storeInfos_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
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 {
cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long version_ ;
/**
* int64 version = 1;
*/
public long getVersion() {
return version_;
}
/**
* int64 version = 1;
*/
public Builder setVersion(long value) {
version_ = value;
onChanged();
return this;
}
/**
* int64 version = 1;
*/
public Builder clearVersion() {
version_ = 0L;
onChanged();
return this;
}
private java.util.List storeInfos_ =
java.util.Collections.emptyList();
private void ensureStoreInfosIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
storeInfos_ = new java.util.ArrayList(storeInfos_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo, cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo.Builder, cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfoOrBuilder> storeInfosBuilder_;
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
public java.util.List getStoreInfosList() {
if (storeInfosBuilder_ == null) {
return java.util.Collections.unmodifiableList(storeInfos_);
} else {
return storeInfosBuilder_.getMessageList();
}
}
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
public int getStoreInfosCount() {
if (storeInfosBuilder_ == null) {
return storeInfos_.size();
} else {
return storeInfosBuilder_.getCount();
}
}
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
public cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo getStoreInfos(int index) {
if (storeInfosBuilder_ == null) {
return storeInfos_.get(index);
} else {
return storeInfosBuilder_.getMessage(index);
}
}
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
public Builder setStoreInfos(
int index, cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo value) {
if (storeInfosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStoreInfosIsMutable();
storeInfos_.set(index, value);
onChanged();
} else {
storeInfosBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
public Builder setStoreInfos(
int index, cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo.Builder builderForValue) {
if (storeInfosBuilder_ == null) {
ensureStoreInfosIsMutable();
storeInfos_.set(index, builderForValue.build());
onChanged();
} else {
storeInfosBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
public Builder addStoreInfos(cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo value) {
if (storeInfosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStoreInfosIsMutable();
storeInfos_.add(value);
onChanged();
} else {
storeInfosBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
public Builder addStoreInfos(
int index, cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo value) {
if (storeInfosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStoreInfosIsMutable();
storeInfos_.add(index, value);
onChanged();
} else {
storeInfosBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
public Builder addStoreInfos(
cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo.Builder builderForValue) {
if (storeInfosBuilder_ == null) {
ensureStoreInfosIsMutable();
storeInfos_.add(builderForValue.build());
onChanged();
} else {
storeInfosBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
public Builder addStoreInfos(
int index, cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo.Builder builderForValue) {
if (storeInfosBuilder_ == null) {
ensureStoreInfosIsMutable();
storeInfos_.add(index, builderForValue.build());
onChanged();
} else {
storeInfosBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
public Builder addAllStoreInfos(
java.lang.Iterable extends cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo> values) {
if (storeInfosBuilder_ == null) {
ensureStoreInfosIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, storeInfos_);
onChanged();
} else {
storeInfosBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
public Builder clearStoreInfos() {
if (storeInfosBuilder_ == null) {
storeInfos_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
storeInfosBuilder_.clear();
}
return this;
}
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
public Builder removeStoreInfos(int index) {
if (storeInfosBuilder_ == null) {
ensureStoreInfosIsMutable();
storeInfos_.remove(index);
onChanged();
} else {
storeInfosBuilder_.remove(index);
}
return this;
}
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
public cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo.Builder getStoreInfosBuilder(
int index) {
return getStoreInfosFieldBuilder().getBuilder(index);
}
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
public cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfoOrBuilder getStoreInfosOrBuilder(
int index) {
if (storeInfosBuilder_ == null) {
return storeInfos_.get(index); } else {
return storeInfosBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
public java.util.List extends cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfoOrBuilder>
getStoreInfosOrBuilderList() {
if (storeInfosBuilder_ != null) {
return storeInfosBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(storeInfos_);
}
}
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
public cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo.Builder addStoreInfosBuilder() {
return getStoreInfosFieldBuilder().addBuilder(
cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo.getDefaultInstance());
}
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
public cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo.Builder addStoreInfosBuilder(
int index) {
return getStoreInfosFieldBuilder().addBuilder(
index, cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo.getDefaultInstance());
}
/**
* repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false];
*/
public java.util.List
getStoreInfosBuilderList() {
return getStoreInfosFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo, cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo.Builder, cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfoOrBuilder>
getStoreInfosFieldBuilder() {
if (storeInfosBuilder_ == null) {
storeInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo, cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo.Builder, cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfoOrBuilder>(
storeInfos_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
storeInfos_ = null;
}
return storeInfosBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.base.store.v1beta1.CommitInfo)
}
// @@protoc_insertion_point(class_scope:cosmos.base.store.v1beta1.CommitInfo)
private static final cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo();
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CommitInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CommitInfo(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StoreInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.base.store.v1beta1.StoreInfo)
com.google.protobuf.MessageOrBuilder {
/**
* string name = 1;
*/
java.lang.String getName();
/**
* string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false];
*/
boolean hasCommitId();
/**
* .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false];
*/
cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID getCommitId();
/**
* .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false];
*/
cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitIDOrBuilder getCommitIdOrBuilder();
}
/**
*
* StoreInfo defines store-specific commit information. It contains a reference
* between a store name and the commit ID.
*
*
* Protobuf type {@code cosmos.base.store.v1beta1.StoreInfo}
*/
public static final class StoreInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.base.store.v1beta1.StoreInfo)
StoreInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use StoreInfo.newBuilder() to construct.
private StoreInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StoreInfo() {
name_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StoreInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID.Builder subBuilder = null;
if (commitId_ != null) {
subBuilder = commitId_.toBuilder();
}
commitId_ = input.readMessage(cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(commitId_);
commitId_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_StoreInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_StoreInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo.class, cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
* string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMMIT_ID_FIELD_NUMBER = 2;
private cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID commitId_;
/**
* .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false];
*/
public boolean hasCommitId() {
return commitId_ != null;
}
/**
* .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false];
*/
public cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID getCommitId() {
return commitId_ == null ? cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID.getDefaultInstance() : commitId_;
}
/**
* .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false];
*/
public cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitIDOrBuilder getCommitIdOrBuilder() {
return getCommitId();
}
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 (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (commitId_ != null) {
output.writeMessage(2, getCommitId());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (commitId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getCommitId());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo)) {
return super.equals(obj);
}
cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo other = (cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo) obj;
boolean result = true;
result = result && getName()
.equals(other.getName());
result = result && (hasCommitId() == other.hasCommitId());
if (hasCommitId()) {
result = result && getCommitId()
.equals(other.getCommitId());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasCommitId()) {
hash = (37 * hash) + COMMIT_ID_FIELD_NUMBER;
hash = (53 * hash) + getCommitId().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo 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 cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo 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 cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo 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(cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo 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;
}
/**
*
* StoreInfo defines store-specific commit information. It contains a reference
* between a store name and the commit ID.
*
*
* Protobuf type {@code cosmos.base.store.v1beta1.StoreInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.base.store.v1beta1.StoreInfo)
cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_StoreInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_StoreInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo.class, cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo.Builder.class);
}
// Construct using cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
if (commitIdBuilder_ == null) {
commitId_ = null;
} else {
commitId_ = null;
commitIdBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_StoreInfo_descriptor;
}
@java.lang.Override
public cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo getDefaultInstanceForType() {
return cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo.getDefaultInstance();
}
@java.lang.Override
public cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo build() {
cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo buildPartial() {
cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo result = new cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo(this);
result.name_ = name_;
if (commitIdBuilder_ == null) {
result.commitId_ = commitId_;
} else {
result.commitId_ = commitIdBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo) {
return mergeFrom((cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo other) {
if (other == cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.hasCommitId()) {
mergeCommitId(other.getCommitId());
}
this.mergeUnknownFields(other.unknownFields);
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 {
cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 1;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID commitId_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID, cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID.Builder, cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitIDOrBuilder> commitIdBuilder_;
/**
* .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false];
*/
public boolean hasCommitId() {
return commitIdBuilder_ != null || commitId_ != null;
}
/**
* .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false];
*/
public cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID getCommitId() {
if (commitIdBuilder_ == null) {
return commitId_ == null ? cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID.getDefaultInstance() : commitId_;
} else {
return commitIdBuilder_.getMessage();
}
}
/**
* .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false];
*/
public Builder setCommitId(cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID value) {
if (commitIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
commitId_ = value;
onChanged();
} else {
commitIdBuilder_.setMessage(value);
}
return this;
}
/**
* .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false];
*/
public Builder setCommitId(
cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID.Builder builderForValue) {
if (commitIdBuilder_ == null) {
commitId_ = builderForValue.build();
onChanged();
} else {
commitIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false];
*/
public Builder mergeCommitId(cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID value) {
if (commitIdBuilder_ == null) {
if (commitId_ != null) {
commitId_ =
cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID.newBuilder(commitId_).mergeFrom(value).buildPartial();
} else {
commitId_ = value;
}
onChanged();
} else {
commitIdBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false];
*/
public Builder clearCommitId() {
if (commitIdBuilder_ == null) {
commitId_ = null;
onChanged();
} else {
commitId_ = null;
commitIdBuilder_ = null;
}
return this;
}
/**
* .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false];
*/
public cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID.Builder getCommitIdBuilder() {
onChanged();
return getCommitIdFieldBuilder().getBuilder();
}
/**
* .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false];
*/
public cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitIDOrBuilder getCommitIdOrBuilder() {
if (commitIdBuilder_ != null) {
return commitIdBuilder_.getMessageOrBuilder();
} else {
return commitId_ == null ?
cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID.getDefaultInstance() : commitId_;
}
}
/**
* .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID, cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID.Builder, cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitIDOrBuilder>
getCommitIdFieldBuilder() {
if (commitIdBuilder_ == null) {
commitIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID, cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID.Builder, cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitIDOrBuilder>(
getCommitId(),
getParentForChildren(),
isClean());
commitId_ = null;
}
return commitIdBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.base.store.v1beta1.StoreInfo)
}
// @@protoc_insertion_point(class_scope:cosmos.base.store.v1beta1.StoreInfo)
private static final cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo();
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StoreInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StoreInfo(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cosmos.base.store.v1beta1.CommitInfoOuterClass.StoreInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CommitIDOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.base.store.v1beta1.CommitID)
com.google.protobuf.MessageOrBuilder {
/**
* int64 version = 1;
*/
long getVersion();
/**
* bytes hash = 2;
*/
com.google.protobuf.ByteString getHash();
}
/**
*
* CommitID defines the committment information when a specific store is
* committed.
*
*
* Protobuf type {@code cosmos.base.store.v1beta1.CommitID}
*/
public static final class CommitID extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.base.store.v1beta1.CommitID)
CommitIDOrBuilder {
private static final long serialVersionUID = 0L;
// Use CommitID.newBuilder() to construct.
private CommitID(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CommitID() {
version_ = 0L;
hash_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CommitID(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
version_ = input.readInt64();
break;
}
case 18: {
hash_ = input.readBytes();
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_CommitID_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_CommitID_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID.class, cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID.Builder.class);
}
public static final int VERSION_FIELD_NUMBER = 1;
private long version_;
/**
* int64 version = 1;
*/
public long getVersion() {
return version_;
}
public static final int HASH_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString hash_;
/**
* bytes hash = 2;
*/
public com.google.protobuf.ByteString getHash() {
return hash_;
}
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 (version_ != 0L) {
output.writeInt64(1, version_);
}
if (!hash_.isEmpty()) {
output.writeBytes(2, hash_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (version_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, version_);
}
if (!hash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, hash_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID)) {
return super.equals(obj);
}
cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID other = (cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID) obj;
boolean result = true;
result = result && (getVersion()
== other.getVersion());
result = result && getHash()
.equals(other.getHash());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getVersion());
hash = (37 * hash) + HASH_FIELD_NUMBER;
hash = (53 * hash) + getHash().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID 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 cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID 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 cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID 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(cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID 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;
}
/**
*
* CommitID defines the committment information when a specific store is
* committed.
*
*
* Protobuf type {@code cosmos.base.store.v1beta1.CommitID}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.base.store.v1beta1.CommitID)
cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitIDOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_CommitID_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_CommitID_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID.class, cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID.Builder.class);
}
// Construct using cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
version_ = 0L;
hash_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_CommitID_descriptor;
}
@java.lang.Override
public cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID getDefaultInstanceForType() {
return cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID.getDefaultInstance();
}
@java.lang.Override
public cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID build() {
cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID buildPartial() {
cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID result = new cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID(this);
result.version_ = version_;
result.hash_ = hash_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID) {
return mergeFrom((cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID other) {
if (other == cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID.getDefaultInstance()) return this;
if (other.getVersion() != 0L) {
setVersion(other.getVersion());
}
if (other.getHash() != com.google.protobuf.ByteString.EMPTY) {
setHash(other.getHash());
}
this.mergeUnknownFields(other.unknownFields);
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 {
cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long version_ ;
/**
* int64 version = 1;
*/
public long getVersion() {
return version_;
}
/**
* int64 version = 1;
*/
public Builder setVersion(long value) {
version_ = value;
onChanged();
return this;
}
/**
* int64 version = 1;
*/
public Builder clearVersion() {
version_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes hash = 2;
*/
public com.google.protobuf.ByteString getHash() {
return hash_;
}
/**
* bytes hash = 2;
*/
public Builder setHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
hash_ = value;
onChanged();
return this;
}
/**
* bytes hash = 2;
*/
public Builder clearHash() {
hash_ = getDefaultInstance().getHash();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.base.store.v1beta1.CommitID)
}
// @@protoc_insertion_point(class_scope:cosmos.base.store.v1beta1.CommitID)
private static final cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID();
}
public static cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CommitID parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CommitID(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cosmos.base.store.v1beta1.CommitInfoOuterClass.CommitID getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_base_store_v1beta1_CommitInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_base_store_v1beta1_CommitInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_base_store_v1beta1_StoreInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_base_store_v1beta1_StoreInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_base_store_v1beta1_CommitID_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_base_store_v1beta1_CommitID_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+cosmos/base/store/v1beta1/commit_info." +
"proto\022\031cosmos.base.store.v1beta1\032\024gogopr" +
"oto/gogo.proto\"^\n\nCommitInfo\022\017\n\007version\030" +
"\001 \001(\003\022?\n\013store_infos\030\002 \003(\0132$.cosmos.base" +
".store.v1beta1.StoreInfoB\004\310\336\037\000\"W\n\tStoreI" +
"nfo\022\014\n\004name\030\001 \001(\t\022<\n\tcommit_id\030\002 \001(\0132#.c" +
"osmos.base.store.v1beta1.CommitIDB\004\310\336\037\000\"" +
"/\n\010CommitID\022\017\n\007version\030\001 \001(\003\022\014\n\004hash\030\002 \001" +
"(\014:\004\230\240\037\000B*Z(github.com/cosmos/cosmos-sdk" +
"/store/typesb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.GoGoProtos.getDescriptor(),
}, assigner);
internal_static_cosmos_base_store_v1beta1_CommitInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_cosmos_base_store_v1beta1_CommitInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_base_store_v1beta1_CommitInfo_descriptor,
new java.lang.String[] { "Version", "StoreInfos", });
internal_static_cosmos_base_store_v1beta1_StoreInfo_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_cosmos_base_store_v1beta1_StoreInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_base_store_v1beta1_StoreInfo_descriptor,
new java.lang.String[] { "Name", "CommitId", });
internal_static_cosmos_base_store_v1beta1_CommitID_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_cosmos_base_store_v1beta1_CommitID_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_base_store_v1beta1_CommitID_descriptor,
new java.lang.String[] { "Version", "Hash", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.goprotoStringer);
registry.add(com.google.protobuf.GoGoProtos.nullable);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.GoGoProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}