
ibc.applications.interchain_accounts.host.v1.Host Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ibc/applications/interchain_accounts/host/v1/host.proto
package ibc.applications.interchain_accounts.host.v1;
public final class Host {
private Host() {}
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 ParamsOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.applications.interchain_accounts.host.v1.Params)
com.google.protobuf.MessageOrBuilder {
/**
*
* host_enabled enables or disables the host submodule.
*
*
* bool host_enabled = 1 [(.gogoproto.moretags) = "yaml:\"host_enabled\""];
* @return The hostEnabled.
*/
boolean getHostEnabled();
/**
*
* allow_messages defines a list of sdk message typeURLs allowed to be executed on a host chain.
*
*
* repeated string allow_messages = 2 [(.gogoproto.moretags) = "yaml:\"allow_messages\""];
* @return A list containing the allowMessages.
*/
java.util.List
getAllowMessagesList();
/**
*
* allow_messages defines a list of sdk message typeURLs allowed to be executed on a host chain.
*
*
* repeated string allow_messages = 2 [(.gogoproto.moretags) = "yaml:\"allow_messages\""];
* @return The count of allowMessages.
*/
int getAllowMessagesCount();
/**
*
* allow_messages defines a list of sdk message typeURLs allowed to be executed on a host chain.
*
*
* repeated string allow_messages = 2 [(.gogoproto.moretags) = "yaml:\"allow_messages\""];
* @param index The index of the element to return.
* @return The allowMessages at the given index.
*/
java.lang.String getAllowMessages(int index);
/**
*
* allow_messages defines a list of sdk message typeURLs allowed to be executed on a host chain.
*
*
* repeated string allow_messages = 2 [(.gogoproto.moretags) = "yaml:\"allow_messages\""];
* @param index The index of the value to return.
* @return The bytes of the allowMessages at the given index.
*/
com.google.protobuf.ByteString
getAllowMessagesBytes(int index);
}
/**
*
* Params defines the set of on-chain interchain accounts parameters.
* The following parameters may be used to disable the host submodule.
*
*
* Protobuf type {@code ibc.applications.interchain_accounts.host.v1.Params}
*/
public static final class Params extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.applications.interchain_accounts.host.v1.Params)
ParamsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Params.newBuilder() to construct.
private Params(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Params() {
allowMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Params();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Params(
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: {
hostEnabled_ = input.readBool();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
allowMessages_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
allowMessages_.add(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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
allowMessages_ = allowMessages_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.applications.interchain_accounts.host.v1.Host.internal_static_ibc_applications_interchain_accounts_host_v1_Params_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.applications.interchain_accounts.host.v1.Host.internal_static_ibc_applications_interchain_accounts_host_v1_Params_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.applications.interchain_accounts.host.v1.Host.Params.class, ibc.applications.interchain_accounts.host.v1.Host.Params.Builder.class);
}
public static final int HOST_ENABLED_FIELD_NUMBER = 1;
private boolean hostEnabled_;
/**
*
* host_enabled enables or disables the host submodule.
*
*
* bool host_enabled = 1 [(.gogoproto.moretags) = "yaml:\"host_enabled\""];
* @return The hostEnabled.
*/
@java.lang.Override
public boolean getHostEnabled() {
return hostEnabled_;
}
public static final int ALLOW_MESSAGES_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList allowMessages_;
/**
*
* allow_messages defines a list of sdk message typeURLs allowed to be executed on a host chain.
*
*
* repeated string allow_messages = 2 [(.gogoproto.moretags) = "yaml:\"allow_messages\""];
* @return A list containing the allowMessages.
*/
public com.google.protobuf.ProtocolStringList
getAllowMessagesList() {
return allowMessages_;
}
/**
*
* allow_messages defines a list of sdk message typeURLs allowed to be executed on a host chain.
*
*
* repeated string allow_messages = 2 [(.gogoproto.moretags) = "yaml:\"allow_messages\""];
* @return The count of allowMessages.
*/
public int getAllowMessagesCount() {
return allowMessages_.size();
}
/**
*
* allow_messages defines a list of sdk message typeURLs allowed to be executed on a host chain.
*
*
* repeated string allow_messages = 2 [(.gogoproto.moretags) = "yaml:\"allow_messages\""];
* @param index The index of the element to return.
* @return The allowMessages at the given index.
*/
public java.lang.String getAllowMessages(int index) {
return allowMessages_.get(index);
}
/**
*
* allow_messages defines a list of sdk message typeURLs allowed to be executed on a host chain.
*
*
* repeated string allow_messages = 2 [(.gogoproto.moretags) = "yaml:\"allow_messages\""];
* @param index The index of the value to return.
* @return The bytes of the allowMessages at the given index.
*/
public com.google.protobuf.ByteString
getAllowMessagesBytes(int index) {
return allowMessages_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (hostEnabled_ != false) {
output.writeBool(1, hostEnabled_);
}
for (int i = 0; i < allowMessages_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, allowMessages_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (hostEnabled_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, hostEnabled_);
}
{
int dataSize = 0;
for (int i = 0; i < allowMessages_.size(); i++) {
dataSize += computeStringSizeNoTag(allowMessages_.getRaw(i));
}
size += dataSize;
size += 1 * getAllowMessagesList().size();
}
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 ibc.applications.interchain_accounts.host.v1.Host.Params)) {
return super.equals(obj);
}
ibc.applications.interchain_accounts.host.v1.Host.Params other = (ibc.applications.interchain_accounts.host.v1.Host.Params) obj;
if (getHostEnabled()
!= other.getHostEnabled()) return false;
if (!getAllowMessagesList()
.equals(other.getAllowMessagesList())) 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) + HOST_ENABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHostEnabled());
if (getAllowMessagesCount() > 0) {
hash = (37 * hash) + ALLOW_MESSAGES_FIELD_NUMBER;
hash = (53 * hash) + getAllowMessagesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.applications.interchain_accounts.host.v1.Host.Params parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.applications.interchain_accounts.host.v1.Host.Params parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.applications.interchain_accounts.host.v1.Host.Params parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.applications.interchain_accounts.host.v1.Host.Params parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.applications.interchain_accounts.host.v1.Host.Params parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.applications.interchain_accounts.host.v1.Host.Params parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.applications.interchain_accounts.host.v1.Host.Params parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.applications.interchain_accounts.host.v1.Host.Params 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 ibc.applications.interchain_accounts.host.v1.Host.Params parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.applications.interchain_accounts.host.v1.Host.Params 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 ibc.applications.interchain_accounts.host.v1.Host.Params parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.applications.interchain_accounts.host.v1.Host.Params 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(ibc.applications.interchain_accounts.host.v1.Host.Params 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;
}
/**
*
* Params defines the set of on-chain interchain accounts parameters.
* The following parameters may be used to disable the host submodule.
*
*
* Protobuf type {@code ibc.applications.interchain_accounts.host.v1.Params}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.applications.interchain_accounts.host.v1.Params)
ibc.applications.interchain_accounts.host.v1.Host.ParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.applications.interchain_accounts.host.v1.Host.internal_static_ibc_applications_interchain_accounts_host_v1_Params_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.applications.interchain_accounts.host.v1.Host.internal_static_ibc_applications_interchain_accounts_host_v1_Params_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.applications.interchain_accounts.host.v1.Host.Params.class, ibc.applications.interchain_accounts.host.v1.Host.Params.Builder.class);
}
// Construct using ibc.applications.interchain_accounts.host.v1.Host.Params.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();
hostEnabled_ = false;
allowMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.applications.interchain_accounts.host.v1.Host.internal_static_ibc_applications_interchain_accounts_host_v1_Params_descriptor;
}
@java.lang.Override
public ibc.applications.interchain_accounts.host.v1.Host.Params getDefaultInstanceForType() {
return ibc.applications.interchain_accounts.host.v1.Host.Params.getDefaultInstance();
}
@java.lang.Override
public ibc.applications.interchain_accounts.host.v1.Host.Params build() {
ibc.applications.interchain_accounts.host.v1.Host.Params result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.applications.interchain_accounts.host.v1.Host.Params buildPartial() {
ibc.applications.interchain_accounts.host.v1.Host.Params result = new ibc.applications.interchain_accounts.host.v1.Host.Params(this);
int from_bitField0_ = bitField0_;
result.hostEnabled_ = hostEnabled_;
if (((bitField0_ & 0x00000001) != 0)) {
allowMessages_ = allowMessages_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.allowMessages_ = allowMessages_;
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 ibc.applications.interchain_accounts.host.v1.Host.Params) {
return mergeFrom((ibc.applications.interchain_accounts.host.v1.Host.Params)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.applications.interchain_accounts.host.v1.Host.Params other) {
if (other == ibc.applications.interchain_accounts.host.v1.Host.Params.getDefaultInstance()) return this;
if (other.getHostEnabled() != false) {
setHostEnabled(other.getHostEnabled());
}
if (!other.allowMessages_.isEmpty()) {
if (allowMessages_.isEmpty()) {
allowMessages_ = other.allowMessages_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAllowMessagesIsMutable();
allowMessages_.addAll(other.allowMessages_);
}
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 {
ibc.applications.interchain_accounts.host.v1.Host.Params parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.applications.interchain_accounts.host.v1.Host.Params) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private boolean hostEnabled_ ;
/**
*
* host_enabled enables or disables the host submodule.
*
*
* bool host_enabled = 1 [(.gogoproto.moretags) = "yaml:\"host_enabled\""];
* @return The hostEnabled.
*/
@java.lang.Override
public boolean getHostEnabled() {
return hostEnabled_;
}
/**
*
* host_enabled enables or disables the host submodule.
*
*
* bool host_enabled = 1 [(.gogoproto.moretags) = "yaml:\"host_enabled\""];
* @param value The hostEnabled to set.
* @return This builder for chaining.
*/
public Builder setHostEnabled(boolean value) {
hostEnabled_ = value;
onChanged();
return this;
}
/**
*
* host_enabled enables or disables the host submodule.
*
*
* bool host_enabled = 1 [(.gogoproto.moretags) = "yaml:\"host_enabled\""];
* @return This builder for chaining.
*/
public Builder clearHostEnabled() {
hostEnabled_ = false;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList allowMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAllowMessagesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
allowMessages_ = new com.google.protobuf.LazyStringArrayList(allowMessages_);
bitField0_ |= 0x00000001;
}
}
/**
*
* allow_messages defines a list of sdk message typeURLs allowed to be executed on a host chain.
*
*
* repeated string allow_messages = 2 [(.gogoproto.moretags) = "yaml:\"allow_messages\""];
* @return A list containing the allowMessages.
*/
public com.google.protobuf.ProtocolStringList
getAllowMessagesList() {
return allowMessages_.getUnmodifiableView();
}
/**
*
* allow_messages defines a list of sdk message typeURLs allowed to be executed on a host chain.
*
*
* repeated string allow_messages = 2 [(.gogoproto.moretags) = "yaml:\"allow_messages\""];
* @return The count of allowMessages.
*/
public int getAllowMessagesCount() {
return allowMessages_.size();
}
/**
*
* allow_messages defines a list of sdk message typeURLs allowed to be executed on a host chain.
*
*
* repeated string allow_messages = 2 [(.gogoproto.moretags) = "yaml:\"allow_messages\""];
* @param index The index of the element to return.
* @return The allowMessages at the given index.
*/
public java.lang.String getAllowMessages(int index) {
return allowMessages_.get(index);
}
/**
*
* allow_messages defines a list of sdk message typeURLs allowed to be executed on a host chain.
*
*
* repeated string allow_messages = 2 [(.gogoproto.moretags) = "yaml:\"allow_messages\""];
* @param index The index of the value to return.
* @return The bytes of the allowMessages at the given index.
*/
public com.google.protobuf.ByteString
getAllowMessagesBytes(int index) {
return allowMessages_.getByteString(index);
}
/**
*
* allow_messages defines a list of sdk message typeURLs allowed to be executed on a host chain.
*
*
* repeated string allow_messages = 2 [(.gogoproto.moretags) = "yaml:\"allow_messages\""];
* @param index The index to set the value at.
* @param value The allowMessages to set.
* @return This builder for chaining.
*/
public Builder setAllowMessages(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAllowMessagesIsMutable();
allowMessages_.set(index, value);
onChanged();
return this;
}
/**
*
* allow_messages defines a list of sdk message typeURLs allowed to be executed on a host chain.
*
*
* repeated string allow_messages = 2 [(.gogoproto.moretags) = "yaml:\"allow_messages\""];
* @param value The allowMessages to add.
* @return This builder for chaining.
*/
public Builder addAllowMessages(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAllowMessagesIsMutable();
allowMessages_.add(value);
onChanged();
return this;
}
/**
*
* allow_messages defines a list of sdk message typeURLs allowed to be executed on a host chain.
*
*
* repeated string allow_messages = 2 [(.gogoproto.moretags) = "yaml:\"allow_messages\""];
* @param values The allowMessages to add.
* @return This builder for chaining.
*/
public Builder addAllAllowMessages(
java.lang.Iterable values) {
ensureAllowMessagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, allowMessages_);
onChanged();
return this;
}
/**
*
* allow_messages defines a list of sdk message typeURLs allowed to be executed on a host chain.
*
*
* repeated string allow_messages = 2 [(.gogoproto.moretags) = "yaml:\"allow_messages\""];
* @return This builder for chaining.
*/
public Builder clearAllowMessages() {
allowMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* allow_messages defines a list of sdk message typeURLs allowed to be executed on a host chain.
*
*
* repeated string allow_messages = 2 [(.gogoproto.moretags) = "yaml:\"allow_messages\""];
* @param value The bytes of the allowMessages to add.
* @return This builder for chaining.
*/
public Builder addAllowMessagesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAllowMessagesIsMutable();
allowMessages_.add(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:ibc.applications.interchain_accounts.host.v1.Params)
}
// @@protoc_insertion_point(class_scope:ibc.applications.interchain_accounts.host.v1.Params)
private static final ibc.applications.interchain_accounts.host.v1.Host.Params DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.applications.interchain_accounts.host.v1.Host.Params();
}
public static ibc.applications.interchain_accounts.host.v1.Host.Params getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Params parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Params(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 ibc.applications.interchain_accounts.host.v1.Host.Params getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_applications_interchain_accounts_host_v1_Params_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_applications_interchain_accounts_host_v1_Params_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n7ibc/applications/interchain_accounts/h" +
"ost/v1/host.proto\022,ibc.applications.inte" +
"rchain_accounts.host.v1\032\024gogoproto/gogo." +
"proto\"j\n\006Params\022-\n\014host_enabled\030\001 \001(\010B\027\362" +
"\336\037\023yaml:\"host_enabled\"\0221\n\016allow_messages" +
"\030\002 \003(\tB\031\362\336\037\025yaml:\"allow_messages\"BLZJgit" +
"hub.com/cosmos/ibc-go/v3/modules/apps/27" +
"-interchain-accounts/host/typesb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.GoGoProtos.getDescriptor(),
});
internal_static_ibc_applications_interchain_accounts_host_v1_Params_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_ibc_applications_interchain_accounts_host_v1_Params_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_applications_interchain_accounts_host_v1_Params_descriptor,
new java.lang.String[] { "HostEnabled", "AllowMessages", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.moretags);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.GoGoProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy