
cosmwasm.wasm.v1.QueryOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cosmwasm/wasm/v1/query.proto
package cosmwasm.wasm.v1;
public final class QueryOuterClass {
private QueryOuterClass() {}
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 QueryContractInfoRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1.QueryContractInfoRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* address is the address of the contract to query
*
*
* string address = 1;
* @return The address.
*/
java.lang.String getAddress();
/**
*
* address is the address of the contract to query
*
*
* string address = 1;
* @return The bytes for address.
*/
com.google.protobuf.ByteString
getAddressBytes();
}
/**
*
* QueryContractInfoRequest is the request type for the Query/ContractInfo RPC
* method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryContractInfoRequest}
*/
public static final class QueryContractInfoRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1.QueryContractInfoRequest)
QueryContractInfoRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryContractInfoRequest.newBuilder() to construct.
private QueryContractInfoRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryContractInfoRequest() {
address_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryContractInfoRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryContractInfoRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
address_ = s;
break;
}
default: {
if (!parseUnknownField(
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 cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractInfoRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractInfoRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest.class, cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private volatile java.lang.Object address_;
/**
*
* address is the address of the contract to query
*
*
* string address = 1;
* @return The address.
*/
@java.lang.Override
public java.lang.String getAddress() {
java.lang.Object ref = address_;
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();
address_ = s;
return s;
}
}
/**
*
* address is the address of the contract to query
*
*
* string address = 1;
* @return The bytes for address.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_);
}
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 cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest)) {
return super.equals(obj);
}
cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest other = (cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest 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 cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest 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 cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest 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(cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest 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;
}
/**
*
* QueryContractInfoRequest is the request type for the Query/ContractInfo RPC
* method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryContractInfoRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1.QueryContractInfoRequest)
cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractInfoRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractInfoRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest.class, cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest.Builder.class);
}
// Construct using cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest.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();
address_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractInfoRequest_descriptor;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest getDefaultInstanceForType() {
return cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest.getDefaultInstance();
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest build() {
cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest buildPartial() {
cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest result = new cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest(this);
result.address_ = address_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest) {
return mergeFrom((cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest other) {
if (other == cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest.getDefaultInstance()) return this;
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
onChanged();
}
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 {
cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object address_ = "";
/**
*
* address is the address of the contract to query
*
*
* string address = 1;
* @return The address.
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* address is the address of the contract to query
*
*
* string address = 1;
* @return The bytes for address.
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* address is the address of the contract to query
*
*
* string address = 1;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
*
* address is the address of the contract to query
*
*
* string address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
/**
*
* address is the address of the contract to query
*
*
* string address = 1;
* @param value The bytes for address to set.
* @return This builder for chaining.
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
address_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1.QueryContractInfoRequest)
}
// @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1.QueryContractInfoRequest)
private static final cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest();
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryContractInfoRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryContractInfoRequest(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 cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryContractInfoResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1.QueryContractInfoResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return The address.
*/
java.lang.String getAddress();
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return The bytes for address.
*/
com.google.protobuf.ByteString
getAddressBytes();
/**
* .cosmwasm.wasm.v1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
* @return Whether the contractInfo field is set.
*/
boolean hasContractInfo();
/**
* .cosmwasm.wasm.v1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
* @return The contractInfo.
*/
cosmwasm.wasm.v1.Types.ContractInfo getContractInfo();
/**
* .cosmwasm.wasm.v1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
*/
cosmwasm.wasm.v1.Types.ContractInfoOrBuilder getContractInfoOrBuilder();
}
/**
*
* QueryContractInfoResponse is the response type for the Query/ContractInfo RPC
* method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryContractInfoResponse}
*/
public static final class QueryContractInfoResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1.QueryContractInfoResponse)
QueryContractInfoResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryContractInfoResponse.newBuilder() to construct.
private QueryContractInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryContractInfoResponse() {
address_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryContractInfoResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryContractInfoResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
address_ = s;
break;
}
case 18: {
cosmwasm.wasm.v1.Types.ContractInfo.Builder subBuilder = null;
if (contractInfo_ != null) {
subBuilder = contractInfo_.toBuilder();
}
contractInfo_ = input.readMessage(cosmwasm.wasm.v1.Types.ContractInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(contractInfo_);
contractInfo_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
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 cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractInfoResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse.class, cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private volatile java.lang.Object address_;
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return The address.
*/
@java.lang.Override
public java.lang.String getAddress() {
java.lang.Object ref = address_;
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();
address_ = s;
return s;
}
}
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return The bytes for address.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONTRACT_INFO_FIELD_NUMBER = 2;
private cosmwasm.wasm.v1.Types.ContractInfo contractInfo_;
/**
* .cosmwasm.wasm.v1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
* @return Whether the contractInfo field is set.
*/
@java.lang.Override
public boolean hasContractInfo() {
return contractInfo_ != null;
}
/**
* .cosmwasm.wasm.v1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
* @return The contractInfo.
*/
@java.lang.Override
public cosmwasm.wasm.v1.Types.ContractInfo getContractInfo() {
return contractInfo_ == null ? cosmwasm.wasm.v1.Types.ContractInfo.getDefaultInstance() : contractInfo_;
}
/**
* .cosmwasm.wasm.v1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
*/
@java.lang.Override
public cosmwasm.wasm.v1.Types.ContractInfoOrBuilder getContractInfoOrBuilder() {
return getContractInfo();
}
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.GeneratedMessageV3.isStringEmpty(address_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_);
}
if (contractInfo_ != null) {
output.writeMessage(2, getContractInfo());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_);
}
if (contractInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getContractInfo());
}
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 cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse)) {
return super.equals(obj);
}
cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse other = (cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (hasContractInfo() != other.hasContractInfo()) return false;
if (hasContractInfo()) {
if (!getContractInfo()
.equals(other.getContractInfo())) return false;
}
if (!unknownFields.equals(other.unknownFields)) 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) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
if (hasContractInfo()) {
hash = (37 * hash) + CONTRACT_INFO_FIELD_NUMBER;
hash = (53 * hash) + getContractInfo().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse 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 cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse 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 cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse 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(cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse 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;
}
/**
*
* QueryContractInfoResponse is the response type for the Query/ContractInfo RPC
* method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryContractInfoResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1.QueryContractInfoResponse)
cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractInfoResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse.class, cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse.Builder.class);
}
// Construct using cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse.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();
address_ = "";
if (contractInfoBuilder_ == null) {
contractInfo_ = null;
} else {
contractInfo_ = null;
contractInfoBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractInfoResponse_descriptor;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse getDefaultInstanceForType() {
return cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse.getDefaultInstance();
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse build() {
cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse buildPartial() {
cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse result = new cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse(this);
result.address_ = address_;
if (contractInfoBuilder_ == null) {
result.contractInfo_ = contractInfo_;
} else {
result.contractInfo_ = contractInfoBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse) {
return mergeFrom((cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse other) {
if (other == cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse.getDefaultInstance()) return this;
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
onChanged();
}
if (other.hasContractInfo()) {
mergeContractInfo(other.getContractInfo());
}
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 {
cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object address_ = "";
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return The address.
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return The bytes for address.
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @param value The bytes for address to set.
* @return This builder for chaining.
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
address_ = value;
onChanged();
return this;
}
private cosmwasm.wasm.v1.Types.ContractInfo contractInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1.Types.ContractInfo, cosmwasm.wasm.v1.Types.ContractInfo.Builder, cosmwasm.wasm.v1.Types.ContractInfoOrBuilder> contractInfoBuilder_;
/**
* .cosmwasm.wasm.v1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
* @return Whether the contractInfo field is set.
*/
public boolean hasContractInfo() {
return contractInfoBuilder_ != null || contractInfo_ != null;
}
/**
* .cosmwasm.wasm.v1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
* @return The contractInfo.
*/
public cosmwasm.wasm.v1.Types.ContractInfo getContractInfo() {
if (contractInfoBuilder_ == null) {
return contractInfo_ == null ? cosmwasm.wasm.v1.Types.ContractInfo.getDefaultInstance() : contractInfo_;
} else {
return contractInfoBuilder_.getMessage();
}
}
/**
* .cosmwasm.wasm.v1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
*/
public Builder setContractInfo(cosmwasm.wasm.v1.Types.ContractInfo value) {
if (contractInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
contractInfo_ = value;
onChanged();
} else {
contractInfoBuilder_.setMessage(value);
}
return this;
}
/**
* .cosmwasm.wasm.v1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
*/
public Builder setContractInfo(
cosmwasm.wasm.v1.Types.ContractInfo.Builder builderForValue) {
if (contractInfoBuilder_ == null) {
contractInfo_ = builderForValue.build();
onChanged();
} else {
contractInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cosmwasm.wasm.v1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
*/
public Builder mergeContractInfo(cosmwasm.wasm.v1.Types.ContractInfo value) {
if (contractInfoBuilder_ == null) {
if (contractInfo_ != null) {
contractInfo_ =
cosmwasm.wasm.v1.Types.ContractInfo.newBuilder(contractInfo_).mergeFrom(value).buildPartial();
} else {
contractInfo_ = value;
}
onChanged();
} else {
contractInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cosmwasm.wasm.v1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
*/
public Builder clearContractInfo() {
if (contractInfoBuilder_ == null) {
contractInfo_ = null;
onChanged();
} else {
contractInfo_ = null;
contractInfoBuilder_ = null;
}
return this;
}
/**
* .cosmwasm.wasm.v1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
*/
public cosmwasm.wasm.v1.Types.ContractInfo.Builder getContractInfoBuilder() {
onChanged();
return getContractInfoFieldBuilder().getBuilder();
}
/**
* .cosmwasm.wasm.v1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
*/
public cosmwasm.wasm.v1.Types.ContractInfoOrBuilder getContractInfoOrBuilder() {
if (contractInfoBuilder_ != null) {
return contractInfoBuilder_.getMessageOrBuilder();
} else {
return contractInfo_ == null ?
cosmwasm.wasm.v1.Types.ContractInfo.getDefaultInstance() : contractInfo_;
}
}
/**
* .cosmwasm.wasm.v1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1.Types.ContractInfo, cosmwasm.wasm.v1.Types.ContractInfo.Builder, cosmwasm.wasm.v1.Types.ContractInfoOrBuilder>
getContractInfoFieldBuilder() {
if (contractInfoBuilder_ == null) {
contractInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1.Types.ContractInfo, cosmwasm.wasm.v1.Types.ContractInfo.Builder, cosmwasm.wasm.v1.Types.ContractInfoOrBuilder>(
getContractInfo(),
getParentForChildren(),
isClean());
contractInfo_ = null;
}
return contractInfoBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1.QueryContractInfoResponse)
}
// @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1.QueryContractInfoResponse)
private static final cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse();
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryContractInfoResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryContractInfoResponse(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 cosmwasm.wasm.v1.QueryOuterClass.QueryContractInfoResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryContractHistoryRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1.QueryContractHistoryRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* address is the address of the contract to query
*
*
* string address = 1;
* @return The address.
*/
java.lang.String getAddress();
/**
*
* address is the address of the contract to query
*
*
* string address = 1;
* @return The bytes for address.
*/
com.google.protobuf.ByteString
getAddressBytes();
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return Whether the pagination field is set.
*/
boolean hasPagination();
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return The pagination.
*/
cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();
}
/**
*
* QueryContractHistoryRequest is the request type for the Query/ContractHistory
* RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryContractHistoryRequest}
*/
public static final class QueryContractHistoryRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1.QueryContractHistoryRequest)
QueryContractHistoryRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryContractHistoryRequest.newBuilder() to construct.
private QueryContractHistoryRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryContractHistoryRequest() {
address_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryContractHistoryRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryContractHistoryRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
address_ = s;
break;
}
case 18: {
cosmos.base.query.v1beta1.Pagination.PageRequest.Builder subBuilder = null;
if (pagination_ != null) {
subBuilder = pagination_.toBuilder();
}
pagination_ = input.readMessage(cosmos.base.query.v1beta1.Pagination.PageRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pagination_);
pagination_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
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 cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractHistoryRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractHistoryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest.class, cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private volatile java.lang.Object address_;
/**
*
* address is the address of the contract to query
*
*
* string address = 1;
* @return The address.
*/
@java.lang.Override
public java.lang.String getAddress() {
java.lang.Object ref = address_;
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();
address_ = s;
return s;
}
}
/**
*
* address is the address of the contract to query
*
*
* string address = 1;
* @return The bytes for address.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAGINATION_FIELD_NUMBER = 2;
private cosmos.base.query.v1beta1.Pagination.PageRequest pagination_;
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return Whether the pagination field is set.
*/
@java.lang.Override
public boolean hasPagination() {
return pagination_ != null;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return The pagination.
*/
@java.lang.Override
public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {
return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
@java.lang.Override
public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {
return getPagination();
}
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.GeneratedMessageV3.isStringEmpty(address_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_);
}
if (pagination_ != null) {
output.writeMessage(2, getPagination());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_);
}
if (pagination_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPagination());
}
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 cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest)) {
return super.equals(obj);
}
cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest other = (cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (hasPagination() != other.hasPagination()) return false;
if (hasPagination()) {
if (!getPagination()
.equals(other.getPagination())) return false;
}
if (!unknownFields.equals(other.unknownFields)) 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) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
if (hasPagination()) {
hash = (37 * hash) + PAGINATION_FIELD_NUMBER;
hash = (53 * hash) + getPagination().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest 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 cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest 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 cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest 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(cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest 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;
}
/**
*
* QueryContractHistoryRequest is the request type for the Query/ContractHistory
* RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryContractHistoryRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1.QueryContractHistoryRequest)
cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractHistoryRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractHistoryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest.class, cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest.Builder.class);
}
// Construct using cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest.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();
address_ = "";
if (paginationBuilder_ == null) {
pagination_ = null;
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractHistoryRequest_descriptor;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest getDefaultInstanceForType() {
return cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest.getDefaultInstance();
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest build() {
cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest buildPartial() {
cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest result = new cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest(this);
result.address_ = address_;
if (paginationBuilder_ == null) {
result.pagination_ = pagination_;
} else {
result.pagination_ = paginationBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest) {
return mergeFrom((cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest other) {
if (other == cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest.getDefaultInstance()) return this;
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
onChanged();
}
if (other.hasPagination()) {
mergePagination(other.getPagination());
}
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 {
cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object address_ = "";
/**
*
* address is the address of the contract to query
*
*
* string address = 1;
* @return The address.
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* address is the address of the contract to query
*
*
* string address = 1;
* @return The bytes for address.
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* address is the address of the contract to query
*
*
* string address = 1;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
*
* address is the address of the contract to query
*
*
* string address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
/**
*
* address is the address of the contract to query
*
*
* string address = 1;
* @param value The bytes for address to set.
* @return This builder for chaining.
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
address_ = value;
onChanged();
return this;
}
private cosmos.base.query.v1beta1.Pagination.PageRequest pagination_;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> paginationBuilder_;
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return Whether the pagination field is set.
*/
public boolean hasPagination() {
return paginationBuilder_ != null || pagination_ != null;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return The pagination.
*/
public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {
if (paginationBuilder_ == null) {
return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;
} else {
return paginationBuilder_.getMessage();
}
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {
if (paginationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pagination_ = value;
onChanged();
} else {
paginationBuilder_.setMessage(value);
}
return this;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public Builder setPagination(
cosmos.base.query.v1beta1.Pagination.PageRequest.Builder builderForValue) {
if (paginationBuilder_ == null) {
pagination_ = builderForValue.build();
onChanged();
} else {
paginationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public Builder mergePagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {
if (paginationBuilder_ == null) {
if (pagination_ != null) {
pagination_ =
cosmos.base.query.v1beta1.Pagination.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial();
} else {
pagination_ = value;
}
onChanged();
} else {
paginationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public Builder clearPagination() {
if (paginationBuilder_ == null) {
pagination_ = null;
onChanged();
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {
onChanged();
return getPaginationFieldBuilder().getBuilder();
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {
if (paginationBuilder_ != null) {
return paginationBuilder_.getMessageOrBuilder();
} else {
return pagination_ == null ?
cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;
}
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>
getPaginationFieldBuilder() {
if (paginationBuilder_ == null) {
paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(
getPagination(),
getParentForChildren(),
isClean());
pagination_ = null;
}
return paginationBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1.QueryContractHistoryRequest)
}
// @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1.QueryContractHistoryRequest)
private static final cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest();
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryContractHistoryRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryContractHistoryRequest(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 cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryContractHistoryResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1.QueryContractHistoryResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
java.util.List
getEntriesList();
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
cosmwasm.wasm.v1.Types.ContractCodeHistoryEntry getEntries(int index);
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
int getEntriesCount();
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
java.util.List extends cosmwasm.wasm.v1.Types.ContractCodeHistoryEntryOrBuilder>
getEntriesOrBuilderList();
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
cosmwasm.wasm.v1.Types.ContractCodeHistoryEntryOrBuilder getEntriesOrBuilder(
int index);
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return Whether the pagination field is set.
*/
boolean hasPagination();
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return The pagination.
*/
cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();
}
/**
*
* QueryContractHistoryResponse is the response type for the
* Query/ContractHistory RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryContractHistoryResponse}
*/
public static final class QueryContractHistoryResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1.QueryContractHistoryResponse)
QueryContractHistoryResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryContractHistoryResponse.newBuilder() to construct.
private QueryContractHistoryResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryContractHistoryResponse() {
entries_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryContractHistoryResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryContractHistoryResponse(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
entries_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
entries_.add(
input.readMessage(cosmwasm.wasm.v1.Types.ContractCodeHistoryEntry.parser(), extensionRegistry));
break;
}
case 18: {
cosmos.base.query.v1beta1.Pagination.PageResponse.Builder subBuilder = null;
if (pagination_ != null) {
subBuilder = pagination_.toBuilder();
}
pagination_ = input.readMessage(cosmos.base.query.v1beta1.Pagination.PageResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pagination_);
pagination_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
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_ & 0x00000001) != 0)) {
entries_ = java.util.Collections.unmodifiableList(entries_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractHistoryResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractHistoryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse.class, cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse.Builder.class);
}
public static final int ENTRIES_FIELD_NUMBER = 1;
private java.util.List entries_;
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public java.util.List getEntriesList() {
return entries_;
}
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public java.util.List extends cosmwasm.wasm.v1.Types.ContractCodeHistoryEntryOrBuilder>
getEntriesOrBuilderList() {
return entries_;
}
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public int getEntriesCount() {
return entries_.size();
}
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public cosmwasm.wasm.v1.Types.ContractCodeHistoryEntry getEntries(int index) {
return entries_.get(index);
}
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public cosmwasm.wasm.v1.Types.ContractCodeHistoryEntryOrBuilder getEntriesOrBuilder(
int index) {
return entries_.get(index);
}
public static final int PAGINATION_FIELD_NUMBER = 2;
private cosmos.base.query.v1beta1.Pagination.PageResponse pagination_;
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return Whether the pagination field is set.
*/
@java.lang.Override
public boolean hasPagination() {
return pagination_ != null;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return The pagination.
*/
@java.lang.Override
public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {
return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
@java.lang.Override
public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {
return getPagination();
}
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 {
for (int i = 0; i < entries_.size(); i++) {
output.writeMessage(1, entries_.get(i));
}
if (pagination_ != null) {
output.writeMessage(2, getPagination());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < entries_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, entries_.get(i));
}
if (pagination_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPagination());
}
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 cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse)) {
return super.equals(obj);
}
cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse other = (cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse) obj;
if (!getEntriesList()
.equals(other.getEntriesList())) return false;
if (hasPagination() != other.hasPagination()) return false;
if (hasPagination()) {
if (!getPagination()
.equals(other.getPagination())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getEntriesCount() > 0) {
hash = (37 * hash) + ENTRIES_FIELD_NUMBER;
hash = (53 * hash) + getEntriesList().hashCode();
}
if (hasPagination()) {
hash = (37 * hash) + PAGINATION_FIELD_NUMBER;
hash = (53 * hash) + getPagination().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse 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 cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse 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 cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse 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(cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse 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;
}
/**
*
* QueryContractHistoryResponse is the response type for the
* Query/ContractHistory RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryContractHistoryResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1.QueryContractHistoryResponse)
cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractHistoryResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractHistoryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse.class, cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse.Builder.class);
}
// Construct using cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEntriesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (entriesBuilder_ == null) {
entries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
entriesBuilder_.clear();
}
if (paginationBuilder_ == null) {
pagination_ = null;
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractHistoryResponse_descriptor;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse getDefaultInstanceForType() {
return cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse.getDefaultInstance();
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse build() {
cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse buildPartial() {
cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse result = new cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse(this);
int from_bitField0_ = bitField0_;
if (entriesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
entries_ = java.util.Collections.unmodifiableList(entries_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.entries_ = entries_;
} else {
result.entries_ = entriesBuilder_.build();
}
if (paginationBuilder_ == null) {
result.pagination_ = pagination_;
} else {
result.pagination_ = paginationBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse) {
return mergeFrom((cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse other) {
if (other == cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse.getDefaultInstance()) return this;
if (entriesBuilder_ == null) {
if (!other.entries_.isEmpty()) {
if (entries_.isEmpty()) {
entries_ = other.entries_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEntriesIsMutable();
entries_.addAll(other.entries_);
}
onChanged();
}
} else {
if (!other.entries_.isEmpty()) {
if (entriesBuilder_.isEmpty()) {
entriesBuilder_.dispose();
entriesBuilder_ = null;
entries_ = other.entries_;
bitField0_ = (bitField0_ & ~0x00000001);
entriesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEntriesFieldBuilder() : null;
} else {
entriesBuilder_.addAllMessages(other.entries_);
}
}
}
if (other.hasPagination()) {
mergePagination(other.getPagination());
}
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 {
cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List entries_ =
java.util.Collections.emptyList();
private void ensureEntriesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
entries_ = new java.util.ArrayList(entries_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmwasm.wasm.v1.Types.ContractCodeHistoryEntry, cosmwasm.wasm.v1.Types.ContractCodeHistoryEntry.Builder, cosmwasm.wasm.v1.Types.ContractCodeHistoryEntryOrBuilder> entriesBuilder_;
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
public java.util.List getEntriesList() {
if (entriesBuilder_ == null) {
return java.util.Collections.unmodifiableList(entries_);
} else {
return entriesBuilder_.getMessageList();
}
}
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
public int getEntriesCount() {
if (entriesBuilder_ == null) {
return entries_.size();
} else {
return entriesBuilder_.getCount();
}
}
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1.Types.ContractCodeHistoryEntry getEntries(int index) {
if (entriesBuilder_ == null) {
return entries_.get(index);
} else {
return entriesBuilder_.getMessage(index);
}
}
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
public Builder setEntries(
int index, cosmwasm.wasm.v1.Types.ContractCodeHistoryEntry value) {
if (entriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntriesIsMutable();
entries_.set(index, value);
onChanged();
} else {
entriesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
public Builder setEntries(
int index, cosmwasm.wasm.v1.Types.ContractCodeHistoryEntry.Builder builderForValue) {
if (entriesBuilder_ == null) {
ensureEntriesIsMutable();
entries_.set(index, builderForValue.build());
onChanged();
} else {
entriesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
public Builder addEntries(cosmwasm.wasm.v1.Types.ContractCodeHistoryEntry value) {
if (entriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntriesIsMutable();
entries_.add(value);
onChanged();
} else {
entriesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
public Builder addEntries(
int index, cosmwasm.wasm.v1.Types.ContractCodeHistoryEntry value) {
if (entriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntriesIsMutable();
entries_.add(index, value);
onChanged();
} else {
entriesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
public Builder addEntries(
cosmwasm.wasm.v1.Types.ContractCodeHistoryEntry.Builder builderForValue) {
if (entriesBuilder_ == null) {
ensureEntriesIsMutable();
entries_.add(builderForValue.build());
onChanged();
} else {
entriesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
public Builder addEntries(
int index, cosmwasm.wasm.v1.Types.ContractCodeHistoryEntry.Builder builderForValue) {
if (entriesBuilder_ == null) {
ensureEntriesIsMutable();
entries_.add(index, builderForValue.build());
onChanged();
} else {
entriesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
public Builder addAllEntries(
java.lang.Iterable extends cosmwasm.wasm.v1.Types.ContractCodeHistoryEntry> values) {
if (entriesBuilder_ == null) {
ensureEntriesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, entries_);
onChanged();
} else {
entriesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
public Builder clearEntries() {
if (entriesBuilder_ == null) {
entries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
entriesBuilder_.clear();
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
public Builder removeEntries(int index) {
if (entriesBuilder_ == null) {
ensureEntriesIsMutable();
entries_.remove(index);
onChanged();
} else {
entriesBuilder_.remove(index);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1.Types.ContractCodeHistoryEntry.Builder getEntriesBuilder(
int index) {
return getEntriesFieldBuilder().getBuilder(index);
}
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1.Types.ContractCodeHistoryEntryOrBuilder getEntriesOrBuilder(
int index) {
if (entriesBuilder_ == null) {
return entries_.get(index); } else {
return entriesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
public java.util.List extends cosmwasm.wasm.v1.Types.ContractCodeHistoryEntryOrBuilder>
getEntriesOrBuilderList() {
if (entriesBuilder_ != null) {
return entriesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(entries_);
}
}
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1.Types.ContractCodeHistoryEntry.Builder addEntriesBuilder() {
return getEntriesFieldBuilder().addBuilder(
cosmwasm.wasm.v1.Types.ContractCodeHistoryEntry.getDefaultInstance());
}
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1.Types.ContractCodeHistoryEntry.Builder addEntriesBuilder(
int index) {
return getEntriesFieldBuilder().addBuilder(
index, cosmwasm.wasm.v1.Types.ContractCodeHistoryEntry.getDefaultInstance());
}
/**
* repeated .cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 [(.gogoproto.nullable) = false];
*/
public java.util.List
getEntriesBuilderList() {
return getEntriesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmwasm.wasm.v1.Types.ContractCodeHistoryEntry, cosmwasm.wasm.v1.Types.ContractCodeHistoryEntry.Builder, cosmwasm.wasm.v1.Types.ContractCodeHistoryEntryOrBuilder>
getEntriesFieldBuilder() {
if (entriesBuilder_ == null) {
entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmwasm.wasm.v1.Types.ContractCodeHistoryEntry, cosmwasm.wasm.v1.Types.ContractCodeHistoryEntry.Builder, cosmwasm.wasm.v1.Types.ContractCodeHistoryEntryOrBuilder>(
entries_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
entries_ = null;
}
return entriesBuilder_;
}
private cosmos.base.query.v1beta1.Pagination.PageResponse pagination_;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageResponse, cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder> paginationBuilder_;
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return Whether the pagination field is set.
*/
public boolean hasPagination() {
return paginationBuilder_ != null || pagination_ != null;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return The pagination.
*/
public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {
if (paginationBuilder_ == null) {
return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;
} else {
return paginationBuilder_.getMessage();
}
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {
if (paginationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pagination_ = value;
onChanged();
} else {
paginationBuilder_.setMessage(value);
}
return this;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder setPagination(
cosmos.base.query.v1beta1.Pagination.PageResponse.Builder builderForValue) {
if (paginationBuilder_ == null) {
pagination_ = builderForValue.build();
onChanged();
} else {
paginationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder mergePagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {
if (paginationBuilder_ == null) {
if (pagination_ != null) {
pagination_ =
cosmos.base.query.v1beta1.Pagination.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial();
} else {
pagination_ = value;
}
onChanged();
} else {
paginationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder clearPagination() {
if (paginationBuilder_ == null) {
pagination_ = null;
onChanged();
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {
onChanged();
return getPaginationFieldBuilder().getBuilder();
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {
if (paginationBuilder_ != null) {
return paginationBuilder_.getMessageOrBuilder();
} else {
return pagination_ == null ?
cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;
}
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageResponse, cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder>
getPaginationFieldBuilder() {
if (paginationBuilder_ == null) {
paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageResponse, cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder>(
getPagination(),
getParentForChildren(),
isClean());
pagination_ = null;
}
return paginationBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1.QueryContractHistoryResponse)
}
// @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1.QueryContractHistoryResponse)
private static final cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse();
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryContractHistoryResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryContractHistoryResponse(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 cosmwasm.wasm.v1.QueryOuterClass.QueryContractHistoryResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryContractsByCodeRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1.QueryContractsByCodeRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* grpc-gateway_out does not support Go style CodID
*
*
* uint64 code_id = 1;
* @return The codeId.
*/
long getCodeId();
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return Whether the pagination field is set.
*/
boolean hasPagination();
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return The pagination.
*/
cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();
}
/**
*
* QueryContractsByCodeRequest is the request type for the Query/ContractsByCode
* RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryContractsByCodeRequest}
*/
public static final class QueryContractsByCodeRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1.QueryContractsByCodeRequest)
QueryContractsByCodeRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryContractsByCodeRequest.newBuilder() to construct.
private QueryContractsByCodeRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryContractsByCodeRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryContractsByCodeRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryContractsByCodeRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
codeId_ = input.readUInt64();
break;
}
case 18: {
cosmos.base.query.v1beta1.Pagination.PageRequest.Builder subBuilder = null;
if (pagination_ != null) {
subBuilder = pagination_.toBuilder();
}
pagination_ = input.readMessage(cosmos.base.query.v1beta1.Pagination.PageRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pagination_);
pagination_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
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 cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractsByCodeRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractsByCodeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest.class, cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest.Builder.class);
}
public static final int CODE_ID_FIELD_NUMBER = 1;
private long codeId_;
/**
*
* grpc-gateway_out does not support Go style CodID
*
*
* uint64 code_id = 1;
* @return The codeId.
*/
@java.lang.Override
public long getCodeId() {
return codeId_;
}
public static final int PAGINATION_FIELD_NUMBER = 2;
private cosmos.base.query.v1beta1.Pagination.PageRequest pagination_;
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return Whether the pagination field is set.
*/
@java.lang.Override
public boolean hasPagination() {
return pagination_ != null;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return The pagination.
*/
@java.lang.Override
public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {
return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
@java.lang.Override
public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {
return getPagination();
}
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 (codeId_ != 0L) {
output.writeUInt64(1, codeId_);
}
if (pagination_ != null) {
output.writeMessage(2, getPagination());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (codeId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, codeId_);
}
if (pagination_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPagination());
}
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 cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest)) {
return super.equals(obj);
}
cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest other = (cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest) obj;
if (getCodeId()
!= other.getCodeId()) return false;
if (hasPagination() != other.hasPagination()) return false;
if (hasPagination()) {
if (!getPagination()
.equals(other.getPagination())) return false;
}
if (!unknownFields.equals(other.unknownFields)) 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) + CODE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCodeId());
if (hasPagination()) {
hash = (37 * hash) + PAGINATION_FIELD_NUMBER;
hash = (53 * hash) + getPagination().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest 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 cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest 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 cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest 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(cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest 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;
}
/**
*
* QueryContractsByCodeRequest is the request type for the Query/ContractsByCode
* RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryContractsByCodeRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1.QueryContractsByCodeRequest)
cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractsByCodeRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractsByCodeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest.class, cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest.Builder.class);
}
// Construct using cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest.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();
codeId_ = 0L;
if (paginationBuilder_ == null) {
pagination_ = null;
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractsByCodeRequest_descriptor;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest getDefaultInstanceForType() {
return cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest.getDefaultInstance();
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest build() {
cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest buildPartial() {
cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest result = new cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest(this);
result.codeId_ = codeId_;
if (paginationBuilder_ == null) {
result.pagination_ = pagination_;
} else {
result.pagination_ = paginationBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest) {
return mergeFrom((cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest other) {
if (other == cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest.getDefaultInstance()) return this;
if (other.getCodeId() != 0L) {
setCodeId(other.getCodeId());
}
if (other.hasPagination()) {
mergePagination(other.getPagination());
}
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 {
cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long codeId_ ;
/**
*
* grpc-gateway_out does not support Go style CodID
*
*
* uint64 code_id = 1;
* @return The codeId.
*/
@java.lang.Override
public long getCodeId() {
return codeId_;
}
/**
*
* grpc-gateway_out does not support Go style CodID
*
*
* uint64 code_id = 1;
* @param value The codeId to set.
* @return This builder for chaining.
*/
public Builder setCodeId(long value) {
codeId_ = value;
onChanged();
return this;
}
/**
*
* grpc-gateway_out does not support Go style CodID
*
*
* uint64 code_id = 1;
* @return This builder for chaining.
*/
public Builder clearCodeId() {
codeId_ = 0L;
onChanged();
return this;
}
private cosmos.base.query.v1beta1.Pagination.PageRequest pagination_;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> paginationBuilder_;
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return Whether the pagination field is set.
*/
public boolean hasPagination() {
return paginationBuilder_ != null || pagination_ != null;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return The pagination.
*/
public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {
if (paginationBuilder_ == null) {
return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;
} else {
return paginationBuilder_.getMessage();
}
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {
if (paginationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pagination_ = value;
onChanged();
} else {
paginationBuilder_.setMessage(value);
}
return this;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public Builder setPagination(
cosmos.base.query.v1beta1.Pagination.PageRequest.Builder builderForValue) {
if (paginationBuilder_ == null) {
pagination_ = builderForValue.build();
onChanged();
} else {
paginationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public Builder mergePagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {
if (paginationBuilder_ == null) {
if (pagination_ != null) {
pagination_ =
cosmos.base.query.v1beta1.Pagination.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial();
} else {
pagination_ = value;
}
onChanged();
} else {
paginationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public Builder clearPagination() {
if (paginationBuilder_ == null) {
pagination_ = null;
onChanged();
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {
onChanged();
return getPaginationFieldBuilder().getBuilder();
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {
if (paginationBuilder_ != null) {
return paginationBuilder_.getMessageOrBuilder();
} else {
return pagination_ == null ?
cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;
}
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>
getPaginationFieldBuilder() {
if (paginationBuilder_ == null) {
paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(
getPagination(),
getParentForChildren(),
isClean());
pagination_ = null;
}
return paginationBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1.QueryContractsByCodeRequest)
}
// @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1.QueryContractsByCodeRequest)
private static final cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest();
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryContractsByCodeRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryContractsByCodeRequest(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 cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryContractsByCodeResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1.QueryContractsByCodeResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* contracts are a set of contract addresses
*
*
* repeated string contracts = 1;
* @return A list containing the contracts.
*/
java.util.List
getContractsList();
/**
*
* contracts are a set of contract addresses
*
*
* repeated string contracts = 1;
* @return The count of contracts.
*/
int getContractsCount();
/**
*
* contracts are a set of contract addresses
*
*
* repeated string contracts = 1;
* @param index The index of the element to return.
* @return The contracts at the given index.
*/
java.lang.String getContracts(int index);
/**
*
* contracts are a set of contract addresses
*
*
* repeated string contracts = 1;
* @param index The index of the value to return.
* @return The bytes of the contracts at the given index.
*/
com.google.protobuf.ByteString
getContractsBytes(int index);
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return Whether the pagination field is set.
*/
boolean hasPagination();
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return The pagination.
*/
cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();
}
/**
*
* QueryContractsByCodeResponse is the response type for the
* Query/ContractsByCode RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryContractsByCodeResponse}
*/
public static final class QueryContractsByCodeResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1.QueryContractsByCodeResponse)
QueryContractsByCodeResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryContractsByCodeResponse.newBuilder() to construct.
private QueryContractsByCodeResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryContractsByCodeResponse() {
contracts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryContractsByCodeResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryContractsByCodeResponse(
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();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
contracts_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
contracts_.add(s);
break;
}
case 18: {
cosmos.base.query.v1beta1.Pagination.PageResponse.Builder subBuilder = null;
if (pagination_ != null) {
subBuilder = pagination_.toBuilder();
}
pagination_ = input.readMessage(cosmos.base.query.v1beta1.Pagination.PageResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pagination_);
pagination_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
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_ & 0x00000001) != 0)) {
contracts_ = contracts_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractsByCodeResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractsByCodeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse.class, cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse.Builder.class);
}
public static final int CONTRACTS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList contracts_;
/**
*
* contracts are a set of contract addresses
*
*
* repeated string contracts = 1;
* @return A list containing the contracts.
*/
public com.google.protobuf.ProtocolStringList
getContractsList() {
return contracts_;
}
/**
*
* contracts are a set of contract addresses
*
*
* repeated string contracts = 1;
* @return The count of contracts.
*/
public int getContractsCount() {
return contracts_.size();
}
/**
*
* contracts are a set of contract addresses
*
*
* repeated string contracts = 1;
* @param index The index of the element to return.
* @return The contracts at the given index.
*/
public java.lang.String getContracts(int index) {
return contracts_.get(index);
}
/**
*
* contracts are a set of contract addresses
*
*
* repeated string contracts = 1;
* @param index The index of the value to return.
* @return The bytes of the contracts at the given index.
*/
public com.google.protobuf.ByteString
getContractsBytes(int index) {
return contracts_.getByteString(index);
}
public static final int PAGINATION_FIELD_NUMBER = 2;
private cosmos.base.query.v1beta1.Pagination.PageResponse pagination_;
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return Whether the pagination field is set.
*/
@java.lang.Override
public boolean hasPagination() {
return pagination_ != null;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return The pagination.
*/
@java.lang.Override
public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {
return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
@java.lang.Override
public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {
return getPagination();
}
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 {
for (int i = 0; i < contracts_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contracts_.getRaw(i));
}
if (pagination_ != null) {
output.writeMessage(2, getPagination());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < contracts_.size(); i++) {
dataSize += computeStringSizeNoTag(contracts_.getRaw(i));
}
size += dataSize;
size += 1 * getContractsList().size();
}
if (pagination_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPagination());
}
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 cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse)) {
return super.equals(obj);
}
cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse other = (cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse) obj;
if (!getContractsList()
.equals(other.getContractsList())) return false;
if (hasPagination() != other.hasPagination()) return false;
if (hasPagination()) {
if (!getPagination()
.equals(other.getPagination())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getContractsCount() > 0) {
hash = (37 * hash) + CONTRACTS_FIELD_NUMBER;
hash = (53 * hash) + getContractsList().hashCode();
}
if (hasPagination()) {
hash = (37 * hash) + PAGINATION_FIELD_NUMBER;
hash = (53 * hash) + getPagination().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse 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 cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse 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 cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse 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(cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse 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;
}
/**
*
* QueryContractsByCodeResponse is the response type for the
* Query/ContractsByCode RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryContractsByCodeResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1.QueryContractsByCodeResponse)
cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractsByCodeResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractsByCodeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse.class, cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse.Builder.class);
}
// Construct using cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse.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();
contracts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
if (paginationBuilder_ == null) {
pagination_ = null;
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryContractsByCodeResponse_descriptor;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse getDefaultInstanceForType() {
return cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse.getDefaultInstance();
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse build() {
cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse buildPartial() {
cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse result = new cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
contracts_ = contracts_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.contracts_ = contracts_;
if (paginationBuilder_ == null) {
result.pagination_ = pagination_;
} else {
result.pagination_ = paginationBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse) {
return mergeFrom((cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse other) {
if (other == cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse.getDefaultInstance()) return this;
if (!other.contracts_.isEmpty()) {
if (contracts_.isEmpty()) {
contracts_ = other.contracts_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureContractsIsMutable();
contracts_.addAll(other.contracts_);
}
onChanged();
}
if (other.hasPagination()) {
mergePagination(other.getPagination());
}
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 {
cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList contracts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureContractsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
contracts_ = new com.google.protobuf.LazyStringArrayList(contracts_);
bitField0_ |= 0x00000001;
}
}
/**
*
* contracts are a set of contract addresses
*
*
* repeated string contracts = 1;
* @return A list containing the contracts.
*/
public com.google.protobuf.ProtocolStringList
getContractsList() {
return contracts_.getUnmodifiableView();
}
/**
*
* contracts are a set of contract addresses
*
*
* repeated string contracts = 1;
* @return The count of contracts.
*/
public int getContractsCount() {
return contracts_.size();
}
/**
*
* contracts are a set of contract addresses
*
*
* repeated string contracts = 1;
* @param index The index of the element to return.
* @return The contracts at the given index.
*/
public java.lang.String getContracts(int index) {
return contracts_.get(index);
}
/**
*
* contracts are a set of contract addresses
*
*
* repeated string contracts = 1;
* @param index The index of the value to return.
* @return The bytes of the contracts at the given index.
*/
public com.google.protobuf.ByteString
getContractsBytes(int index) {
return contracts_.getByteString(index);
}
/**
*
* contracts are a set of contract addresses
*
*
* repeated string contracts = 1;
* @param index The index to set the value at.
* @param value The contracts to set.
* @return This builder for chaining.
*/
public Builder setContracts(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureContractsIsMutable();
contracts_.set(index, value);
onChanged();
return this;
}
/**
*
* contracts are a set of contract addresses
*
*
* repeated string contracts = 1;
* @param value The contracts to add.
* @return This builder for chaining.
*/
public Builder addContracts(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureContractsIsMutable();
contracts_.add(value);
onChanged();
return this;
}
/**
*
* contracts are a set of contract addresses
*
*
* repeated string contracts = 1;
* @param values The contracts to add.
* @return This builder for chaining.
*/
public Builder addAllContracts(
java.lang.Iterable values) {
ensureContractsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, contracts_);
onChanged();
return this;
}
/**
*
* contracts are a set of contract addresses
*
*
* repeated string contracts = 1;
* @return This builder for chaining.
*/
public Builder clearContracts() {
contracts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* contracts are a set of contract addresses
*
*
* repeated string contracts = 1;
* @param value The bytes of the contracts to add.
* @return This builder for chaining.
*/
public Builder addContractsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureContractsIsMutable();
contracts_.add(value);
onChanged();
return this;
}
private cosmos.base.query.v1beta1.Pagination.PageResponse pagination_;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageResponse, cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder> paginationBuilder_;
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return Whether the pagination field is set.
*/
public boolean hasPagination() {
return paginationBuilder_ != null || pagination_ != null;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return The pagination.
*/
public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {
if (paginationBuilder_ == null) {
return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;
} else {
return paginationBuilder_.getMessage();
}
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {
if (paginationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pagination_ = value;
onChanged();
} else {
paginationBuilder_.setMessage(value);
}
return this;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder setPagination(
cosmos.base.query.v1beta1.Pagination.PageResponse.Builder builderForValue) {
if (paginationBuilder_ == null) {
pagination_ = builderForValue.build();
onChanged();
} else {
paginationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder mergePagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {
if (paginationBuilder_ == null) {
if (pagination_ != null) {
pagination_ =
cosmos.base.query.v1beta1.Pagination.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial();
} else {
pagination_ = value;
}
onChanged();
} else {
paginationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder clearPagination() {
if (paginationBuilder_ == null) {
pagination_ = null;
onChanged();
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {
onChanged();
return getPaginationFieldBuilder().getBuilder();
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {
if (paginationBuilder_ != null) {
return paginationBuilder_.getMessageOrBuilder();
} else {
return pagination_ == null ?
cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;
}
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageResponse, cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder>
getPaginationFieldBuilder() {
if (paginationBuilder_ == null) {
paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageResponse, cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder>(
getPagination(),
getParentForChildren(),
isClean());
pagination_ = null;
}
return paginationBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1.QueryContractsByCodeResponse)
}
// @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1.QueryContractsByCodeResponse)
private static final cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse();
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryContractsByCodeResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryContractsByCodeResponse(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 cosmwasm.wasm.v1.QueryOuterClass.QueryContractsByCodeResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryAllContractStateRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1.QueryAllContractStateRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return The address.
*/
java.lang.String getAddress();
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return The bytes for address.
*/
com.google.protobuf.ByteString
getAddressBytes();
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return Whether the pagination field is set.
*/
boolean hasPagination();
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return The pagination.
*/
cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();
}
/**
*
* QueryAllContractStateRequest is the request type for the
* Query/AllContractState RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryAllContractStateRequest}
*/
public static final class QueryAllContractStateRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1.QueryAllContractStateRequest)
QueryAllContractStateRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryAllContractStateRequest.newBuilder() to construct.
private QueryAllContractStateRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryAllContractStateRequest() {
address_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryAllContractStateRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryAllContractStateRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
address_ = s;
break;
}
case 18: {
cosmos.base.query.v1beta1.Pagination.PageRequest.Builder subBuilder = null;
if (pagination_ != null) {
subBuilder = pagination_.toBuilder();
}
pagination_ = input.readMessage(cosmos.base.query.v1beta1.Pagination.PageRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pagination_);
pagination_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
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 cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryAllContractStateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryAllContractStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest.class, cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private volatile java.lang.Object address_;
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return The address.
*/
@java.lang.Override
public java.lang.String getAddress() {
java.lang.Object ref = address_;
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();
address_ = s;
return s;
}
}
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return The bytes for address.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAGINATION_FIELD_NUMBER = 2;
private cosmos.base.query.v1beta1.Pagination.PageRequest pagination_;
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return Whether the pagination field is set.
*/
@java.lang.Override
public boolean hasPagination() {
return pagination_ != null;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return The pagination.
*/
@java.lang.Override
public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {
return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
@java.lang.Override
public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {
return getPagination();
}
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.GeneratedMessageV3.isStringEmpty(address_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_);
}
if (pagination_ != null) {
output.writeMessage(2, getPagination());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_);
}
if (pagination_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPagination());
}
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 cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest)) {
return super.equals(obj);
}
cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest other = (cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (hasPagination() != other.hasPagination()) return false;
if (hasPagination()) {
if (!getPagination()
.equals(other.getPagination())) return false;
}
if (!unknownFields.equals(other.unknownFields)) 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) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
if (hasPagination()) {
hash = (37 * hash) + PAGINATION_FIELD_NUMBER;
hash = (53 * hash) + getPagination().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest 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 cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest 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 cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest 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(cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest 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;
}
/**
*
* QueryAllContractStateRequest is the request type for the
* Query/AllContractState RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryAllContractStateRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1.QueryAllContractStateRequest)
cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryAllContractStateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryAllContractStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest.class, cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest.Builder.class);
}
// Construct using cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest.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();
address_ = "";
if (paginationBuilder_ == null) {
pagination_ = null;
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryAllContractStateRequest_descriptor;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest getDefaultInstanceForType() {
return cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest.getDefaultInstance();
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest build() {
cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest buildPartial() {
cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest result = new cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest(this);
result.address_ = address_;
if (paginationBuilder_ == null) {
result.pagination_ = pagination_;
} else {
result.pagination_ = paginationBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest) {
return mergeFrom((cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest other) {
if (other == cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest.getDefaultInstance()) return this;
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
onChanged();
}
if (other.hasPagination()) {
mergePagination(other.getPagination());
}
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 {
cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object address_ = "";
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return The address.
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return The bytes for address.
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @param value The bytes for address to set.
* @return This builder for chaining.
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
address_ = value;
onChanged();
return this;
}
private cosmos.base.query.v1beta1.Pagination.PageRequest pagination_;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> paginationBuilder_;
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return Whether the pagination field is set.
*/
public boolean hasPagination() {
return paginationBuilder_ != null || pagination_ != null;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return The pagination.
*/
public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {
if (paginationBuilder_ == null) {
return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;
} else {
return paginationBuilder_.getMessage();
}
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {
if (paginationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pagination_ = value;
onChanged();
} else {
paginationBuilder_.setMessage(value);
}
return this;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public Builder setPagination(
cosmos.base.query.v1beta1.Pagination.PageRequest.Builder builderForValue) {
if (paginationBuilder_ == null) {
pagination_ = builderForValue.build();
onChanged();
} else {
paginationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public Builder mergePagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {
if (paginationBuilder_ == null) {
if (pagination_ != null) {
pagination_ =
cosmos.base.query.v1beta1.Pagination.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial();
} else {
pagination_ = value;
}
onChanged();
} else {
paginationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public Builder clearPagination() {
if (paginationBuilder_ == null) {
pagination_ = null;
onChanged();
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {
onChanged();
return getPaginationFieldBuilder().getBuilder();
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {
if (paginationBuilder_ != null) {
return paginationBuilder_.getMessageOrBuilder();
} else {
return pagination_ == null ?
cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;
}
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>
getPaginationFieldBuilder() {
if (paginationBuilder_ == null) {
paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(
getPagination(),
getParentForChildren(),
isClean());
pagination_ = null;
}
return paginationBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1.QueryAllContractStateRequest)
}
// @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1.QueryAllContractStateRequest)
private static final cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest();
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryAllContractStateRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryAllContractStateRequest(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 cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryAllContractStateResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1.QueryAllContractStateResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
java.util.List
getModelsList();
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
cosmwasm.wasm.v1.Types.Model getModels(int index);
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
int getModelsCount();
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
java.util.List extends cosmwasm.wasm.v1.Types.ModelOrBuilder>
getModelsOrBuilderList();
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
cosmwasm.wasm.v1.Types.ModelOrBuilder getModelsOrBuilder(
int index);
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return Whether the pagination field is set.
*/
boolean hasPagination();
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return The pagination.
*/
cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();
}
/**
*
* QueryAllContractStateResponse is the response type for the
* Query/AllContractState RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryAllContractStateResponse}
*/
public static final class QueryAllContractStateResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1.QueryAllContractStateResponse)
QueryAllContractStateResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryAllContractStateResponse.newBuilder() to construct.
private QueryAllContractStateResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryAllContractStateResponse() {
models_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryAllContractStateResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryAllContractStateResponse(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
models_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
models_.add(
input.readMessage(cosmwasm.wasm.v1.Types.Model.parser(), extensionRegistry));
break;
}
case 18: {
cosmos.base.query.v1beta1.Pagination.PageResponse.Builder subBuilder = null;
if (pagination_ != null) {
subBuilder = pagination_.toBuilder();
}
pagination_ = input.readMessage(cosmos.base.query.v1beta1.Pagination.PageResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pagination_);
pagination_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
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_ & 0x00000001) != 0)) {
models_ = java.util.Collections.unmodifiableList(models_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryAllContractStateResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryAllContractStateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse.class, cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse.Builder.class);
}
public static final int MODELS_FIELD_NUMBER = 1;
private java.util.List models_;
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public java.util.List getModelsList() {
return models_;
}
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public java.util.List extends cosmwasm.wasm.v1.Types.ModelOrBuilder>
getModelsOrBuilderList() {
return models_;
}
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public int getModelsCount() {
return models_.size();
}
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public cosmwasm.wasm.v1.Types.Model getModels(int index) {
return models_.get(index);
}
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public cosmwasm.wasm.v1.Types.ModelOrBuilder getModelsOrBuilder(
int index) {
return models_.get(index);
}
public static final int PAGINATION_FIELD_NUMBER = 2;
private cosmos.base.query.v1beta1.Pagination.PageResponse pagination_;
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return Whether the pagination field is set.
*/
@java.lang.Override
public boolean hasPagination() {
return pagination_ != null;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return The pagination.
*/
@java.lang.Override
public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {
return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
@java.lang.Override
public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {
return getPagination();
}
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 {
for (int i = 0; i < models_.size(); i++) {
output.writeMessage(1, models_.get(i));
}
if (pagination_ != null) {
output.writeMessage(2, getPagination());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < models_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, models_.get(i));
}
if (pagination_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPagination());
}
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 cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse)) {
return super.equals(obj);
}
cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse other = (cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse) obj;
if (!getModelsList()
.equals(other.getModelsList())) return false;
if (hasPagination() != other.hasPagination()) return false;
if (hasPagination()) {
if (!getPagination()
.equals(other.getPagination())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getModelsCount() > 0) {
hash = (37 * hash) + MODELS_FIELD_NUMBER;
hash = (53 * hash) + getModelsList().hashCode();
}
if (hasPagination()) {
hash = (37 * hash) + PAGINATION_FIELD_NUMBER;
hash = (53 * hash) + getPagination().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse 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 cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse 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 cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse 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(cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse 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;
}
/**
*
* QueryAllContractStateResponse is the response type for the
* Query/AllContractState RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryAllContractStateResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1.QueryAllContractStateResponse)
cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryAllContractStateResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryAllContractStateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse.class, cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse.Builder.class);
}
// Construct using cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getModelsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (modelsBuilder_ == null) {
models_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
modelsBuilder_.clear();
}
if (paginationBuilder_ == null) {
pagination_ = null;
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryAllContractStateResponse_descriptor;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse getDefaultInstanceForType() {
return cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse.getDefaultInstance();
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse build() {
cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse buildPartial() {
cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse result = new cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse(this);
int from_bitField0_ = bitField0_;
if (modelsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
models_ = java.util.Collections.unmodifiableList(models_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.models_ = models_;
} else {
result.models_ = modelsBuilder_.build();
}
if (paginationBuilder_ == null) {
result.pagination_ = pagination_;
} else {
result.pagination_ = paginationBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse) {
return mergeFrom((cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse other) {
if (other == cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse.getDefaultInstance()) return this;
if (modelsBuilder_ == null) {
if (!other.models_.isEmpty()) {
if (models_.isEmpty()) {
models_ = other.models_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureModelsIsMutable();
models_.addAll(other.models_);
}
onChanged();
}
} else {
if (!other.models_.isEmpty()) {
if (modelsBuilder_.isEmpty()) {
modelsBuilder_.dispose();
modelsBuilder_ = null;
models_ = other.models_;
bitField0_ = (bitField0_ & ~0x00000001);
modelsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getModelsFieldBuilder() : null;
} else {
modelsBuilder_.addAllMessages(other.models_);
}
}
}
if (other.hasPagination()) {
mergePagination(other.getPagination());
}
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 {
cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List models_ =
java.util.Collections.emptyList();
private void ensureModelsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
models_ = new java.util.ArrayList(models_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmwasm.wasm.v1.Types.Model, cosmwasm.wasm.v1.Types.Model.Builder, cosmwasm.wasm.v1.Types.ModelOrBuilder> modelsBuilder_;
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
public java.util.List getModelsList() {
if (modelsBuilder_ == null) {
return java.util.Collections.unmodifiableList(models_);
} else {
return modelsBuilder_.getMessageList();
}
}
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
public int getModelsCount() {
if (modelsBuilder_ == null) {
return models_.size();
} else {
return modelsBuilder_.getCount();
}
}
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1.Types.Model getModels(int index) {
if (modelsBuilder_ == null) {
return models_.get(index);
} else {
return modelsBuilder_.getMessage(index);
}
}
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
public Builder setModels(
int index, cosmwasm.wasm.v1.Types.Model value) {
if (modelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureModelsIsMutable();
models_.set(index, value);
onChanged();
} else {
modelsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
public Builder setModels(
int index, cosmwasm.wasm.v1.Types.Model.Builder builderForValue) {
if (modelsBuilder_ == null) {
ensureModelsIsMutable();
models_.set(index, builderForValue.build());
onChanged();
} else {
modelsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
public Builder addModels(cosmwasm.wasm.v1.Types.Model value) {
if (modelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureModelsIsMutable();
models_.add(value);
onChanged();
} else {
modelsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
public Builder addModels(
int index, cosmwasm.wasm.v1.Types.Model value) {
if (modelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureModelsIsMutable();
models_.add(index, value);
onChanged();
} else {
modelsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
public Builder addModels(
cosmwasm.wasm.v1.Types.Model.Builder builderForValue) {
if (modelsBuilder_ == null) {
ensureModelsIsMutable();
models_.add(builderForValue.build());
onChanged();
} else {
modelsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
public Builder addModels(
int index, cosmwasm.wasm.v1.Types.Model.Builder builderForValue) {
if (modelsBuilder_ == null) {
ensureModelsIsMutable();
models_.add(index, builderForValue.build());
onChanged();
} else {
modelsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
public Builder addAllModels(
java.lang.Iterable extends cosmwasm.wasm.v1.Types.Model> values) {
if (modelsBuilder_ == null) {
ensureModelsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, models_);
onChanged();
} else {
modelsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
public Builder clearModels() {
if (modelsBuilder_ == null) {
models_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
modelsBuilder_.clear();
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
public Builder removeModels(int index) {
if (modelsBuilder_ == null) {
ensureModelsIsMutable();
models_.remove(index);
onChanged();
} else {
modelsBuilder_.remove(index);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1.Types.Model.Builder getModelsBuilder(
int index) {
return getModelsFieldBuilder().getBuilder(index);
}
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1.Types.ModelOrBuilder getModelsOrBuilder(
int index) {
if (modelsBuilder_ == null) {
return models_.get(index); } else {
return modelsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
public java.util.List extends cosmwasm.wasm.v1.Types.ModelOrBuilder>
getModelsOrBuilderList() {
if (modelsBuilder_ != null) {
return modelsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(models_);
}
}
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1.Types.Model.Builder addModelsBuilder() {
return getModelsFieldBuilder().addBuilder(
cosmwasm.wasm.v1.Types.Model.getDefaultInstance());
}
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1.Types.Model.Builder addModelsBuilder(
int index) {
return getModelsFieldBuilder().addBuilder(
index, cosmwasm.wasm.v1.Types.Model.getDefaultInstance());
}
/**
* repeated .cosmwasm.wasm.v1.Model models = 1 [(.gogoproto.nullable) = false];
*/
public java.util.List
getModelsBuilderList() {
return getModelsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmwasm.wasm.v1.Types.Model, cosmwasm.wasm.v1.Types.Model.Builder, cosmwasm.wasm.v1.Types.ModelOrBuilder>
getModelsFieldBuilder() {
if (modelsBuilder_ == null) {
modelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmwasm.wasm.v1.Types.Model, cosmwasm.wasm.v1.Types.Model.Builder, cosmwasm.wasm.v1.Types.ModelOrBuilder>(
models_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
models_ = null;
}
return modelsBuilder_;
}
private cosmos.base.query.v1beta1.Pagination.PageResponse pagination_;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageResponse, cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder> paginationBuilder_;
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return Whether the pagination field is set.
*/
public boolean hasPagination() {
return paginationBuilder_ != null || pagination_ != null;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return The pagination.
*/
public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {
if (paginationBuilder_ == null) {
return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;
} else {
return paginationBuilder_.getMessage();
}
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {
if (paginationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pagination_ = value;
onChanged();
} else {
paginationBuilder_.setMessage(value);
}
return this;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder setPagination(
cosmos.base.query.v1beta1.Pagination.PageResponse.Builder builderForValue) {
if (paginationBuilder_ == null) {
pagination_ = builderForValue.build();
onChanged();
} else {
paginationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder mergePagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {
if (paginationBuilder_ == null) {
if (pagination_ != null) {
pagination_ =
cosmos.base.query.v1beta1.Pagination.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial();
} else {
pagination_ = value;
}
onChanged();
} else {
paginationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder clearPagination() {
if (paginationBuilder_ == null) {
pagination_ = null;
onChanged();
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {
onChanged();
return getPaginationFieldBuilder().getBuilder();
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {
if (paginationBuilder_ != null) {
return paginationBuilder_.getMessageOrBuilder();
} else {
return pagination_ == null ?
cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;
}
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageResponse, cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder>
getPaginationFieldBuilder() {
if (paginationBuilder_ == null) {
paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageResponse, cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder>(
getPagination(),
getParentForChildren(),
isClean());
pagination_ = null;
}
return paginationBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1.QueryAllContractStateResponse)
}
// @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1.QueryAllContractStateResponse)
private static final cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse();
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryAllContractStateResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryAllContractStateResponse(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 cosmwasm.wasm.v1.QueryOuterClass.QueryAllContractStateResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryRawContractStateRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1.QueryRawContractStateRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return The address.
*/
java.lang.String getAddress();
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return The bytes for address.
*/
com.google.protobuf.ByteString
getAddressBytes();
/**
* bytes query_data = 2;
* @return The queryData.
*/
com.google.protobuf.ByteString getQueryData();
}
/**
*
* QueryRawContractStateRequest is the request type for the
* Query/RawContractState RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryRawContractStateRequest}
*/
public static final class QueryRawContractStateRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1.QueryRawContractStateRequest)
QueryRawContractStateRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryRawContractStateRequest.newBuilder() to construct.
private QueryRawContractStateRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryRawContractStateRequest() {
address_ = "";
queryData_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryRawContractStateRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryRawContractStateRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
address_ = s;
break;
}
case 18: {
queryData_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
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 cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryRawContractStateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryRawContractStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest.class, cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private volatile java.lang.Object address_;
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return The address.
*/
@java.lang.Override
public java.lang.String getAddress() {
java.lang.Object ref = address_;
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();
address_ = s;
return s;
}
}
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return The bytes for address.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int QUERY_DATA_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString queryData_;
/**
* bytes query_data = 2;
* @return The queryData.
*/
@java.lang.Override
public com.google.protobuf.ByteString getQueryData() {
return queryData_;
}
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.GeneratedMessageV3.isStringEmpty(address_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_);
}
if (!queryData_.isEmpty()) {
output.writeBytes(2, queryData_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_);
}
if (!queryData_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, queryData_);
}
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 cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest)) {
return super.equals(obj);
}
cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest other = (cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (!getQueryData()
.equals(other.getQueryData())) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
hash = (37 * hash) + QUERY_DATA_FIELD_NUMBER;
hash = (53 * hash) + getQueryData().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest 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 cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest 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 cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest 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(cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest 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;
}
/**
*
* QueryRawContractStateRequest is the request type for the
* Query/RawContractState RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryRawContractStateRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1.QueryRawContractStateRequest)
cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryRawContractStateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryRawContractStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest.class, cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest.Builder.class);
}
// Construct using cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest.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();
address_ = "";
queryData_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryRawContractStateRequest_descriptor;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest getDefaultInstanceForType() {
return cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest.getDefaultInstance();
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest build() {
cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest buildPartial() {
cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest result = new cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest(this);
result.address_ = address_;
result.queryData_ = queryData_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest) {
return mergeFrom((cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest other) {
if (other == cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest.getDefaultInstance()) return this;
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
onChanged();
}
if (other.getQueryData() != com.google.protobuf.ByteString.EMPTY) {
setQueryData(other.getQueryData());
}
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 {
cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object address_ = "";
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return The address.
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return The bytes for address.
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @param value The bytes for address to set.
* @return This builder for chaining.
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
address_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString queryData_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes query_data = 2;
* @return The queryData.
*/
@java.lang.Override
public com.google.protobuf.ByteString getQueryData() {
return queryData_;
}
/**
* bytes query_data = 2;
* @param value The queryData to set.
* @return This builder for chaining.
*/
public Builder setQueryData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
queryData_ = value;
onChanged();
return this;
}
/**
* bytes query_data = 2;
* @return This builder for chaining.
*/
public Builder clearQueryData() {
queryData_ = getDefaultInstance().getQueryData();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1.QueryRawContractStateRequest)
}
// @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1.QueryRawContractStateRequest)
private static final cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest();
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryRawContractStateRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryRawContractStateRequest(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 cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryRawContractStateResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1.QueryRawContractStateResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* Data contains the raw store data
*
*
* bytes data = 1;
* @return The data.
*/
com.google.protobuf.ByteString getData();
}
/**
*
* QueryRawContractStateResponse is the response type for the
* Query/RawContractState RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryRawContractStateResponse}
*/
public static final class QueryRawContractStateResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1.QueryRawContractStateResponse)
QueryRawContractStateResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryRawContractStateResponse.newBuilder() to construct.
private QueryRawContractStateResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryRawContractStateResponse() {
data_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryRawContractStateResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryRawContractStateResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
data_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
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 cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryRawContractStateResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryRawContractStateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse.class, cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse.Builder.class);
}
public static final int DATA_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString data_;
/**
*
* Data contains the raw store data
*
*
* bytes data = 1;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
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 (!data_.isEmpty()) {
output.writeBytes(1, data_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, data_);
}
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 cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse)) {
return super.equals(obj);
}
cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse other = (cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse) obj;
if (!getData()
.equals(other.getData())) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse 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 cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse 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 cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse 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(cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse 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;
}
/**
*
* QueryRawContractStateResponse is the response type for the
* Query/RawContractState RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryRawContractStateResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1.QueryRawContractStateResponse)
cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryRawContractStateResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryRawContractStateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse.class, cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse.Builder.class);
}
// Construct using cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse.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();
data_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryRawContractStateResponse_descriptor;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse getDefaultInstanceForType() {
return cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse.getDefaultInstance();
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse build() {
cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse buildPartial() {
cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse result = new cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse(this);
result.data_ = data_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse) {
return mergeFrom((cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse other) {
if (other == cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse.getDefaultInstance()) return this;
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
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 {
cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Data contains the raw store data
*
*
* bytes data = 1;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
*
* Data contains the raw store data
*
*
* bytes data = 1;
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
*
* Data contains the raw store data
*
*
* bytes data = 1;
* @return This builder for chaining.
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1.QueryRawContractStateResponse)
}
// @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1.QueryRawContractStateResponse)
private static final cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse();
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryRawContractStateResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryRawContractStateResponse(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 cosmwasm.wasm.v1.QueryOuterClass.QueryRawContractStateResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QuerySmartContractStateRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1.QuerySmartContractStateRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return The address.
*/
java.lang.String getAddress();
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return The bytes for address.
*/
com.google.protobuf.ByteString
getAddressBytes();
/**
*
* QueryData contains the query data passed to the contract
*
*
* bytes query_data = 2 [(.gogoproto.casttype) = "RawContractMessage"];
* @return The queryData.
*/
com.google.protobuf.ByteString getQueryData();
}
/**
*
* QuerySmartContractStateRequest is the request type for the
* Query/SmartContractState RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QuerySmartContractStateRequest}
*/
public static final class QuerySmartContractStateRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1.QuerySmartContractStateRequest)
QuerySmartContractStateRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use QuerySmartContractStateRequest.newBuilder() to construct.
private QuerySmartContractStateRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QuerySmartContractStateRequest() {
address_ = "";
queryData_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QuerySmartContractStateRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QuerySmartContractStateRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
address_ = s;
break;
}
case 18: {
queryData_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
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 cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QuerySmartContractStateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QuerySmartContractStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest.class, cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private volatile java.lang.Object address_;
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return The address.
*/
@java.lang.Override
public java.lang.String getAddress() {
java.lang.Object ref = address_;
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();
address_ = s;
return s;
}
}
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return The bytes for address.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int QUERY_DATA_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString queryData_;
/**
*
* QueryData contains the query data passed to the contract
*
*
* bytes query_data = 2 [(.gogoproto.casttype) = "RawContractMessage"];
* @return The queryData.
*/
@java.lang.Override
public com.google.protobuf.ByteString getQueryData() {
return queryData_;
}
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.GeneratedMessageV3.isStringEmpty(address_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_);
}
if (!queryData_.isEmpty()) {
output.writeBytes(2, queryData_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_);
}
if (!queryData_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, queryData_);
}
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 cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest)) {
return super.equals(obj);
}
cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest other = (cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (!getQueryData()
.equals(other.getQueryData())) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
hash = (37 * hash) + QUERY_DATA_FIELD_NUMBER;
hash = (53 * hash) + getQueryData().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest 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 cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest 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 cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest 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(cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest 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;
}
/**
*
* QuerySmartContractStateRequest is the request type for the
* Query/SmartContractState RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QuerySmartContractStateRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1.QuerySmartContractStateRequest)
cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QuerySmartContractStateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QuerySmartContractStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest.class, cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest.Builder.class);
}
// Construct using cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest.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();
address_ = "";
queryData_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QuerySmartContractStateRequest_descriptor;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest getDefaultInstanceForType() {
return cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest.getDefaultInstance();
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest build() {
cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest buildPartial() {
cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest result = new cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest(this);
result.address_ = address_;
result.queryData_ = queryData_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest) {
return mergeFrom((cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest other) {
if (other == cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest.getDefaultInstance()) return this;
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
onChanged();
}
if (other.getQueryData() != com.google.protobuf.ByteString.EMPTY) {
setQueryData(other.getQueryData());
}
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 {
cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object address_ = "";
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return The address.
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return The bytes for address.
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
/**
*
* address is the address of the contract
*
*
* string address = 1;
* @param value The bytes for address to set.
* @return This builder for chaining.
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
address_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString queryData_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* QueryData contains the query data passed to the contract
*
*
* bytes query_data = 2 [(.gogoproto.casttype) = "RawContractMessage"];
* @return The queryData.
*/
@java.lang.Override
public com.google.protobuf.ByteString getQueryData() {
return queryData_;
}
/**
*
* QueryData contains the query data passed to the contract
*
*
* bytes query_data = 2 [(.gogoproto.casttype) = "RawContractMessage"];
* @param value The queryData to set.
* @return This builder for chaining.
*/
public Builder setQueryData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
queryData_ = value;
onChanged();
return this;
}
/**
*
* QueryData contains the query data passed to the contract
*
*
* bytes query_data = 2 [(.gogoproto.casttype) = "RawContractMessage"];
* @return This builder for chaining.
*/
public Builder clearQueryData() {
queryData_ = getDefaultInstance().getQueryData();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1.QuerySmartContractStateRequest)
}
// @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1.QuerySmartContractStateRequest)
private static final cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest();
}
public static cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QuerySmartContractStateRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QuerySmartContractStateRequest(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 cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QuerySmartContractStateResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1.QuerySmartContractStateResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* Data contains the json data returned from the smart contract
*
*
* bytes data = 1 [(.gogoproto.casttype) = "RawContractMessage"];
* @return The data.
*/
com.google.protobuf.ByteString getData();
}
/**
*
* QuerySmartContractStateResponse is the response type for the
* Query/SmartContractState RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QuerySmartContractStateResponse}
*/
public static final class QuerySmartContractStateResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1.QuerySmartContractStateResponse)
QuerySmartContractStateResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use QuerySmartContractStateResponse.newBuilder() to construct.
private QuerySmartContractStateResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QuerySmartContractStateResponse() {
data_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QuerySmartContractStateResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QuerySmartContractStateResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
data_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
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 cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QuerySmartContractStateResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QuerySmartContractStateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse.class, cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse.Builder.class);
}
public static final int DATA_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString data_;
/**
*
* Data contains the json data returned from the smart contract
*
*
* bytes data = 1 [(.gogoproto.casttype) = "RawContractMessage"];
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
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 (!data_.isEmpty()) {
output.writeBytes(1, data_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, data_);
}
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 cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse)) {
return super.equals(obj);
}
cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse other = (cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse) obj;
if (!getData()
.equals(other.getData())) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse 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 cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse 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 cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse 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(cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse 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;
}
/**
*
* QuerySmartContractStateResponse is the response type for the
* Query/SmartContractState RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QuerySmartContractStateResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1.QuerySmartContractStateResponse)
cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QuerySmartContractStateResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QuerySmartContractStateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse.class, cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse.Builder.class);
}
// Construct using cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse.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();
data_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QuerySmartContractStateResponse_descriptor;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse getDefaultInstanceForType() {
return cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse.getDefaultInstance();
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse build() {
cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse buildPartial() {
cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse result = new cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse(this);
result.data_ = data_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse) {
return mergeFrom((cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse other) {
if (other == cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse.getDefaultInstance()) return this;
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
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 {
cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Data contains the json data returned from the smart contract
*
*
* bytes data = 1 [(.gogoproto.casttype) = "RawContractMessage"];
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
*
* Data contains the json data returned from the smart contract
*
*
* bytes data = 1 [(.gogoproto.casttype) = "RawContractMessage"];
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
*
* Data contains the json data returned from the smart contract
*
*
* bytes data = 1 [(.gogoproto.casttype) = "RawContractMessage"];
* @return This builder for chaining.
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1.QuerySmartContractStateResponse)
}
// @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1.QuerySmartContractStateResponse)
private static final cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse();
}
public static cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QuerySmartContractStateResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QuerySmartContractStateResponse(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 cosmwasm.wasm.v1.QueryOuterClass.QuerySmartContractStateResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryCodeRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1.QueryCodeRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* grpc-gateway_out does not support Go style CodID
*
*
* uint64 code_id = 1;
* @return The codeId.
*/
long getCodeId();
}
/**
*
* QueryCodeRequest is the request type for the Query/Code RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryCodeRequest}
*/
public static final class QueryCodeRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1.QueryCodeRequest)
QueryCodeRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryCodeRequest.newBuilder() to construct.
private QueryCodeRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryCodeRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryCodeRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryCodeRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
codeId_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownField(
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 cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryCodeRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryCodeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest.class, cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest.Builder.class);
}
public static final int CODE_ID_FIELD_NUMBER = 1;
private long codeId_;
/**
*
* grpc-gateway_out does not support Go style CodID
*
*
* uint64 code_id = 1;
* @return The codeId.
*/
@java.lang.Override
public long getCodeId() {
return codeId_;
}
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 (codeId_ != 0L) {
output.writeUInt64(1, codeId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (codeId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, codeId_);
}
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 cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest)) {
return super.equals(obj);
}
cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest other = (cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest) obj;
if (getCodeId()
!= other.getCodeId()) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + CODE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCodeId());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest 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 cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest 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 cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest 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(cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest 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;
}
/**
*
* QueryCodeRequest is the request type for the Query/Code RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryCodeRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1.QueryCodeRequest)
cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryCodeRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryCodeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest.class, cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest.Builder.class);
}
// Construct using cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest.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();
codeId_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryCodeRequest_descriptor;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest getDefaultInstanceForType() {
return cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest.getDefaultInstance();
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest build() {
cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest buildPartial() {
cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest result = new cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest(this);
result.codeId_ = codeId_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest) {
return mergeFrom((cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest other) {
if (other == cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest.getDefaultInstance()) return this;
if (other.getCodeId() != 0L) {
setCodeId(other.getCodeId());
}
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 {
cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long codeId_ ;
/**
*
* grpc-gateway_out does not support Go style CodID
*
*
* uint64 code_id = 1;
* @return The codeId.
*/
@java.lang.Override
public long getCodeId() {
return codeId_;
}
/**
*
* grpc-gateway_out does not support Go style CodID
*
*
* uint64 code_id = 1;
* @param value The codeId to set.
* @return This builder for chaining.
*/
public Builder setCodeId(long value) {
codeId_ = value;
onChanged();
return this;
}
/**
*
* grpc-gateway_out does not support Go style CodID
*
*
* uint64 code_id = 1;
* @return This builder for chaining.
*/
public Builder clearCodeId() {
codeId_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1.QueryCodeRequest)
}
// @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1.QueryCodeRequest)
private static final cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest();
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryCodeRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryCodeRequest(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 cosmwasm.wasm.v1.QueryOuterClass.QueryCodeRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CodeInfoResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1.CodeInfoResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* id for legacy support
*
*
* uint64 code_id = 1 [(.gogoproto.customname) = "CodeID", (.gogoproto.jsontag) = "id"];
* @return The codeId.
*/
long getCodeId();
/**
* string creator = 2;
* @return The creator.
*/
java.lang.String getCreator();
/**
* string creator = 2;
* @return The bytes for creator.
*/
com.google.protobuf.ByteString
getCreatorBytes();
/**
* bytes data_hash = 3 [(.gogoproto.casttype) = "github.com/tendermint/tendermint/libs/bytes.HexBytes"];
* @return The dataHash.
*/
com.google.protobuf.ByteString getDataHash();
/**
* .cosmwasm.wasm.v1.AccessConfig instantiate_permission = 6 [(.gogoproto.nullable) = false];
* @return Whether the instantiatePermission field is set.
*/
boolean hasInstantiatePermission();
/**
* .cosmwasm.wasm.v1.AccessConfig instantiate_permission = 6 [(.gogoproto.nullable) = false];
* @return The instantiatePermission.
*/
cosmwasm.wasm.v1.Types.AccessConfig getInstantiatePermission();
/**
* .cosmwasm.wasm.v1.AccessConfig instantiate_permission = 6 [(.gogoproto.nullable) = false];
*/
cosmwasm.wasm.v1.Types.AccessConfigOrBuilder getInstantiatePermissionOrBuilder();
}
/**
*
* CodeInfoResponse contains code meta data from CodeInfo
*
*
* Protobuf type {@code cosmwasm.wasm.v1.CodeInfoResponse}
*/
public static final class CodeInfoResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1.CodeInfoResponse)
CodeInfoResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CodeInfoResponse.newBuilder() to construct.
private CodeInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CodeInfoResponse() {
creator_ = "";
dataHash_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CodeInfoResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CodeInfoResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
codeId_ = input.readUInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
creator_ = s;
break;
}
case 26: {
dataHash_ = input.readBytes();
break;
}
case 50: {
cosmwasm.wasm.v1.Types.AccessConfig.Builder subBuilder = null;
if (instantiatePermission_ != null) {
subBuilder = instantiatePermission_.toBuilder();
}
instantiatePermission_ = input.readMessage(cosmwasm.wasm.v1.Types.AccessConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(instantiatePermission_);
instantiatePermission_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
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 cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_CodeInfoResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_CodeInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.class, cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.Builder.class);
}
public static final int CODE_ID_FIELD_NUMBER = 1;
private long codeId_;
/**
*
* id for legacy support
*
*
* uint64 code_id = 1 [(.gogoproto.customname) = "CodeID", (.gogoproto.jsontag) = "id"];
* @return The codeId.
*/
@java.lang.Override
public long getCodeId() {
return codeId_;
}
public static final int CREATOR_FIELD_NUMBER = 2;
private volatile java.lang.Object creator_;
/**
* string creator = 2;
* @return The creator.
*/
@java.lang.Override
public java.lang.String getCreator() {
java.lang.Object ref = creator_;
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();
creator_ = s;
return s;
}
}
/**
* string creator = 2;
* @return The bytes for creator.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCreatorBytes() {
java.lang.Object ref = creator_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
creator_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATA_HASH_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString dataHash_;
/**
* bytes data_hash = 3 [(.gogoproto.casttype) = "github.com/tendermint/tendermint/libs/bytes.HexBytes"];
* @return The dataHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDataHash() {
return dataHash_;
}
public static final int INSTANTIATE_PERMISSION_FIELD_NUMBER = 6;
private cosmwasm.wasm.v1.Types.AccessConfig instantiatePermission_;
/**
* .cosmwasm.wasm.v1.AccessConfig instantiate_permission = 6 [(.gogoproto.nullable) = false];
* @return Whether the instantiatePermission field is set.
*/
@java.lang.Override
public boolean hasInstantiatePermission() {
return instantiatePermission_ != null;
}
/**
* .cosmwasm.wasm.v1.AccessConfig instantiate_permission = 6 [(.gogoproto.nullable) = false];
* @return The instantiatePermission.
*/
@java.lang.Override
public cosmwasm.wasm.v1.Types.AccessConfig getInstantiatePermission() {
return instantiatePermission_ == null ? cosmwasm.wasm.v1.Types.AccessConfig.getDefaultInstance() : instantiatePermission_;
}
/**
* .cosmwasm.wasm.v1.AccessConfig instantiate_permission = 6 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public cosmwasm.wasm.v1.Types.AccessConfigOrBuilder getInstantiatePermissionOrBuilder() {
return getInstantiatePermission();
}
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 (codeId_ != 0L) {
output.writeUInt64(1, codeId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, creator_);
}
if (!dataHash_.isEmpty()) {
output.writeBytes(3, dataHash_);
}
if (instantiatePermission_ != null) {
output.writeMessage(6, getInstantiatePermission());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (codeId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, codeId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, creator_);
}
if (!dataHash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, dataHash_);
}
if (instantiatePermission_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getInstantiatePermission());
}
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 cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse)) {
return super.equals(obj);
}
cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse other = (cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse) obj;
if (getCodeId()
!= other.getCodeId()) return false;
if (!getCreator()
.equals(other.getCreator())) return false;
if (!getDataHash()
.equals(other.getDataHash())) return false;
if (hasInstantiatePermission() != other.hasInstantiatePermission()) return false;
if (hasInstantiatePermission()) {
if (!getInstantiatePermission()
.equals(other.getInstantiatePermission())) return false;
}
if (!unknownFields.equals(other.unknownFields)) 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) + CODE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCodeId());
hash = (37 * hash) + CREATOR_FIELD_NUMBER;
hash = (53 * hash) + getCreator().hashCode();
hash = (37 * hash) + DATA_HASH_FIELD_NUMBER;
hash = (53 * hash) + getDataHash().hashCode();
if (hasInstantiatePermission()) {
hash = (37 * hash) + INSTANTIATE_PERMISSION_FIELD_NUMBER;
hash = (53 * hash) + getInstantiatePermission().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse 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 cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse 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 cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse 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(cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse 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;
}
/**
*
* CodeInfoResponse contains code meta data from CodeInfo
*
*
* Protobuf type {@code cosmwasm.wasm.v1.CodeInfoResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1.CodeInfoResponse)
cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_CodeInfoResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_CodeInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.class, cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.Builder.class);
}
// Construct using cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.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();
codeId_ = 0L;
creator_ = "";
dataHash_ = com.google.protobuf.ByteString.EMPTY;
if (instantiatePermissionBuilder_ == null) {
instantiatePermission_ = null;
} else {
instantiatePermission_ = null;
instantiatePermissionBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_CodeInfoResponse_descriptor;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse getDefaultInstanceForType() {
return cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.getDefaultInstance();
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse build() {
cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse buildPartial() {
cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse result = new cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse(this);
result.codeId_ = codeId_;
result.creator_ = creator_;
result.dataHash_ = dataHash_;
if (instantiatePermissionBuilder_ == null) {
result.instantiatePermission_ = instantiatePermission_;
} else {
result.instantiatePermission_ = instantiatePermissionBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse) {
return mergeFrom((cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse other) {
if (other == cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.getDefaultInstance()) return this;
if (other.getCodeId() != 0L) {
setCodeId(other.getCodeId());
}
if (!other.getCreator().isEmpty()) {
creator_ = other.creator_;
onChanged();
}
if (other.getDataHash() != com.google.protobuf.ByteString.EMPTY) {
setDataHash(other.getDataHash());
}
if (other.hasInstantiatePermission()) {
mergeInstantiatePermission(other.getInstantiatePermission());
}
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 {
cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long codeId_ ;
/**
*
* id for legacy support
*
*
* uint64 code_id = 1 [(.gogoproto.customname) = "CodeID", (.gogoproto.jsontag) = "id"];
* @return The codeId.
*/
@java.lang.Override
public long getCodeId() {
return codeId_;
}
/**
*
* id for legacy support
*
*
* uint64 code_id = 1 [(.gogoproto.customname) = "CodeID", (.gogoproto.jsontag) = "id"];
* @param value The codeId to set.
* @return This builder for chaining.
*/
public Builder setCodeId(long value) {
codeId_ = value;
onChanged();
return this;
}
/**
*
* id for legacy support
*
*
* uint64 code_id = 1 [(.gogoproto.customname) = "CodeID", (.gogoproto.jsontag) = "id"];
* @return This builder for chaining.
*/
public Builder clearCodeId() {
codeId_ = 0L;
onChanged();
return this;
}
private java.lang.Object creator_ = "";
/**
* string creator = 2;
* @return The creator.
*/
public java.lang.String getCreator() {
java.lang.Object ref = creator_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
creator_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string creator = 2;
* @return The bytes for creator.
*/
public com.google.protobuf.ByteString
getCreatorBytes() {
java.lang.Object ref = creator_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
creator_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string creator = 2;
* @param value The creator to set.
* @return This builder for chaining.
*/
public Builder setCreator(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
creator_ = value;
onChanged();
return this;
}
/**
* string creator = 2;
* @return This builder for chaining.
*/
public Builder clearCreator() {
creator_ = getDefaultInstance().getCreator();
onChanged();
return this;
}
/**
* string creator = 2;
* @param value The bytes for creator to set.
* @return This builder for chaining.
*/
public Builder setCreatorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
creator_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString dataHash_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes data_hash = 3 [(.gogoproto.casttype) = "github.com/tendermint/tendermint/libs/bytes.HexBytes"];
* @return The dataHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDataHash() {
return dataHash_;
}
/**
* bytes data_hash = 3 [(.gogoproto.casttype) = "github.com/tendermint/tendermint/libs/bytes.HexBytes"];
* @param value The dataHash to set.
* @return This builder for chaining.
*/
public Builder setDataHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
dataHash_ = value;
onChanged();
return this;
}
/**
* bytes data_hash = 3 [(.gogoproto.casttype) = "github.com/tendermint/tendermint/libs/bytes.HexBytes"];
* @return This builder for chaining.
*/
public Builder clearDataHash() {
dataHash_ = getDefaultInstance().getDataHash();
onChanged();
return this;
}
private cosmwasm.wasm.v1.Types.AccessConfig instantiatePermission_;
private com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1.Types.AccessConfig, cosmwasm.wasm.v1.Types.AccessConfig.Builder, cosmwasm.wasm.v1.Types.AccessConfigOrBuilder> instantiatePermissionBuilder_;
/**
* .cosmwasm.wasm.v1.AccessConfig instantiate_permission = 6 [(.gogoproto.nullable) = false];
* @return Whether the instantiatePermission field is set.
*/
public boolean hasInstantiatePermission() {
return instantiatePermissionBuilder_ != null || instantiatePermission_ != null;
}
/**
* .cosmwasm.wasm.v1.AccessConfig instantiate_permission = 6 [(.gogoproto.nullable) = false];
* @return The instantiatePermission.
*/
public cosmwasm.wasm.v1.Types.AccessConfig getInstantiatePermission() {
if (instantiatePermissionBuilder_ == null) {
return instantiatePermission_ == null ? cosmwasm.wasm.v1.Types.AccessConfig.getDefaultInstance() : instantiatePermission_;
} else {
return instantiatePermissionBuilder_.getMessage();
}
}
/**
* .cosmwasm.wasm.v1.AccessConfig instantiate_permission = 6 [(.gogoproto.nullable) = false];
*/
public Builder setInstantiatePermission(cosmwasm.wasm.v1.Types.AccessConfig value) {
if (instantiatePermissionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
instantiatePermission_ = value;
onChanged();
} else {
instantiatePermissionBuilder_.setMessage(value);
}
return this;
}
/**
* .cosmwasm.wasm.v1.AccessConfig instantiate_permission = 6 [(.gogoproto.nullable) = false];
*/
public Builder setInstantiatePermission(
cosmwasm.wasm.v1.Types.AccessConfig.Builder builderForValue) {
if (instantiatePermissionBuilder_ == null) {
instantiatePermission_ = builderForValue.build();
onChanged();
} else {
instantiatePermissionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cosmwasm.wasm.v1.AccessConfig instantiate_permission = 6 [(.gogoproto.nullable) = false];
*/
public Builder mergeInstantiatePermission(cosmwasm.wasm.v1.Types.AccessConfig value) {
if (instantiatePermissionBuilder_ == null) {
if (instantiatePermission_ != null) {
instantiatePermission_ =
cosmwasm.wasm.v1.Types.AccessConfig.newBuilder(instantiatePermission_).mergeFrom(value).buildPartial();
} else {
instantiatePermission_ = value;
}
onChanged();
} else {
instantiatePermissionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cosmwasm.wasm.v1.AccessConfig instantiate_permission = 6 [(.gogoproto.nullable) = false];
*/
public Builder clearInstantiatePermission() {
if (instantiatePermissionBuilder_ == null) {
instantiatePermission_ = null;
onChanged();
} else {
instantiatePermission_ = null;
instantiatePermissionBuilder_ = null;
}
return this;
}
/**
* .cosmwasm.wasm.v1.AccessConfig instantiate_permission = 6 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1.Types.AccessConfig.Builder getInstantiatePermissionBuilder() {
onChanged();
return getInstantiatePermissionFieldBuilder().getBuilder();
}
/**
* .cosmwasm.wasm.v1.AccessConfig instantiate_permission = 6 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1.Types.AccessConfigOrBuilder getInstantiatePermissionOrBuilder() {
if (instantiatePermissionBuilder_ != null) {
return instantiatePermissionBuilder_.getMessageOrBuilder();
} else {
return instantiatePermission_ == null ?
cosmwasm.wasm.v1.Types.AccessConfig.getDefaultInstance() : instantiatePermission_;
}
}
/**
* .cosmwasm.wasm.v1.AccessConfig instantiate_permission = 6 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1.Types.AccessConfig, cosmwasm.wasm.v1.Types.AccessConfig.Builder, cosmwasm.wasm.v1.Types.AccessConfigOrBuilder>
getInstantiatePermissionFieldBuilder() {
if (instantiatePermissionBuilder_ == null) {
instantiatePermissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1.Types.AccessConfig, cosmwasm.wasm.v1.Types.AccessConfig.Builder, cosmwasm.wasm.v1.Types.AccessConfigOrBuilder>(
getInstantiatePermission(),
getParentForChildren(),
isClean());
instantiatePermission_ = null;
}
return instantiatePermissionBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1.CodeInfoResponse)
}
// @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1.CodeInfoResponse)
private static final cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse();
}
public static cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CodeInfoResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CodeInfoResponse(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 cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryCodeResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1.QueryCodeResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .cosmwasm.wasm.v1.CodeInfoResponse code_info = 1 [(.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
* @return Whether the codeInfo field is set.
*/
boolean hasCodeInfo();
/**
* .cosmwasm.wasm.v1.CodeInfoResponse code_info = 1 [(.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
* @return The codeInfo.
*/
cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse getCodeInfo();
/**
* .cosmwasm.wasm.v1.CodeInfoResponse code_info = 1 [(.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
*/
cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponseOrBuilder getCodeInfoOrBuilder();
/**
* bytes data = 2 [(.gogoproto.jsontag) = "data"];
* @return The data.
*/
com.google.protobuf.ByteString getData();
}
/**
*
* QueryCodeResponse is the response type for the Query/Code RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryCodeResponse}
*/
public static final class QueryCodeResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1.QueryCodeResponse)
QueryCodeResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryCodeResponse.newBuilder() to construct.
private QueryCodeResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryCodeResponse() {
data_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryCodeResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryCodeResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.Builder subBuilder = null;
if (codeInfo_ != null) {
subBuilder = codeInfo_.toBuilder();
}
codeInfo_ = input.readMessage(cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(codeInfo_);
codeInfo_ = subBuilder.buildPartial();
}
break;
}
case 18: {
data_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
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 cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryCodeResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryCodeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse.class, cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse.Builder.class);
}
public static final int CODE_INFO_FIELD_NUMBER = 1;
private cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse codeInfo_;
/**
* .cosmwasm.wasm.v1.CodeInfoResponse code_info = 1 [(.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
* @return Whether the codeInfo field is set.
*/
@java.lang.Override
public boolean hasCodeInfo() {
return codeInfo_ != null;
}
/**
* .cosmwasm.wasm.v1.CodeInfoResponse code_info = 1 [(.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
* @return The codeInfo.
*/
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse getCodeInfo() {
return codeInfo_ == null ? cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.getDefaultInstance() : codeInfo_;
}
/**
* .cosmwasm.wasm.v1.CodeInfoResponse code_info = 1 [(.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
*/
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponseOrBuilder getCodeInfoOrBuilder() {
return getCodeInfo();
}
public static final int DATA_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString data_;
/**
* bytes data = 2 [(.gogoproto.jsontag) = "data"];
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
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 (codeInfo_ != null) {
output.writeMessage(1, getCodeInfo());
}
if (!data_.isEmpty()) {
output.writeBytes(2, data_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (codeInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCodeInfo());
}
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, data_);
}
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 cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse)) {
return super.equals(obj);
}
cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse other = (cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse) obj;
if (hasCodeInfo() != other.hasCodeInfo()) return false;
if (hasCodeInfo()) {
if (!getCodeInfo()
.equals(other.getCodeInfo())) return false;
}
if (!getData()
.equals(other.getData())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasCodeInfo()) {
hash = (37 * hash) + CODE_INFO_FIELD_NUMBER;
hash = (53 * hash) + getCodeInfo().hashCode();
}
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse 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 cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse 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 cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse 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(cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse 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;
}
/**
*
* QueryCodeResponse is the response type for the Query/Code RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryCodeResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1.QueryCodeResponse)
cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryCodeResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryCodeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse.class, cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse.Builder.class);
}
// Construct using cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse.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();
if (codeInfoBuilder_ == null) {
codeInfo_ = null;
} else {
codeInfo_ = null;
codeInfoBuilder_ = null;
}
data_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryCodeResponse_descriptor;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse getDefaultInstanceForType() {
return cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse.getDefaultInstance();
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse build() {
cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse buildPartial() {
cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse result = new cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse(this);
if (codeInfoBuilder_ == null) {
result.codeInfo_ = codeInfo_;
} else {
result.codeInfo_ = codeInfoBuilder_.build();
}
result.data_ = data_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse) {
return mergeFrom((cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse other) {
if (other == cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse.getDefaultInstance()) return this;
if (other.hasCodeInfo()) {
mergeCodeInfo(other.getCodeInfo());
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
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 {
cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse codeInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse, cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.Builder, cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponseOrBuilder> codeInfoBuilder_;
/**
* .cosmwasm.wasm.v1.CodeInfoResponse code_info = 1 [(.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
* @return Whether the codeInfo field is set.
*/
public boolean hasCodeInfo() {
return codeInfoBuilder_ != null || codeInfo_ != null;
}
/**
* .cosmwasm.wasm.v1.CodeInfoResponse code_info = 1 [(.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
* @return The codeInfo.
*/
public cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse getCodeInfo() {
if (codeInfoBuilder_ == null) {
return codeInfo_ == null ? cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.getDefaultInstance() : codeInfo_;
} else {
return codeInfoBuilder_.getMessage();
}
}
/**
* .cosmwasm.wasm.v1.CodeInfoResponse code_info = 1 [(.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
*/
public Builder setCodeInfo(cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse value) {
if (codeInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
codeInfo_ = value;
onChanged();
} else {
codeInfoBuilder_.setMessage(value);
}
return this;
}
/**
* .cosmwasm.wasm.v1.CodeInfoResponse code_info = 1 [(.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
*/
public Builder setCodeInfo(
cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.Builder builderForValue) {
if (codeInfoBuilder_ == null) {
codeInfo_ = builderForValue.build();
onChanged();
} else {
codeInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cosmwasm.wasm.v1.CodeInfoResponse code_info = 1 [(.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
*/
public Builder mergeCodeInfo(cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse value) {
if (codeInfoBuilder_ == null) {
if (codeInfo_ != null) {
codeInfo_ =
cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.newBuilder(codeInfo_).mergeFrom(value).buildPartial();
} else {
codeInfo_ = value;
}
onChanged();
} else {
codeInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cosmwasm.wasm.v1.CodeInfoResponse code_info = 1 [(.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
*/
public Builder clearCodeInfo() {
if (codeInfoBuilder_ == null) {
codeInfo_ = null;
onChanged();
} else {
codeInfo_ = null;
codeInfoBuilder_ = null;
}
return this;
}
/**
* .cosmwasm.wasm.v1.CodeInfoResponse code_info = 1 [(.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
*/
public cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.Builder getCodeInfoBuilder() {
onChanged();
return getCodeInfoFieldBuilder().getBuilder();
}
/**
* .cosmwasm.wasm.v1.CodeInfoResponse code_info = 1 [(.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
*/
public cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponseOrBuilder getCodeInfoOrBuilder() {
if (codeInfoBuilder_ != null) {
return codeInfoBuilder_.getMessageOrBuilder();
} else {
return codeInfo_ == null ?
cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.getDefaultInstance() : codeInfo_;
}
}
/**
* .cosmwasm.wasm.v1.CodeInfoResponse code_info = 1 [(.gogoproto.embed) = true, (.gogoproto.jsontag) = ""];
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse, cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.Builder, cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponseOrBuilder>
getCodeInfoFieldBuilder() {
if (codeInfoBuilder_ == null) {
codeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse, cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.Builder, cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponseOrBuilder>(
getCodeInfo(),
getParentForChildren(),
isClean());
codeInfo_ = null;
}
return codeInfoBuilder_;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes data = 2 [(.gogoproto.jsontag) = "data"];
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* bytes data = 2 [(.gogoproto.jsontag) = "data"];
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
* bytes data = 2 [(.gogoproto.jsontag) = "data"];
* @return This builder for chaining.
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1.QueryCodeResponse)
}
// @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1.QueryCodeResponse)
private static final cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse();
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryCodeResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryCodeResponse(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 cosmwasm.wasm.v1.QueryOuterClass.QueryCodeResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryCodesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1.QueryCodesRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
* @return Whether the pagination field is set.
*/
boolean hasPagination();
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
* @return The pagination.
*/
cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
*/
cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();
}
/**
*
* QueryCodesRequest is the request type for the Query/Codes RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryCodesRequest}
*/
public static final class QueryCodesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1.QueryCodesRequest)
QueryCodesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryCodesRequest.newBuilder() to construct.
private QueryCodesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryCodesRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryCodesRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryCodesRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
cosmos.base.query.v1beta1.Pagination.PageRequest.Builder subBuilder = null;
if (pagination_ != null) {
subBuilder = pagination_.toBuilder();
}
pagination_ = input.readMessage(cosmos.base.query.v1beta1.Pagination.PageRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pagination_);
pagination_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
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 cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryCodesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryCodesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest.class, cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest.Builder.class);
}
public static final int PAGINATION_FIELD_NUMBER = 1;
private cosmos.base.query.v1beta1.Pagination.PageRequest pagination_;
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
* @return Whether the pagination field is set.
*/
@java.lang.Override
public boolean hasPagination() {
return pagination_ != null;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
* @return The pagination.
*/
@java.lang.Override
public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {
return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
*/
@java.lang.Override
public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {
return getPagination();
}
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 (pagination_ != null) {
output.writeMessage(1, getPagination());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (pagination_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getPagination());
}
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 cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest)) {
return super.equals(obj);
}
cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest other = (cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest) obj;
if (hasPagination() != other.hasPagination()) return false;
if (hasPagination()) {
if (!getPagination()
.equals(other.getPagination())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasPagination()) {
hash = (37 * hash) + PAGINATION_FIELD_NUMBER;
hash = (53 * hash) + getPagination().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest 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 cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest 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 cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest 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(cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest 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;
}
/**
*
* QueryCodesRequest is the request type for the Query/Codes RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryCodesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1.QueryCodesRequest)
cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryCodesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryCodesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest.class, cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest.Builder.class);
}
// Construct using cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest.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();
if (paginationBuilder_ == null) {
pagination_ = null;
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryCodesRequest_descriptor;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest getDefaultInstanceForType() {
return cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest.getDefaultInstance();
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest build() {
cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest buildPartial() {
cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest result = new cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest(this);
if (paginationBuilder_ == null) {
result.pagination_ = pagination_;
} else {
result.pagination_ = paginationBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest) {
return mergeFrom((cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest other) {
if (other == cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest.getDefaultInstance()) return this;
if (other.hasPagination()) {
mergePagination(other.getPagination());
}
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 {
cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private cosmos.base.query.v1beta1.Pagination.PageRequest pagination_;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> paginationBuilder_;
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
* @return Whether the pagination field is set.
*/
public boolean hasPagination() {
return paginationBuilder_ != null || pagination_ != null;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
* @return The pagination.
*/
public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {
if (paginationBuilder_ == null) {
return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;
} else {
return paginationBuilder_.getMessage();
}
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
*/
public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {
if (paginationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pagination_ = value;
onChanged();
} else {
paginationBuilder_.setMessage(value);
}
return this;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
*/
public Builder setPagination(
cosmos.base.query.v1beta1.Pagination.PageRequest.Builder builderForValue) {
if (paginationBuilder_ == null) {
pagination_ = builderForValue.build();
onChanged();
} else {
paginationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
*/
public Builder mergePagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {
if (paginationBuilder_ == null) {
if (pagination_ != null) {
pagination_ =
cosmos.base.query.v1beta1.Pagination.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial();
} else {
pagination_ = value;
}
onChanged();
} else {
paginationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
*/
public Builder clearPagination() {
if (paginationBuilder_ == null) {
pagination_ = null;
onChanged();
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
*/
public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {
onChanged();
return getPaginationFieldBuilder().getBuilder();
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
*/
public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {
if (paginationBuilder_ != null) {
return paginationBuilder_.getMessageOrBuilder();
} else {
return pagination_ == null ?
cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;
}
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>
getPaginationFieldBuilder() {
if (paginationBuilder_ == null) {
paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(
getPagination(),
getParentForChildren(),
isClean());
pagination_ = null;
}
return paginationBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1.QueryCodesRequest)
}
// @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1.QueryCodesRequest)
private static final cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest();
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryCodesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryCodesRequest(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 cosmwasm.wasm.v1.QueryOuterClass.QueryCodesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryCodesResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1.QueryCodesResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
java.util.List
getCodeInfosList();
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse getCodeInfos(int index);
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
int getCodeInfosCount();
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
java.util.List extends cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponseOrBuilder>
getCodeInfosOrBuilderList();
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponseOrBuilder getCodeInfosOrBuilder(
int index);
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return Whether the pagination field is set.
*/
boolean hasPagination();
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return The pagination.
*/
cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();
}
/**
*
* QueryCodesResponse is the response type for the Query/Codes RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryCodesResponse}
*/
public static final class QueryCodesResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1.QueryCodesResponse)
QueryCodesResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryCodesResponse.newBuilder() to construct.
private QueryCodesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryCodesResponse() {
codeInfos_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryCodesResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryCodesResponse(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
codeInfos_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
codeInfos_.add(
input.readMessage(cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.parser(), extensionRegistry));
break;
}
case 18: {
cosmos.base.query.v1beta1.Pagination.PageResponse.Builder subBuilder = null;
if (pagination_ != null) {
subBuilder = pagination_.toBuilder();
}
pagination_ = input.readMessage(cosmos.base.query.v1beta1.Pagination.PageResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pagination_);
pagination_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
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_ & 0x00000001) != 0)) {
codeInfos_ = java.util.Collections.unmodifiableList(codeInfos_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryCodesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryCodesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse.class, cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse.Builder.class);
}
public static final int CODE_INFOS_FIELD_NUMBER = 1;
private java.util.List codeInfos_;
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public java.util.List getCodeInfosList() {
return codeInfos_;
}
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public java.util.List extends cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponseOrBuilder>
getCodeInfosOrBuilderList() {
return codeInfos_;
}
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public int getCodeInfosCount() {
return codeInfos_.size();
}
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse getCodeInfos(int index) {
return codeInfos_.get(index);
}
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponseOrBuilder getCodeInfosOrBuilder(
int index) {
return codeInfos_.get(index);
}
public static final int PAGINATION_FIELD_NUMBER = 2;
private cosmos.base.query.v1beta1.Pagination.PageResponse pagination_;
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return Whether the pagination field is set.
*/
@java.lang.Override
public boolean hasPagination() {
return pagination_ != null;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return The pagination.
*/
@java.lang.Override
public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {
return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
@java.lang.Override
public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {
return getPagination();
}
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 {
for (int i = 0; i < codeInfos_.size(); i++) {
output.writeMessage(1, codeInfos_.get(i));
}
if (pagination_ != null) {
output.writeMessage(2, getPagination());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < codeInfos_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, codeInfos_.get(i));
}
if (pagination_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPagination());
}
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 cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse)) {
return super.equals(obj);
}
cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse other = (cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse) obj;
if (!getCodeInfosList()
.equals(other.getCodeInfosList())) return false;
if (hasPagination() != other.hasPagination()) return false;
if (hasPagination()) {
if (!getPagination()
.equals(other.getPagination())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getCodeInfosCount() > 0) {
hash = (37 * hash) + CODE_INFOS_FIELD_NUMBER;
hash = (53 * hash) + getCodeInfosList().hashCode();
}
if (hasPagination()) {
hash = (37 * hash) + PAGINATION_FIELD_NUMBER;
hash = (53 * hash) + getPagination().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse 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 cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse 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 cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse 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(cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse 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;
}
/**
*
* QueryCodesResponse is the response type for the Query/Codes RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryCodesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1.QueryCodesResponse)
cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryCodesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryCodesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse.class, cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse.Builder.class);
}
// Construct using cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCodeInfosFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (codeInfosBuilder_ == null) {
codeInfos_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
codeInfosBuilder_.clear();
}
if (paginationBuilder_ == null) {
pagination_ = null;
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryCodesResponse_descriptor;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse getDefaultInstanceForType() {
return cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse.getDefaultInstance();
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse build() {
cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse buildPartial() {
cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse result = new cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse(this);
int from_bitField0_ = bitField0_;
if (codeInfosBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
codeInfos_ = java.util.Collections.unmodifiableList(codeInfos_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.codeInfos_ = codeInfos_;
} else {
result.codeInfos_ = codeInfosBuilder_.build();
}
if (paginationBuilder_ == null) {
result.pagination_ = pagination_;
} else {
result.pagination_ = paginationBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse) {
return mergeFrom((cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse other) {
if (other == cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse.getDefaultInstance()) return this;
if (codeInfosBuilder_ == null) {
if (!other.codeInfos_.isEmpty()) {
if (codeInfos_.isEmpty()) {
codeInfos_ = other.codeInfos_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCodeInfosIsMutable();
codeInfos_.addAll(other.codeInfos_);
}
onChanged();
}
} else {
if (!other.codeInfos_.isEmpty()) {
if (codeInfosBuilder_.isEmpty()) {
codeInfosBuilder_.dispose();
codeInfosBuilder_ = null;
codeInfos_ = other.codeInfos_;
bitField0_ = (bitField0_ & ~0x00000001);
codeInfosBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCodeInfosFieldBuilder() : null;
} else {
codeInfosBuilder_.addAllMessages(other.codeInfos_);
}
}
}
if (other.hasPagination()) {
mergePagination(other.getPagination());
}
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 {
cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List codeInfos_ =
java.util.Collections.emptyList();
private void ensureCodeInfosIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
codeInfos_ = new java.util.ArrayList(codeInfos_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse, cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.Builder, cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponseOrBuilder> codeInfosBuilder_;
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
public java.util.List getCodeInfosList() {
if (codeInfosBuilder_ == null) {
return java.util.Collections.unmodifiableList(codeInfos_);
} else {
return codeInfosBuilder_.getMessageList();
}
}
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
public int getCodeInfosCount() {
if (codeInfosBuilder_ == null) {
return codeInfos_.size();
} else {
return codeInfosBuilder_.getCount();
}
}
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse getCodeInfos(int index) {
if (codeInfosBuilder_ == null) {
return codeInfos_.get(index);
} else {
return codeInfosBuilder_.getMessage(index);
}
}
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
public Builder setCodeInfos(
int index, cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse value) {
if (codeInfosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCodeInfosIsMutable();
codeInfos_.set(index, value);
onChanged();
} else {
codeInfosBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
public Builder setCodeInfos(
int index, cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.Builder builderForValue) {
if (codeInfosBuilder_ == null) {
ensureCodeInfosIsMutable();
codeInfos_.set(index, builderForValue.build());
onChanged();
} else {
codeInfosBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
public Builder addCodeInfos(cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse value) {
if (codeInfosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCodeInfosIsMutable();
codeInfos_.add(value);
onChanged();
} else {
codeInfosBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
public Builder addCodeInfos(
int index, cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse value) {
if (codeInfosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCodeInfosIsMutable();
codeInfos_.add(index, value);
onChanged();
} else {
codeInfosBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
public Builder addCodeInfos(
cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.Builder builderForValue) {
if (codeInfosBuilder_ == null) {
ensureCodeInfosIsMutable();
codeInfos_.add(builderForValue.build());
onChanged();
} else {
codeInfosBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
public Builder addCodeInfos(
int index, cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.Builder builderForValue) {
if (codeInfosBuilder_ == null) {
ensureCodeInfosIsMutable();
codeInfos_.add(index, builderForValue.build());
onChanged();
} else {
codeInfosBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
public Builder addAllCodeInfos(
java.lang.Iterable extends cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse> values) {
if (codeInfosBuilder_ == null) {
ensureCodeInfosIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, codeInfos_);
onChanged();
} else {
codeInfosBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
public Builder clearCodeInfos() {
if (codeInfosBuilder_ == null) {
codeInfos_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
codeInfosBuilder_.clear();
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
public Builder removeCodeInfos(int index) {
if (codeInfosBuilder_ == null) {
ensureCodeInfosIsMutable();
codeInfos_.remove(index);
onChanged();
} else {
codeInfosBuilder_.remove(index);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.Builder getCodeInfosBuilder(
int index) {
return getCodeInfosFieldBuilder().getBuilder(index);
}
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponseOrBuilder getCodeInfosOrBuilder(
int index) {
if (codeInfosBuilder_ == null) {
return codeInfos_.get(index); } else {
return codeInfosBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
public java.util.List extends cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponseOrBuilder>
getCodeInfosOrBuilderList() {
if (codeInfosBuilder_ != null) {
return codeInfosBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(codeInfos_);
}
}
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.Builder addCodeInfosBuilder() {
return getCodeInfosFieldBuilder().addBuilder(
cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.getDefaultInstance());
}
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.Builder addCodeInfosBuilder(
int index) {
return getCodeInfosFieldBuilder().addBuilder(
index, cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.getDefaultInstance());
}
/**
* repeated .cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 [(.gogoproto.nullable) = false];
*/
public java.util.List
getCodeInfosBuilderList() {
return getCodeInfosFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse, cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.Builder, cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponseOrBuilder>
getCodeInfosFieldBuilder() {
if (codeInfosBuilder_ == null) {
codeInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse, cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponse.Builder, cosmwasm.wasm.v1.QueryOuterClass.CodeInfoResponseOrBuilder>(
codeInfos_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
codeInfos_ = null;
}
return codeInfosBuilder_;
}
private cosmos.base.query.v1beta1.Pagination.PageResponse pagination_;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageResponse, cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder> paginationBuilder_;
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return Whether the pagination field is set.
*/
public boolean hasPagination() {
return paginationBuilder_ != null || pagination_ != null;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return The pagination.
*/
public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {
if (paginationBuilder_ == null) {
return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;
} else {
return paginationBuilder_.getMessage();
}
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {
if (paginationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pagination_ = value;
onChanged();
} else {
paginationBuilder_.setMessage(value);
}
return this;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder setPagination(
cosmos.base.query.v1beta1.Pagination.PageResponse.Builder builderForValue) {
if (paginationBuilder_ == null) {
pagination_ = builderForValue.build();
onChanged();
} else {
paginationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder mergePagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {
if (paginationBuilder_ == null) {
if (pagination_ != null) {
pagination_ =
cosmos.base.query.v1beta1.Pagination.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial();
} else {
pagination_ = value;
}
onChanged();
} else {
paginationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder clearPagination() {
if (paginationBuilder_ == null) {
pagination_ = null;
onChanged();
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {
onChanged();
return getPaginationFieldBuilder().getBuilder();
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {
if (paginationBuilder_ != null) {
return paginationBuilder_.getMessageOrBuilder();
} else {
return pagination_ == null ?
cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;
}
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageResponse, cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder>
getPaginationFieldBuilder() {
if (paginationBuilder_ == null) {
paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageResponse, cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder>(
getPagination(),
getParentForChildren(),
isClean());
pagination_ = null;
}
return paginationBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1.QueryCodesResponse)
}
// @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1.QueryCodesResponse)
private static final cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse();
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryCodesResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryCodesResponse(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 cosmwasm.wasm.v1.QueryOuterClass.QueryCodesResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryPinnedCodesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1.QueryPinnedCodesRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return Whether the pagination field is set.
*/
boolean hasPagination();
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return The pagination.
*/
cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();
}
/**
*
* QueryPinnedCodesRequest is the request type for the Query/PinnedCodes
* RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryPinnedCodesRequest}
*/
public static final class QueryPinnedCodesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1.QueryPinnedCodesRequest)
QueryPinnedCodesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryPinnedCodesRequest.newBuilder() to construct.
private QueryPinnedCodesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryPinnedCodesRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryPinnedCodesRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryPinnedCodesRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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 18: {
cosmos.base.query.v1beta1.Pagination.PageRequest.Builder subBuilder = null;
if (pagination_ != null) {
subBuilder = pagination_.toBuilder();
}
pagination_ = input.readMessage(cosmos.base.query.v1beta1.Pagination.PageRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pagination_);
pagination_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
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 cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryPinnedCodesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryPinnedCodesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest.class, cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest.Builder.class);
}
public static final int PAGINATION_FIELD_NUMBER = 2;
private cosmos.base.query.v1beta1.Pagination.PageRequest pagination_;
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return Whether the pagination field is set.
*/
@java.lang.Override
public boolean hasPagination() {
return pagination_ != null;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return The pagination.
*/
@java.lang.Override
public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {
return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
@java.lang.Override
public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {
return getPagination();
}
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 (pagination_ != null) {
output.writeMessage(2, getPagination());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (pagination_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPagination());
}
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 cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest)) {
return super.equals(obj);
}
cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest other = (cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest) obj;
if (hasPagination() != other.hasPagination()) return false;
if (hasPagination()) {
if (!getPagination()
.equals(other.getPagination())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasPagination()) {
hash = (37 * hash) + PAGINATION_FIELD_NUMBER;
hash = (53 * hash) + getPagination().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest 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 cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest 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 cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest 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(cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest 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;
}
/**
*
* QueryPinnedCodesRequest is the request type for the Query/PinnedCodes
* RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryPinnedCodesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1.QueryPinnedCodesRequest)
cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryPinnedCodesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryPinnedCodesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest.class, cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest.Builder.class);
}
// Construct using cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest.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();
if (paginationBuilder_ == null) {
pagination_ = null;
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryPinnedCodesRequest_descriptor;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest getDefaultInstanceForType() {
return cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest.getDefaultInstance();
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest build() {
cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest buildPartial() {
cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest result = new cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest(this);
if (paginationBuilder_ == null) {
result.pagination_ = pagination_;
} else {
result.pagination_ = paginationBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest) {
return mergeFrom((cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest other) {
if (other == cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest.getDefaultInstance()) return this;
if (other.hasPagination()) {
mergePagination(other.getPagination());
}
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 {
cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private cosmos.base.query.v1beta1.Pagination.PageRequest pagination_;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> paginationBuilder_;
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return Whether the pagination field is set.
*/
public boolean hasPagination() {
return paginationBuilder_ != null || pagination_ != null;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return The pagination.
*/
public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {
if (paginationBuilder_ == null) {
return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;
} else {
return paginationBuilder_.getMessage();
}
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {
if (paginationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pagination_ = value;
onChanged();
} else {
paginationBuilder_.setMessage(value);
}
return this;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public Builder setPagination(
cosmos.base.query.v1beta1.Pagination.PageRequest.Builder builderForValue) {
if (paginationBuilder_ == null) {
pagination_ = builderForValue.build();
onChanged();
} else {
paginationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public Builder mergePagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {
if (paginationBuilder_ == null) {
if (pagination_ != null) {
pagination_ =
cosmos.base.query.v1beta1.Pagination.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial();
} else {
pagination_ = value;
}
onChanged();
} else {
paginationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public Builder clearPagination() {
if (paginationBuilder_ == null) {
pagination_ = null;
onChanged();
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {
onChanged();
return getPaginationFieldBuilder().getBuilder();
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {
if (paginationBuilder_ != null) {
return paginationBuilder_.getMessageOrBuilder();
} else {
return pagination_ == null ?
cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;
}
}
/**
*
* pagination defines an optional pagination for the request.
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>
getPaginationFieldBuilder() {
if (paginationBuilder_ == null) {
paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(
getPagination(),
getParentForChildren(),
isClean());
pagination_ = null;
}
return paginationBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1.QueryPinnedCodesRequest)
}
// @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1.QueryPinnedCodesRequest)
private static final cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest();
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryPinnedCodesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryPinnedCodesRequest(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 cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryPinnedCodesResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1.QueryPinnedCodesResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated uint64 code_ids = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "CodeIDs"];
* @return A list containing the codeIds.
*/
java.util.List getCodeIdsList();
/**
* repeated uint64 code_ids = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "CodeIDs"];
* @return The count of codeIds.
*/
int getCodeIdsCount();
/**
* repeated uint64 code_ids = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "CodeIDs"];
* @param index The index of the element to return.
* @return The codeIds at the given index.
*/
long getCodeIds(int index);
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return Whether the pagination field is set.
*/
boolean hasPagination();
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return The pagination.
*/
cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();
}
/**
*
* QueryPinnedCodesResponse is the response type for the
* Query/PinnedCodes RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryPinnedCodesResponse}
*/
public static final class QueryPinnedCodesResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1.QueryPinnedCodesResponse)
QueryPinnedCodesResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryPinnedCodesResponse.newBuilder() to construct.
private QueryPinnedCodesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryPinnedCodesResponse() {
codeIds_ = emptyLongList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryPinnedCodesResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryPinnedCodesResponse(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
codeIds_ = newLongList();
mutable_bitField0_ |= 0x00000001;
}
codeIds_.addLong(input.readUInt64());
break;
}
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
codeIds_ = newLongList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
codeIds_.addLong(input.readUInt64());
}
input.popLimit(limit);
break;
}
case 18: {
cosmos.base.query.v1beta1.Pagination.PageResponse.Builder subBuilder = null;
if (pagination_ != null) {
subBuilder = pagination_.toBuilder();
}
pagination_ = input.readMessage(cosmos.base.query.v1beta1.Pagination.PageResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pagination_);
pagination_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
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_ & 0x00000001) != 0)) {
codeIds_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryPinnedCodesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryPinnedCodesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse.class, cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse.Builder.class);
}
public static final int CODE_IDS_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.LongList codeIds_;
/**
* repeated uint64 code_ids = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "CodeIDs"];
* @return A list containing the codeIds.
*/
@java.lang.Override
public java.util.List
getCodeIdsList() {
return codeIds_;
}
/**
* repeated uint64 code_ids = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "CodeIDs"];
* @return The count of codeIds.
*/
public int getCodeIdsCount() {
return codeIds_.size();
}
/**
* repeated uint64 code_ids = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "CodeIDs"];
* @param index The index of the element to return.
* @return The codeIds at the given index.
*/
public long getCodeIds(int index) {
return codeIds_.getLong(index);
}
private int codeIdsMemoizedSerializedSize = -1;
public static final int PAGINATION_FIELD_NUMBER = 2;
private cosmos.base.query.v1beta1.Pagination.PageResponse pagination_;
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return Whether the pagination field is set.
*/
@java.lang.Override
public boolean hasPagination() {
return pagination_ != null;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return The pagination.
*/
@java.lang.Override
public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {
return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
@java.lang.Override
public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {
return getPagination();
}
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 {
getSerializedSize();
if (getCodeIdsList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(codeIdsMemoizedSerializedSize);
}
for (int i = 0; i < codeIds_.size(); i++) {
output.writeUInt64NoTag(codeIds_.getLong(i));
}
if (pagination_ != null) {
output.writeMessage(2, getPagination());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < codeIds_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt64SizeNoTag(codeIds_.getLong(i));
}
size += dataSize;
if (!getCodeIdsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
codeIdsMemoizedSerializedSize = dataSize;
}
if (pagination_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPagination());
}
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 cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse)) {
return super.equals(obj);
}
cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse other = (cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse) obj;
if (!getCodeIdsList()
.equals(other.getCodeIdsList())) return false;
if (hasPagination() != other.hasPagination()) return false;
if (hasPagination()) {
if (!getPagination()
.equals(other.getPagination())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getCodeIdsCount() > 0) {
hash = (37 * hash) + CODE_IDS_FIELD_NUMBER;
hash = (53 * hash) + getCodeIdsList().hashCode();
}
if (hasPagination()) {
hash = (37 * hash) + PAGINATION_FIELD_NUMBER;
hash = (53 * hash) + getPagination().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse 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 cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse 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 cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse 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(cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse 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;
}
/**
*
* QueryPinnedCodesResponse is the response type for the
* Query/PinnedCodes RPC method
*
*
* Protobuf type {@code cosmwasm.wasm.v1.QueryPinnedCodesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1.QueryPinnedCodesResponse)
cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryPinnedCodesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryPinnedCodesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse.class, cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse.Builder.class);
}
// Construct using cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse.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();
codeIds_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000001);
if (paginationBuilder_ == null) {
pagination_ = null;
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmwasm.wasm.v1.QueryOuterClass.internal_static_cosmwasm_wasm_v1_QueryPinnedCodesResponse_descriptor;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse getDefaultInstanceForType() {
return cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse.getDefaultInstance();
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse build() {
cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse buildPartial() {
cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse result = new cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
codeIds_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.codeIds_ = codeIds_;
if (paginationBuilder_ == null) {
result.pagination_ = pagination_;
} else {
result.pagination_ = paginationBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse) {
return mergeFrom((cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse other) {
if (other == cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse.getDefaultInstance()) return this;
if (!other.codeIds_.isEmpty()) {
if (codeIds_.isEmpty()) {
codeIds_ = other.codeIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCodeIdsIsMutable();
codeIds_.addAll(other.codeIds_);
}
onChanged();
}
if (other.hasPagination()) {
mergePagination(other.getPagination());
}
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 {
cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.Internal.LongList codeIds_ = emptyLongList();
private void ensureCodeIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
codeIds_ = mutableCopy(codeIds_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated uint64 code_ids = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "CodeIDs"];
* @return A list containing the codeIds.
*/
public java.util.List
getCodeIdsList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(codeIds_) : codeIds_;
}
/**
* repeated uint64 code_ids = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "CodeIDs"];
* @return The count of codeIds.
*/
public int getCodeIdsCount() {
return codeIds_.size();
}
/**
* repeated uint64 code_ids = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "CodeIDs"];
* @param index The index of the element to return.
* @return The codeIds at the given index.
*/
public long getCodeIds(int index) {
return codeIds_.getLong(index);
}
/**
* repeated uint64 code_ids = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "CodeIDs"];
* @param index The index to set the value at.
* @param value The codeIds to set.
* @return This builder for chaining.
*/
public Builder setCodeIds(
int index, long value) {
ensureCodeIdsIsMutable();
codeIds_.setLong(index, value);
onChanged();
return this;
}
/**
* repeated uint64 code_ids = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "CodeIDs"];
* @param value The codeIds to add.
* @return This builder for chaining.
*/
public Builder addCodeIds(long value) {
ensureCodeIdsIsMutable();
codeIds_.addLong(value);
onChanged();
return this;
}
/**
* repeated uint64 code_ids = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "CodeIDs"];
* @param values The codeIds to add.
* @return This builder for chaining.
*/
public Builder addAllCodeIds(
java.lang.Iterable extends java.lang.Long> values) {
ensureCodeIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, codeIds_);
onChanged();
return this;
}
/**
* repeated uint64 code_ids = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "CodeIDs"];
* @return This builder for chaining.
*/
public Builder clearCodeIds() {
codeIds_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private cosmos.base.query.v1beta1.Pagination.PageResponse pagination_;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageResponse, cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder> paginationBuilder_;
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return Whether the pagination field is set.
*/
public boolean hasPagination() {
return paginationBuilder_ != null || pagination_ != null;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return The pagination.
*/
public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {
if (paginationBuilder_ == null) {
return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;
} else {
return paginationBuilder_.getMessage();
}
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {
if (paginationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pagination_ = value;
onChanged();
} else {
paginationBuilder_.setMessage(value);
}
return this;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder setPagination(
cosmos.base.query.v1beta1.Pagination.PageResponse.Builder builderForValue) {
if (paginationBuilder_ == null) {
pagination_ = builderForValue.build();
onChanged();
} else {
paginationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder mergePagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {
if (paginationBuilder_ == null) {
if (pagination_ != null) {
pagination_ =
cosmos.base.query.v1beta1.Pagination.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial();
} else {
pagination_ = value;
}
onChanged();
} else {
paginationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder clearPagination() {
if (paginationBuilder_ == null) {
pagination_ = null;
onChanged();
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {
onChanged();
return getPaginationFieldBuilder().getBuilder();
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {
if (paginationBuilder_ != null) {
return paginationBuilder_.getMessageOrBuilder();
} else {
return pagination_ == null ?
cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;
}
}
/**
*
* pagination defines the pagination in the response.
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageResponse, cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder>
getPaginationFieldBuilder() {
if (paginationBuilder_ == null) {
paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageResponse, cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder>(
getPagination(),
getParentForChildren(),
isClean());
pagination_ = null;
}
return paginationBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1.QueryPinnedCodesResponse)
}
// @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1.QueryPinnedCodesResponse)
private static final cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse();
}
public static cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryPinnedCodesResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryPinnedCodesResponse(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 cosmwasm.wasm.v1.QueryOuterClass.QueryPinnedCodesResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmwasm_wasm_v1_QueryContractInfoRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmwasm_wasm_v1_QueryContractInfoRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmwasm_wasm_v1_QueryContractInfoResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmwasm_wasm_v1_QueryContractInfoResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmwasm_wasm_v1_QueryContractHistoryRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmwasm_wasm_v1_QueryContractHistoryRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmwasm_wasm_v1_QueryContractHistoryResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmwasm_wasm_v1_QueryContractHistoryResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmwasm_wasm_v1_QueryContractsByCodeRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmwasm_wasm_v1_QueryContractsByCodeRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmwasm_wasm_v1_QueryContractsByCodeResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmwasm_wasm_v1_QueryContractsByCodeResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmwasm_wasm_v1_QueryAllContractStateRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmwasm_wasm_v1_QueryAllContractStateRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmwasm_wasm_v1_QueryAllContractStateResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmwasm_wasm_v1_QueryAllContractStateResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmwasm_wasm_v1_QueryRawContractStateRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmwasm_wasm_v1_QueryRawContractStateRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmwasm_wasm_v1_QueryRawContractStateResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmwasm_wasm_v1_QueryRawContractStateResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmwasm_wasm_v1_QuerySmartContractStateRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmwasm_wasm_v1_QuerySmartContractStateRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmwasm_wasm_v1_QuerySmartContractStateResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmwasm_wasm_v1_QuerySmartContractStateResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmwasm_wasm_v1_QueryCodeRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmwasm_wasm_v1_QueryCodeRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmwasm_wasm_v1_CodeInfoResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmwasm_wasm_v1_CodeInfoResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmwasm_wasm_v1_QueryCodeResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmwasm_wasm_v1_QueryCodeResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmwasm_wasm_v1_QueryCodesRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmwasm_wasm_v1_QueryCodesRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmwasm_wasm_v1_QueryCodesResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmwasm_wasm_v1_QueryCodesResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmwasm_wasm_v1_QueryPinnedCodesRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmwasm_wasm_v1_QueryPinnedCodesRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmwasm_wasm_v1_QueryPinnedCodesResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmwasm_wasm_v1_QueryPinnedCodesResponse_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\034cosmwasm/wasm/v1/query.proto\022\020cosmwasm" +
".wasm.v1\032\024gogoproto/gogo.proto\032\034cosmwasm" +
"/wasm/v1/types.proto\032\034google/api/annotat" +
"ions.proto\032*cosmos/base/query/v1beta1/pa" +
"gination.proto\"+\n\030QueryContractInfoReque" +
"st\022\017\n\007address\030\001 \001(\t\"w\n\031QueryContractInfo" +
"Response\022\017\n\007address\030\001 \001(\t\022C\n\rcontract_in" +
"fo\030\002 \001(\0132\036.cosmwasm.wasm.v1.ContractInfo" +
"B\014\320\336\037\001\310\336\037\000\352\336\037\000:\004\350\240\037\001\"j\n\033QueryContractHis" +
"toryRequest\022\017\n\007address\030\001 \001(\t\022:\n\npaginati" +
"on\030\002 \001(\0132&.cosmos.base.query.v1beta1.Pag" +
"eRequest\"\236\001\n\034QueryContractHistoryRespons" +
"e\022A\n\007entries\030\001 \003(\0132*.cosmwasm.wasm.v1.Co" +
"ntractCodeHistoryEntryB\004\310\336\037\000\022;\n\npaginati" +
"on\030\002 \001(\0132\'.cosmos.base.query.v1beta1.Pag" +
"eResponse\"j\n\033QueryContractsByCodeRequest" +
"\022\017\n\007code_id\030\001 \001(\004\022:\n\npagination\030\002 \001(\0132&." +
"cosmos.base.query.v1beta1.PageRequest\"n\n" +
"\034QueryContractsByCodeResponse\022\021\n\tcontrac" +
"ts\030\001 \003(\t\022;\n\npagination\030\002 \001(\0132\'.cosmos.ba" +
"se.query.v1beta1.PageResponse\"k\n\034QueryAl" +
"lContractStateRequest\022\017\n\007address\030\001 \001(\t\022:" +
"\n\npagination\030\002 \001(\0132&.cosmos.base.query.v" +
"1beta1.PageRequest\"\213\001\n\035QueryAllContractS" +
"tateResponse\022-\n\006models\030\001 \003(\0132\027.cosmwasm." +
"wasm.v1.ModelB\004\310\336\037\000\022;\n\npagination\030\002 \001(\0132" +
"\'.cosmos.base.query.v1beta1.PageResponse" +
"\"C\n\034QueryRawContractStateRequest\022\017\n\007addr" +
"ess\030\001 \001(\t\022\022\n\nquery_data\030\002 \001(\014\"-\n\035QueryRa" +
"wContractStateResponse\022\014\n\004data\030\001 \001(\014\"]\n\036" +
"QuerySmartContractStateRequest\022\017\n\007addres" +
"s\030\001 \001(\t\022*\n\nquery_data\030\002 \001(\014B\026\372\336\037\022RawCont" +
"ractMessage\"G\n\037QuerySmartContractStateRe" +
"sponse\022$\n\004data\030\001 \001(\014B\026\372\336\037\022RawContractMes" +
"sage\"#\n\020QueryCodeRequest\022\017\n\007code_id\030\001 \001(" +
"\004\"\353\001\n\020CodeInfoResponse\022!\n\007code_id\030\001 \001(\004B" +
"\020\342\336\037\006CodeID\352\336\037\002id\022\017\n\007creator\030\002 \001(\t\022K\n\tda" +
"ta_hash\030\003 \001(\014B8\372\336\0374github.com/tendermint" +
"/tendermint/libs/bytes.HexBytes\022D\n\026insta" +
"ntiate_permission\030\006 \001(\0132\036.cosmwasm.wasm." +
"v1.AccessConfigB\004\310\336\037\000:\004\350\240\037\001J\004\010\004\020\005J\004\010\005\020\006\"" +
"r\n\021QueryCodeResponse\022?\n\tcode_info\030\001 \001(\0132" +
"\".cosmwasm.wasm.v1.CodeInfoResponseB\010\320\336\037" +
"\001\352\336\037\000\022\026\n\004data\030\002 \001(\014B\010\352\336\037\004data:\004\350\240\037\001\"O\n\021Q" +
"ueryCodesRequest\022:\n\npagination\030\001 \001(\0132&.c" +
"osmos.base.query.v1beta1.PageRequest\"\217\001\n" +
"\022QueryCodesResponse\022<\n\ncode_infos\030\001 \003(\0132" +
"\".cosmwasm.wasm.v1.CodeInfoResponseB\004\310\336\037" +
"\000\022;\n\npagination\030\002 \001(\0132\'.cosmos.base.quer" +
"y.v1beta1.PageResponse\"U\n\027QueryPinnedCod" +
"esRequest\022:\n\npagination\030\002 \001(\0132&.cosmos.b" +
"ase.query.v1beta1.PageRequest\"z\n\030QueryPi" +
"nnedCodesResponse\022!\n\010code_ids\030\001 \003(\004B\017\310\336\037" +
"\000\342\336\037\007CodeIDs\022;\n\npagination\030\002 \001(\0132\'.cosmo" +
"s.base.query.v1beta1.PageResponse2\211\013\n\005Qu" +
"ery\022\225\001\n\014ContractInfo\022*.cosmwasm.wasm.v1." +
"QueryContractInfoRequest\032+.cosmwasm.wasm" +
".v1.QueryContractInfoResponse\",\202\323\344\223\002&\022$/" +
"cosmwasm/wasm/v1/contract/{address}\022\246\001\n\017" +
"ContractHistory\022-.cosmwasm.wasm.v1.Query" +
"ContractHistoryRequest\032..cosmwasm.wasm.v" +
"1.QueryContractHistoryResponse\"4\202\323\344\223\002.\022," +
"/cosmwasm/wasm/v1/contract/{address}/his" +
"tory\022\244\001\n\017ContractsByCode\022-.cosmwasm.wasm" +
".v1.QueryContractsByCodeRequest\032..cosmwa" +
"sm.wasm.v1.QueryContractsByCodeResponse\"" +
"2\202\323\344\223\002,\022*/cosmwasm/wasm/v1/code/{code_id" +
"}/contracts\022\247\001\n\020AllContractState\022..cosmw" +
"asm.wasm.v1.QueryAllContractStateRequest" +
"\032/.cosmwasm.wasm.v1.QueryAllContractStat" +
"eResponse\"2\202\323\344\223\002,\022*/cosmwasm/wasm/v1/con" +
"tract/{address}/state\022\262\001\n\020RawContractSta" +
"te\022..cosmwasm.wasm.v1.QueryRawContractSt" +
"ateRequest\032/.cosmwasm.wasm.v1.QueryRawCo" +
"ntractStateResponse\"=\202\323\344\223\0027\0225/cosmwasm/w" +
"asm/v1/contract/{address}/raw/{query_dat" +
"a}\022\272\001\n\022SmartContractState\0220.cosmwasm.was" +
"m.v1.QuerySmartContractStateRequest\0321.co" +
"smwasm.wasm.v1.QuerySmartContractStateRe" +
"sponse\"?\202\323\344\223\0029\0227/cosmwasm/wasm/v1/contra" +
"ct/{address}/smart/{query_data}\022y\n\004Code\022" +
"\".cosmwasm.wasm.v1.QueryCodeRequest\032#.co" +
"smwasm.wasm.v1.QueryCodeResponse\"(\202\323\344\223\002\"" +
"\022 /cosmwasm/wasm/v1/code/{code_id}\022r\n\005Co" +
"des\022#.cosmwasm.wasm.v1.QueryCodesRequest" +
"\032$.cosmwasm.wasm.v1.QueryCodesResponse\"\036" +
"\202\323\344\223\002\030\022\026/cosmwasm/wasm/v1/code\022\214\001\n\013Pinne" +
"dCodes\022).cosmwasm.wasm.v1.QueryPinnedCod" +
"esRequest\032*.cosmwasm.wasm.v1.QueryPinned" +
"CodesResponse\"&\202\323\344\223\002 \022\036/cosmwasm/wasm/v1" +
"/codes/pinnedB0Z&github.com/CosmWasm/was" +
"md/x/wasm/types\310\341\036\000\250\342\036\000b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.GoGoProtos.getDescriptor(),
cosmwasm.wasm.v1.Types.getDescriptor(),
com.google.api.AnnotationsProto.getDescriptor(),
cosmos.base.query.v1beta1.Pagination.getDescriptor(),
});
internal_static_cosmwasm_wasm_v1_QueryContractInfoRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_cosmwasm_wasm_v1_QueryContractInfoRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmwasm_wasm_v1_QueryContractInfoRequest_descriptor,
new java.lang.String[] { "Address", });
internal_static_cosmwasm_wasm_v1_QueryContractInfoResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_cosmwasm_wasm_v1_QueryContractInfoResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmwasm_wasm_v1_QueryContractInfoResponse_descriptor,
new java.lang.String[] { "Address", "ContractInfo", });
internal_static_cosmwasm_wasm_v1_QueryContractHistoryRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_cosmwasm_wasm_v1_QueryContractHistoryRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmwasm_wasm_v1_QueryContractHistoryRequest_descriptor,
new java.lang.String[] { "Address", "Pagination", });
internal_static_cosmwasm_wasm_v1_QueryContractHistoryResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_cosmwasm_wasm_v1_QueryContractHistoryResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmwasm_wasm_v1_QueryContractHistoryResponse_descriptor,
new java.lang.String[] { "Entries", "Pagination", });
internal_static_cosmwasm_wasm_v1_QueryContractsByCodeRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_cosmwasm_wasm_v1_QueryContractsByCodeRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmwasm_wasm_v1_QueryContractsByCodeRequest_descriptor,
new java.lang.String[] { "CodeId", "Pagination", });
internal_static_cosmwasm_wasm_v1_QueryContractsByCodeResponse_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_cosmwasm_wasm_v1_QueryContractsByCodeResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmwasm_wasm_v1_QueryContractsByCodeResponse_descriptor,
new java.lang.String[] { "Contracts", "Pagination", });
internal_static_cosmwasm_wasm_v1_QueryAllContractStateRequest_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_cosmwasm_wasm_v1_QueryAllContractStateRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmwasm_wasm_v1_QueryAllContractStateRequest_descriptor,
new java.lang.String[] { "Address", "Pagination", });
internal_static_cosmwasm_wasm_v1_QueryAllContractStateResponse_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_cosmwasm_wasm_v1_QueryAllContractStateResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmwasm_wasm_v1_QueryAllContractStateResponse_descriptor,
new java.lang.String[] { "Models", "Pagination", });
internal_static_cosmwasm_wasm_v1_QueryRawContractStateRequest_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_cosmwasm_wasm_v1_QueryRawContractStateRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmwasm_wasm_v1_QueryRawContractStateRequest_descriptor,
new java.lang.String[] { "Address", "QueryData", });
internal_static_cosmwasm_wasm_v1_QueryRawContractStateResponse_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_cosmwasm_wasm_v1_QueryRawContractStateResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmwasm_wasm_v1_QueryRawContractStateResponse_descriptor,
new java.lang.String[] { "Data", });
internal_static_cosmwasm_wasm_v1_QuerySmartContractStateRequest_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_cosmwasm_wasm_v1_QuerySmartContractStateRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmwasm_wasm_v1_QuerySmartContractStateRequest_descriptor,
new java.lang.String[] { "Address", "QueryData", });
internal_static_cosmwasm_wasm_v1_QuerySmartContractStateResponse_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_cosmwasm_wasm_v1_QuerySmartContractStateResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmwasm_wasm_v1_QuerySmartContractStateResponse_descriptor,
new java.lang.String[] { "Data", });
internal_static_cosmwasm_wasm_v1_QueryCodeRequest_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_cosmwasm_wasm_v1_QueryCodeRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmwasm_wasm_v1_QueryCodeRequest_descriptor,
new java.lang.String[] { "CodeId", });
internal_static_cosmwasm_wasm_v1_CodeInfoResponse_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_cosmwasm_wasm_v1_CodeInfoResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmwasm_wasm_v1_CodeInfoResponse_descriptor,
new java.lang.String[] { "CodeId", "Creator", "DataHash", "InstantiatePermission", });
internal_static_cosmwasm_wasm_v1_QueryCodeResponse_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_cosmwasm_wasm_v1_QueryCodeResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmwasm_wasm_v1_QueryCodeResponse_descriptor,
new java.lang.String[] { "CodeInfo", "Data", });
internal_static_cosmwasm_wasm_v1_QueryCodesRequest_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_cosmwasm_wasm_v1_QueryCodesRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmwasm_wasm_v1_QueryCodesRequest_descriptor,
new java.lang.String[] { "Pagination", });
internal_static_cosmwasm_wasm_v1_QueryCodesResponse_descriptor =
getDescriptor().getMessageTypes().get(16);
internal_static_cosmwasm_wasm_v1_QueryCodesResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmwasm_wasm_v1_QueryCodesResponse_descriptor,
new java.lang.String[] { "CodeInfos", "Pagination", });
internal_static_cosmwasm_wasm_v1_QueryPinnedCodesRequest_descriptor =
getDescriptor().getMessageTypes().get(17);
internal_static_cosmwasm_wasm_v1_QueryPinnedCodesRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmwasm_wasm_v1_QueryPinnedCodesRequest_descriptor,
new java.lang.String[] { "Pagination", });
internal_static_cosmwasm_wasm_v1_QueryPinnedCodesResponse_descriptor =
getDescriptor().getMessageTypes().get(18);
internal_static_cosmwasm_wasm_v1_QueryPinnedCodesResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmwasm_wasm_v1_QueryPinnedCodesResponse_descriptor,
new java.lang.String[] { "CodeIds", "Pagination", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.casttype);
registry.add(com.google.protobuf.GoGoProtos.customname);
registry.add(com.google.protobuf.GoGoProtos.embed);
registry.add(com.google.protobuf.GoGoProtos.equal);
registry.add(com.google.protobuf.GoGoProtos.equalAll);
registry.add(com.google.protobuf.GoGoProtos.goprotoGettersAll);
registry.add(com.google.protobuf.GoGoProtos.jsontag);
registry.add(com.google.protobuf.GoGoProtos.nullable);
registry.add(com.google.api.AnnotationsProto.http);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.GoGoProtos.getDescriptor();
cosmwasm.wasm.v1.Types.getDescriptor();
com.google.api.AnnotationsProto.getDescriptor();
cosmos.base.query.v1beta1.Pagination.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy