jvmMain.terra.oracle.v1beta1.Tx Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: terra/oracle/v1beta1/tx.proto
// Protobuf Java Version: 3.25.3
package terra.oracle.v1beta1;
public final class Tx {
private Tx() {}
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 MsgAggregateExchangeRatePrevoteOrBuilder extends
// @@protoc_insertion_point(interface_extends:terra.oracle.v1beta1.MsgAggregateExchangeRatePrevote)
com.google.protobuf.MessageOrBuilder {
/**
* string hash = 1 [(.gogoproto.moretags) = "yaml:\"hash\""];
* @return The hash.
*/
java.lang.String getHash();
/**
* string hash = 1 [(.gogoproto.moretags) = "yaml:\"hash\""];
* @return The bytes for hash.
*/
com.google.protobuf.ByteString
getHashBytes();
/**
* string feeder = 2 [(.gogoproto.moretags) = "yaml:\"feeder\""];
* @return The feeder.
*/
java.lang.String getFeeder();
/**
* string feeder = 2 [(.gogoproto.moretags) = "yaml:\"feeder\""];
* @return The bytes for feeder.
*/
com.google.protobuf.ByteString
getFeederBytes();
/**
* string validator = 3 [(.gogoproto.moretags) = "yaml:\"validator\""];
* @return The validator.
*/
java.lang.String getValidator();
/**
* string validator = 3 [(.gogoproto.moretags) = "yaml:\"validator\""];
* @return The bytes for validator.
*/
com.google.protobuf.ByteString
getValidatorBytes();
}
/**
*
* MsgAggregateExchangeRatePrevote represents a message to submit
* aggregate exchange rate prevote.
*
*
* Protobuf type {@code terra.oracle.v1beta1.MsgAggregateExchangeRatePrevote}
*/
public static final class MsgAggregateExchangeRatePrevote extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:terra.oracle.v1beta1.MsgAggregateExchangeRatePrevote)
MsgAggregateExchangeRatePrevoteOrBuilder {
private static final long serialVersionUID = 0L;
// Use MsgAggregateExchangeRatePrevote.newBuilder() to construct.
private MsgAggregateExchangeRatePrevote(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MsgAggregateExchangeRatePrevote() {
hash_ = "";
feeder_ = "";
validator_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MsgAggregateExchangeRatePrevote();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRatePrevote_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRatePrevote_fieldAccessorTable
.ensureFieldAccessorsInitialized(
terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote.class, terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote.Builder.class);
}
public static final int HASH_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object hash_ = "";
/**
* string hash = 1 [(.gogoproto.moretags) = "yaml:\"hash\""];
* @return The hash.
*/
@java.lang.Override
public java.lang.String getHash() {
java.lang.Object ref = hash_;
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();
hash_ = s;
return s;
}
}
/**
* string hash = 1 [(.gogoproto.moretags) = "yaml:\"hash\""];
* @return The bytes for hash.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FEEDER_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object feeder_ = "";
/**
* string feeder = 2 [(.gogoproto.moretags) = "yaml:\"feeder\""];
* @return The feeder.
*/
@java.lang.Override
public java.lang.String getFeeder() {
java.lang.Object ref = feeder_;
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();
feeder_ = s;
return s;
}
}
/**
* string feeder = 2 [(.gogoproto.moretags) = "yaml:\"feeder\""];
* @return The bytes for feeder.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFeederBytes() {
java.lang.Object ref = feeder_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
feeder_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALIDATOR_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object validator_ = "";
/**
* string validator = 3 [(.gogoproto.moretags) = "yaml:\"validator\""];
* @return The validator.
*/
@java.lang.Override
public java.lang.String getValidator() {
java.lang.Object ref = validator_;
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();
validator_ = s;
return s;
}
}
/**
* string validator = 3 [(.gogoproto.moretags) = "yaml:\"validator\""];
* @return The bytes for validator.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getValidatorBytes() {
java.lang.Object ref = validator_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
validator_ = 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(hash_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hash_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feeder_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, feeder_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validator_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, validator_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hash_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hash_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feeder_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, feeder_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validator_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, validator_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote)) {
return super.equals(obj);
}
terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote other = (terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote) obj;
if (!getHash()
.equals(other.getHash())) return false;
if (!getFeeder()
.equals(other.getFeeder())) return false;
if (!getValidator()
.equals(other.getValidator())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + HASH_FIELD_NUMBER;
hash = (53 * hash) + getHash().hashCode();
hash = (37 * hash) + FEEDER_FIELD_NUMBER;
hash = (53 * hash) + getFeeder().hashCode();
hash = (37 * hash) + VALIDATOR_FIELD_NUMBER;
hash = (53 * hash) + getValidator().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote 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 terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote 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 terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote 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(terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote 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;
}
/**
*
* MsgAggregateExchangeRatePrevote represents a message to submit
* aggregate exchange rate prevote.
*
*
* Protobuf type {@code terra.oracle.v1beta1.MsgAggregateExchangeRatePrevote}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:terra.oracle.v1beta1.MsgAggregateExchangeRatePrevote)
terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRatePrevote_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRatePrevote_fieldAccessorTable
.ensureFieldAccessorsInitialized(
terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote.class, terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote.Builder.class);
}
// Construct using terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
hash_ = "";
feeder_ = "";
validator_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRatePrevote_descriptor;
}
@java.lang.Override
public terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote getDefaultInstanceForType() {
return terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote.getDefaultInstance();
}
@java.lang.Override
public terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote build() {
terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote buildPartial() {
terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote result = new terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.hash_ = hash_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.feeder_ = feeder_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.validator_ = validator_;
}
}
@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 terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote) {
return mergeFrom((terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote other) {
if (other == terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote.getDefaultInstance()) return this;
if (!other.getHash().isEmpty()) {
hash_ = other.hash_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getFeeder().isEmpty()) {
feeder_ = other.feeder_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getValidator().isEmpty()) {
validator_ = other.validator_;
bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
hash_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
feeder_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
validator_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object hash_ = "";
/**
* string hash = 1 [(.gogoproto.moretags) = "yaml:\"hash\""];
* @return The hash.
*/
public java.lang.String getHash() {
java.lang.Object ref = hash_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string hash = 1 [(.gogoproto.moretags) = "yaml:\"hash\""];
* @return The bytes for hash.
*/
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string hash = 1 [(.gogoproto.moretags) = "yaml:\"hash\""];
* @param value The hash to set.
* @return This builder for chaining.
*/
public Builder setHash(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
hash_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string hash = 1 [(.gogoproto.moretags) = "yaml:\"hash\""];
* @return This builder for chaining.
*/
public Builder clearHash() {
hash_ = getDefaultInstance().getHash();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string hash = 1 [(.gogoproto.moretags) = "yaml:\"hash\""];
* @param value The bytes for hash to set.
* @return This builder for chaining.
*/
public Builder setHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
hash_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object feeder_ = "";
/**
* string feeder = 2 [(.gogoproto.moretags) = "yaml:\"feeder\""];
* @return The feeder.
*/
public java.lang.String getFeeder() {
java.lang.Object ref = feeder_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
feeder_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string feeder = 2 [(.gogoproto.moretags) = "yaml:\"feeder\""];
* @return The bytes for feeder.
*/
public com.google.protobuf.ByteString
getFeederBytes() {
java.lang.Object ref = feeder_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
feeder_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string feeder = 2 [(.gogoproto.moretags) = "yaml:\"feeder\""];
* @param value The feeder to set.
* @return This builder for chaining.
*/
public Builder setFeeder(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
feeder_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string feeder = 2 [(.gogoproto.moretags) = "yaml:\"feeder\""];
* @return This builder for chaining.
*/
public Builder clearFeeder() {
feeder_ = getDefaultInstance().getFeeder();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string feeder = 2 [(.gogoproto.moretags) = "yaml:\"feeder\""];
* @param value The bytes for feeder to set.
* @return This builder for chaining.
*/
public Builder setFeederBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
feeder_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object validator_ = "";
/**
* string validator = 3 [(.gogoproto.moretags) = "yaml:\"validator\""];
* @return The validator.
*/
public java.lang.String getValidator() {
java.lang.Object ref = validator_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
validator_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string validator = 3 [(.gogoproto.moretags) = "yaml:\"validator\""];
* @return The bytes for validator.
*/
public com.google.protobuf.ByteString
getValidatorBytes() {
java.lang.Object ref = validator_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
validator_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string validator = 3 [(.gogoproto.moretags) = "yaml:\"validator\""];
* @param value The validator to set.
* @return This builder for chaining.
*/
public Builder setValidator(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
validator_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* string validator = 3 [(.gogoproto.moretags) = "yaml:\"validator\""];
* @return This builder for chaining.
*/
public Builder clearValidator() {
validator_ = getDefaultInstance().getValidator();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* string validator = 3 [(.gogoproto.moretags) = "yaml:\"validator\""];
* @param value The bytes for validator to set.
* @return This builder for chaining.
*/
public Builder setValidatorBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
validator_ = value;
bitField0_ |= 0x00000004;
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:terra.oracle.v1beta1.MsgAggregateExchangeRatePrevote)
}
// @@protoc_insertion_point(class_scope:terra.oracle.v1beta1.MsgAggregateExchangeRatePrevote)
private static final terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote();
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MsgAggregateExchangeRatePrevote parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevote getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MsgAggregateExchangeRatePrevoteResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:terra.oracle.v1beta1.MsgAggregateExchangeRatePrevoteResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* MsgAggregateExchangeRatePrevoteResponse defines the Msg/AggregateExchangeRatePrevote response type.
*
*
* Protobuf type {@code terra.oracle.v1beta1.MsgAggregateExchangeRatePrevoteResponse}
*/
public static final class MsgAggregateExchangeRatePrevoteResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:terra.oracle.v1beta1.MsgAggregateExchangeRatePrevoteResponse)
MsgAggregateExchangeRatePrevoteResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use MsgAggregateExchangeRatePrevoteResponse.newBuilder() to construct.
private MsgAggregateExchangeRatePrevoteResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MsgAggregateExchangeRatePrevoteResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MsgAggregateExchangeRatePrevoteResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRatePrevoteResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRatePrevoteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse.class, terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse)) {
return super.equals(obj);
}
terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse other = (terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse 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 terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse 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 terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse 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(terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse 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;
}
/**
*
* MsgAggregateExchangeRatePrevoteResponse defines the Msg/AggregateExchangeRatePrevote response type.
*
*
* Protobuf type {@code terra.oracle.v1beta1.MsgAggregateExchangeRatePrevoteResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:terra.oracle.v1beta1.MsgAggregateExchangeRatePrevoteResponse)
terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRatePrevoteResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRatePrevoteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse.class, terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse.Builder.class);
}
// Construct using terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRatePrevoteResponse_descriptor;
}
@java.lang.Override
public terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse getDefaultInstanceForType() {
return terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse.getDefaultInstance();
}
@java.lang.Override
public terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse build() {
terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse buildPartial() {
terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse result = new terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse(this);
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 terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse) {
return mergeFrom((terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse other) {
if (other == terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@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:terra.oracle.v1beta1.MsgAggregateExchangeRatePrevoteResponse)
}
// @@protoc_insertion_point(class_scope:terra.oracle.v1beta1.MsgAggregateExchangeRatePrevoteResponse)
private static final terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse();
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MsgAggregateExchangeRatePrevoteResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public terra.oracle.v1beta1.Tx.MsgAggregateExchangeRatePrevoteResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MsgAggregateExchangeRateVoteOrBuilder extends
// @@protoc_insertion_point(interface_extends:terra.oracle.v1beta1.MsgAggregateExchangeRateVote)
com.google.protobuf.MessageOrBuilder {
/**
* string salt = 1 [(.gogoproto.moretags) = "yaml:\"salt\""];
* @return The salt.
*/
java.lang.String getSalt();
/**
* string salt = 1 [(.gogoproto.moretags) = "yaml:\"salt\""];
* @return The bytes for salt.
*/
com.google.protobuf.ByteString
getSaltBytes();
/**
* string exchange_rates = 2 [(.gogoproto.moretags) = "yaml:\"exchange_rates\""];
* @return The exchangeRates.
*/
java.lang.String getExchangeRates();
/**
* string exchange_rates = 2 [(.gogoproto.moretags) = "yaml:\"exchange_rates\""];
* @return The bytes for exchangeRates.
*/
com.google.protobuf.ByteString
getExchangeRatesBytes();
/**
* string feeder = 3 [(.gogoproto.moretags) = "yaml:\"feeder\""];
* @return The feeder.
*/
java.lang.String getFeeder();
/**
* string feeder = 3 [(.gogoproto.moretags) = "yaml:\"feeder\""];
* @return The bytes for feeder.
*/
com.google.protobuf.ByteString
getFeederBytes();
/**
* string validator = 4 [(.gogoproto.moretags) = "yaml:\"validator\""];
* @return The validator.
*/
java.lang.String getValidator();
/**
* string validator = 4 [(.gogoproto.moretags) = "yaml:\"validator\""];
* @return The bytes for validator.
*/
com.google.protobuf.ByteString
getValidatorBytes();
}
/**
*
* MsgAggregateExchangeRateVote represents a message to submit
* aggregate exchange rate vote.
*
*
* Protobuf type {@code terra.oracle.v1beta1.MsgAggregateExchangeRateVote}
*/
public static final class MsgAggregateExchangeRateVote extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:terra.oracle.v1beta1.MsgAggregateExchangeRateVote)
MsgAggregateExchangeRateVoteOrBuilder {
private static final long serialVersionUID = 0L;
// Use MsgAggregateExchangeRateVote.newBuilder() to construct.
private MsgAggregateExchangeRateVote(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MsgAggregateExchangeRateVote() {
salt_ = "";
exchangeRates_ = "";
feeder_ = "";
validator_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MsgAggregateExchangeRateVote();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRateVote_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRateVote_fieldAccessorTable
.ensureFieldAccessorsInitialized(
terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote.class, terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote.Builder.class);
}
public static final int SALT_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object salt_ = "";
/**
* string salt = 1 [(.gogoproto.moretags) = "yaml:\"salt\""];
* @return The salt.
*/
@java.lang.Override
public java.lang.String getSalt() {
java.lang.Object ref = salt_;
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();
salt_ = s;
return s;
}
}
/**
* string salt = 1 [(.gogoproto.moretags) = "yaml:\"salt\""];
* @return The bytes for salt.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSaltBytes() {
java.lang.Object ref = salt_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
salt_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXCHANGE_RATES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object exchangeRates_ = "";
/**
* string exchange_rates = 2 [(.gogoproto.moretags) = "yaml:\"exchange_rates\""];
* @return The exchangeRates.
*/
@java.lang.Override
public java.lang.String getExchangeRates() {
java.lang.Object ref = exchangeRates_;
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();
exchangeRates_ = s;
return s;
}
}
/**
* string exchange_rates = 2 [(.gogoproto.moretags) = "yaml:\"exchange_rates\""];
* @return The bytes for exchangeRates.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getExchangeRatesBytes() {
java.lang.Object ref = exchangeRates_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
exchangeRates_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FEEDER_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object feeder_ = "";
/**
* string feeder = 3 [(.gogoproto.moretags) = "yaml:\"feeder\""];
* @return The feeder.
*/
@java.lang.Override
public java.lang.String getFeeder() {
java.lang.Object ref = feeder_;
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();
feeder_ = s;
return s;
}
}
/**
* string feeder = 3 [(.gogoproto.moretags) = "yaml:\"feeder\""];
* @return The bytes for feeder.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFeederBytes() {
java.lang.Object ref = feeder_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
feeder_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALIDATOR_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object validator_ = "";
/**
* string validator = 4 [(.gogoproto.moretags) = "yaml:\"validator\""];
* @return The validator.
*/
@java.lang.Override
public java.lang.String getValidator() {
java.lang.Object ref = validator_;
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();
validator_ = s;
return s;
}
}
/**
* string validator = 4 [(.gogoproto.moretags) = "yaml:\"validator\""];
* @return The bytes for validator.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getValidatorBytes() {
java.lang.Object ref = validator_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
validator_ = 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(salt_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, salt_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(exchangeRates_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, exchangeRates_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feeder_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, feeder_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validator_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, validator_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(salt_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, salt_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(exchangeRates_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, exchangeRates_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feeder_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, feeder_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validator_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, validator_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote)) {
return super.equals(obj);
}
terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote other = (terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote) obj;
if (!getSalt()
.equals(other.getSalt())) return false;
if (!getExchangeRates()
.equals(other.getExchangeRates())) return false;
if (!getFeeder()
.equals(other.getFeeder())) return false;
if (!getValidator()
.equals(other.getValidator())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SALT_FIELD_NUMBER;
hash = (53 * hash) + getSalt().hashCode();
hash = (37 * hash) + EXCHANGE_RATES_FIELD_NUMBER;
hash = (53 * hash) + getExchangeRates().hashCode();
hash = (37 * hash) + FEEDER_FIELD_NUMBER;
hash = (53 * hash) + getFeeder().hashCode();
hash = (37 * hash) + VALIDATOR_FIELD_NUMBER;
hash = (53 * hash) + getValidator().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote 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 terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote 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 terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote 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(terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote 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;
}
/**
*
* MsgAggregateExchangeRateVote represents a message to submit
* aggregate exchange rate vote.
*
*
* Protobuf type {@code terra.oracle.v1beta1.MsgAggregateExchangeRateVote}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:terra.oracle.v1beta1.MsgAggregateExchangeRateVote)
terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRateVote_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRateVote_fieldAccessorTable
.ensureFieldAccessorsInitialized(
terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote.class, terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote.Builder.class);
}
// Construct using terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
salt_ = "";
exchangeRates_ = "";
feeder_ = "";
validator_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRateVote_descriptor;
}
@java.lang.Override
public terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote getDefaultInstanceForType() {
return terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote.getDefaultInstance();
}
@java.lang.Override
public terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote build() {
terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote buildPartial() {
terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote result = new terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.salt_ = salt_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.exchangeRates_ = exchangeRates_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.feeder_ = feeder_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.validator_ = validator_;
}
}
@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 terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote) {
return mergeFrom((terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote other) {
if (other == terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote.getDefaultInstance()) return this;
if (!other.getSalt().isEmpty()) {
salt_ = other.salt_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getExchangeRates().isEmpty()) {
exchangeRates_ = other.exchangeRates_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getFeeder().isEmpty()) {
feeder_ = other.feeder_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getValidator().isEmpty()) {
validator_ = other.validator_;
bitField0_ |= 0x00000008;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
salt_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
exchangeRates_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
feeder_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
validator_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object salt_ = "";
/**
* string salt = 1 [(.gogoproto.moretags) = "yaml:\"salt\""];
* @return The salt.
*/
public java.lang.String getSalt() {
java.lang.Object ref = salt_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
salt_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string salt = 1 [(.gogoproto.moretags) = "yaml:\"salt\""];
* @return The bytes for salt.
*/
public com.google.protobuf.ByteString
getSaltBytes() {
java.lang.Object ref = salt_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
salt_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string salt = 1 [(.gogoproto.moretags) = "yaml:\"salt\""];
* @param value The salt to set.
* @return This builder for chaining.
*/
public Builder setSalt(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
salt_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string salt = 1 [(.gogoproto.moretags) = "yaml:\"salt\""];
* @return This builder for chaining.
*/
public Builder clearSalt() {
salt_ = getDefaultInstance().getSalt();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string salt = 1 [(.gogoproto.moretags) = "yaml:\"salt\""];
* @param value The bytes for salt to set.
* @return This builder for chaining.
*/
public Builder setSaltBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
salt_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object exchangeRates_ = "";
/**
* string exchange_rates = 2 [(.gogoproto.moretags) = "yaml:\"exchange_rates\""];
* @return The exchangeRates.
*/
public java.lang.String getExchangeRates() {
java.lang.Object ref = exchangeRates_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
exchangeRates_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string exchange_rates = 2 [(.gogoproto.moretags) = "yaml:\"exchange_rates\""];
* @return The bytes for exchangeRates.
*/
public com.google.protobuf.ByteString
getExchangeRatesBytes() {
java.lang.Object ref = exchangeRates_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
exchangeRates_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string exchange_rates = 2 [(.gogoproto.moretags) = "yaml:\"exchange_rates\""];
* @param value The exchangeRates to set.
* @return This builder for chaining.
*/
public Builder setExchangeRates(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
exchangeRates_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string exchange_rates = 2 [(.gogoproto.moretags) = "yaml:\"exchange_rates\""];
* @return This builder for chaining.
*/
public Builder clearExchangeRates() {
exchangeRates_ = getDefaultInstance().getExchangeRates();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string exchange_rates = 2 [(.gogoproto.moretags) = "yaml:\"exchange_rates\""];
* @param value The bytes for exchangeRates to set.
* @return This builder for chaining.
*/
public Builder setExchangeRatesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
exchangeRates_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object feeder_ = "";
/**
* string feeder = 3 [(.gogoproto.moretags) = "yaml:\"feeder\""];
* @return The feeder.
*/
public java.lang.String getFeeder() {
java.lang.Object ref = feeder_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
feeder_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string feeder = 3 [(.gogoproto.moretags) = "yaml:\"feeder\""];
* @return The bytes for feeder.
*/
public com.google.protobuf.ByteString
getFeederBytes() {
java.lang.Object ref = feeder_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
feeder_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string feeder = 3 [(.gogoproto.moretags) = "yaml:\"feeder\""];
* @param value The feeder to set.
* @return This builder for chaining.
*/
public Builder setFeeder(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
feeder_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* string feeder = 3 [(.gogoproto.moretags) = "yaml:\"feeder\""];
* @return This builder for chaining.
*/
public Builder clearFeeder() {
feeder_ = getDefaultInstance().getFeeder();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* string feeder = 3 [(.gogoproto.moretags) = "yaml:\"feeder\""];
* @param value The bytes for feeder to set.
* @return This builder for chaining.
*/
public Builder setFeederBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
feeder_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object validator_ = "";
/**
* string validator = 4 [(.gogoproto.moretags) = "yaml:\"validator\""];
* @return The validator.
*/
public java.lang.String getValidator() {
java.lang.Object ref = validator_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
validator_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string validator = 4 [(.gogoproto.moretags) = "yaml:\"validator\""];
* @return The bytes for validator.
*/
public com.google.protobuf.ByteString
getValidatorBytes() {
java.lang.Object ref = validator_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
validator_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string validator = 4 [(.gogoproto.moretags) = "yaml:\"validator\""];
* @param value The validator to set.
* @return This builder for chaining.
*/
public Builder setValidator(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
validator_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* string validator = 4 [(.gogoproto.moretags) = "yaml:\"validator\""];
* @return This builder for chaining.
*/
public Builder clearValidator() {
validator_ = getDefaultInstance().getValidator();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* string validator = 4 [(.gogoproto.moretags) = "yaml:\"validator\""];
* @param value The bytes for validator to set.
* @return This builder for chaining.
*/
public Builder setValidatorBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
validator_ = value;
bitField0_ |= 0x00000008;
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:terra.oracle.v1beta1.MsgAggregateExchangeRateVote)
}
// @@protoc_insertion_point(class_scope:terra.oracle.v1beta1.MsgAggregateExchangeRateVote)
private static final terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote();
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MsgAggregateExchangeRateVote parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVote getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MsgAggregateExchangeRateVoteResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:terra.oracle.v1beta1.MsgAggregateExchangeRateVoteResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* MsgAggregateExchangeRateVoteResponse defines the Msg/AggregateExchangeRateVote response type.
*
*
* Protobuf type {@code terra.oracle.v1beta1.MsgAggregateExchangeRateVoteResponse}
*/
public static final class MsgAggregateExchangeRateVoteResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:terra.oracle.v1beta1.MsgAggregateExchangeRateVoteResponse)
MsgAggregateExchangeRateVoteResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use MsgAggregateExchangeRateVoteResponse.newBuilder() to construct.
private MsgAggregateExchangeRateVoteResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MsgAggregateExchangeRateVoteResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MsgAggregateExchangeRateVoteResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRateVoteResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRateVoteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse.class, terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse)) {
return super.equals(obj);
}
terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse other = (terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse 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 terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse 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 terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse 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(terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse 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;
}
/**
*
* MsgAggregateExchangeRateVoteResponse defines the Msg/AggregateExchangeRateVote response type.
*
*
* Protobuf type {@code terra.oracle.v1beta1.MsgAggregateExchangeRateVoteResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:terra.oracle.v1beta1.MsgAggregateExchangeRateVoteResponse)
terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRateVoteResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRateVoteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse.class, terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse.Builder.class);
}
// Construct using terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRateVoteResponse_descriptor;
}
@java.lang.Override
public terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse getDefaultInstanceForType() {
return terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse.getDefaultInstance();
}
@java.lang.Override
public terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse build() {
terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse buildPartial() {
terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse result = new terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse(this);
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 terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse) {
return mergeFrom((terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse other) {
if (other == terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@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:terra.oracle.v1beta1.MsgAggregateExchangeRateVoteResponse)
}
// @@protoc_insertion_point(class_scope:terra.oracle.v1beta1.MsgAggregateExchangeRateVoteResponse)
private static final terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse();
}
public static terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MsgAggregateExchangeRateVoteResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public terra.oracle.v1beta1.Tx.MsgAggregateExchangeRateVoteResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MsgDelegateFeedConsentOrBuilder extends
// @@protoc_insertion_point(interface_extends:terra.oracle.v1beta1.MsgDelegateFeedConsent)
com.google.protobuf.MessageOrBuilder {
/**
* string operator = 1 [(.gogoproto.moretags) = "yaml:\"operator\""];
* @return The operator.
*/
java.lang.String getOperator();
/**
* string operator = 1 [(.gogoproto.moretags) = "yaml:\"operator\""];
* @return The bytes for operator.
*/
com.google.protobuf.ByteString
getOperatorBytes();
/**
* string delegate = 2 [(.gogoproto.moretags) = "yaml:\"delegate\""];
* @return The delegate.
*/
java.lang.String getDelegate();
/**
* string delegate = 2 [(.gogoproto.moretags) = "yaml:\"delegate\""];
* @return The bytes for delegate.
*/
com.google.protobuf.ByteString
getDelegateBytes();
}
/**
*
* MsgDelegateFeedConsent represents a message to
* delegate oracle voting rights to another address.
*
*
* Protobuf type {@code terra.oracle.v1beta1.MsgDelegateFeedConsent}
*/
public static final class MsgDelegateFeedConsent extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:terra.oracle.v1beta1.MsgDelegateFeedConsent)
MsgDelegateFeedConsentOrBuilder {
private static final long serialVersionUID = 0L;
// Use MsgDelegateFeedConsent.newBuilder() to construct.
private MsgDelegateFeedConsent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MsgDelegateFeedConsent() {
operator_ = "";
delegate_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MsgDelegateFeedConsent();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgDelegateFeedConsent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgDelegateFeedConsent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent.class, terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent.Builder.class);
}
public static final int OPERATOR_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object operator_ = "";
/**
* string operator = 1 [(.gogoproto.moretags) = "yaml:\"operator\""];
* @return The operator.
*/
@java.lang.Override
public java.lang.String getOperator() {
java.lang.Object ref = operator_;
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();
operator_ = s;
return s;
}
}
/**
* string operator = 1 [(.gogoproto.moretags) = "yaml:\"operator\""];
* @return The bytes for operator.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOperatorBytes() {
java.lang.Object ref = operator_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
operator_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DELEGATE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object delegate_ = "";
/**
* string delegate = 2 [(.gogoproto.moretags) = "yaml:\"delegate\""];
* @return The delegate.
*/
@java.lang.Override
public java.lang.String getDelegate() {
java.lang.Object ref = delegate_;
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();
delegate_ = s;
return s;
}
}
/**
* string delegate = 2 [(.gogoproto.moretags) = "yaml:\"delegate\""];
* @return The bytes for delegate.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDelegateBytes() {
java.lang.Object ref = delegate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
delegate_ = 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(operator_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operator_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(delegate_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, delegate_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operator_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, operator_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(delegate_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, delegate_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent)) {
return super.equals(obj);
}
terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent other = (terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent) obj;
if (!getOperator()
.equals(other.getOperator())) return false;
if (!getDelegate()
.equals(other.getDelegate())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + OPERATOR_FIELD_NUMBER;
hash = (53 * hash) + getOperator().hashCode();
hash = (37 * hash) + DELEGATE_FIELD_NUMBER;
hash = (53 * hash) + getDelegate().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent 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 terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent 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 terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent 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(terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent 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;
}
/**
*
* MsgDelegateFeedConsent represents a message to
* delegate oracle voting rights to another address.
*
*
* Protobuf type {@code terra.oracle.v1beta1.MsgDelegateFeedConsent}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:terra.oracle.v1beta1.MsgDelegateFeedConsent)
terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgDelegateFeedConsent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgDelegateFeedConsent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent.class, terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent.Builder.class);
}
// Construct using terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
operator_ = "";
delegate_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgDelegateFeedConsent_descriptor;
}
@java.lang.Override
public terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent getDefaultInstanceForType() {
return terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent.getDefaultInstance();
}
@java.lang.Override
public terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent build() {
terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent buildPartial() {
terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent result = new terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.operator_ = operator_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.delegate_ = delegate_;
}
}
@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 terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent) {
return mergeFrom((terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent other) {
if (other == terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent.getDefaultInstance()) return this;
if (!other.getOperator().isEmpty()) {
operator_ = other.operator_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getDelegate().isEmpty()) {
delegate_ = other.delegate_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
operator_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
delegate_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object operator_ = "";
/**
* string operator = 1 [(.gogoproto.moretags) = "yaml:\"operator\""];
* @return The operator.
*/
public java.lang.String getOperator() {
java.lang.Object ref = operator_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
operator_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string operator = 1 [(.gogoproto.moretags) = "yaml:\"operator\""];
* @return The bytes for operator.
*/
public com.google.protobuf.ByteString
getOperatorBytes() {
java.lang.Object ref = operator_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
operator_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string operator = 1 [(.gogoproto.moretags) = "yaml:\"operator\""];
* @param value The operator to set.
* @return This builder for chaining.
*/
public Builder setOperator(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
operator_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string operator = 1 [(.gogoproto.moretags) = "yaml:\"operator\""];
* @return This builder for chaining.
*/
public Builder clearOperator() {
operator_ = getDefaultInstance().getOperator();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string operator = 1 [(.gogoproto.moretags) = "yaml:\"operator\""];
* @param value The bytes for operator to set.
* @return This builder for chaining.
*/
public Builder setOperatorBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
operator_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object delegate_ = "";
/**
* string delegate = 2 [(.gogoproto.moretags) = "yaml:\"delegate\""];
* @return The delegate.
*/
public java.lang.String getDelegate() {
java.lang.Object ref = delegate_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
delegate_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string delegate = 2 [(.gogoproto.moretags) = "yaml:\"delegate\""];
* @return The bytes for delegate.
*/
public com.google.protobuf.ByteString
getDelegateBytes() {
java.lang.Object ref = delegate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
delegate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string delegate = 2 [(.gogoproto.moretags) = "yaml:\"delegate\""];
* @param value The delegate to set.
* @return This builder for chaining.
*/
public Builder setDelegate(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
delegate_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string delegate = 2 [(.gogoproto.moretags) = "yaml:\"delegate\""];
* @return This builder for chaining.
*/
public Builder clearDelegate() {
delegate_ = getDefaultInstance().getDelegate();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string delegate = 2 [(.gogoproto.moretags) = "yaml:\"delegate\""];
* @param value The bytes for delegate to set.
* @return This builder for chaining.
*/
public Builder setDelegateBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
delegate_ = value;
bitField0_ |= 0x00000002;
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:terra.oracle.v1beta1.MsgDelegateFeedConsent)
}
// @@protoc_insertion_point(class_scope:terra.oracle.v1beta1.MsgDelegateFeedConsent)
private static final terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent();
}
public static terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MsgDelegateFeedConsent parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public terra.oracle.v1beta1.Tx.MsgDelegateFeedConsent getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MsgDelegateFeedConsentResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:terra.oracle.v1beta1.MsgDelegateFeedConsentResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* MsgDelegateFeedConsentResponse defines the Msg/DelegateFeedConsent response type.
*
*
* Protobuf type {@code terra.oracle.v1beta1.MsgDelegateFeedConsentResponse}
*/
public static final class MsgDelegateFeedConsentResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:terra.oracle.v1beta1.MsgDelegateFeedConsentResponse)
MsgDelegateFeedConsentResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use MsgDelegateFeedConsentResponse.newBuilder() to construct.
private MsgDelegateFeedConsentResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MsgDelegateFeedConsentResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MsgDelegateFeedConsentResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgDelegateFeedConsentResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgDelegateFeedConsentResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse.class, terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse)) {
return super.equals(obj);
}
terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse other = (terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse 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 terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse 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 terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse 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(terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse 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;
}
/**
*
* MsgDelegateFeedConsentResponse defines the Msg/DelegateFeedConsent response type.
*
*
* Protobuf type {@code terra.oracle.v1beta1.MsgDelegateFeedConsentResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:terra.oracle.v1beta1.MsgDelegateFeedConsentResponse)
terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgDelegateFeedConsentResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgDelegateFeedConsentResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse.class, terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse.Builder.class);
}
// Construct using terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return terra.oracle.v1beta1.Tx.internal_static_terra_oracle_v1beta1_MsgDelegateFeedConsentResponse_descriptor;
}
@java.lang.Override
public terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse getDefaultInstanceForType() {
return terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse.getDefaultInstance();
}
@java.lang.Override
public terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse build() {
terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse buildPartial() {
terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse result = new terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse(this);
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 terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse) {
return mergeFrom((terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse other) {
if (other == terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@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:terra.oracle.v1beta1.MsgDelegateFeedConsentResponse)
}
// @@protoc_insertion_point(class_scope:terra.oracle.v1beta1.MsgDelegateFeedConsentResponse)
private static final terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse();
}
public static terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MsgDelegateFeedConsentResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public terra.oracle.v1beta1.Tx.MsgDelegateFeedConsentResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRatePrevote_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRatePrevote_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRatePrevoteResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRatePrevoteResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRateVote_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRateVote_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRateVoteResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRateVoteResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_terra_oracle_v1beta1_MsgDelegateFeedConsent_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_terra_oracle_v1beta1_MsgDelegateFeedConsent_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_terra_oracle_v1beta1_MsgDelegateFeedConsentResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_terra_oracle_v1beta1_MsgDelegateFeedConsentResponse_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\035terra/oracle/v1beta1/tx.proto\022\024terra.o" +
"racle.v1beta1\032\024gogoproto/gogo.proto\"\226\001\n\037" +
"MsgAggregateExchangeRatePrevote\022\035\n\004hash\030" +
"\001 \001(\tB\017\362\336\037\013yaml:\"hash\"\022!\n\006feeder\030\002 \001(\tB\021" +
"\362\336\037\ryaml:\"feeder\"\022\'\n\tvalidator\030\003 \001(\tB\024\362\336" +
"\037\020yaml:\"validator\":\010\210\240\037\000\350\240\037\000\")\n\'MsgAggre" +
"gateExchangeRatePrevoteResponse\"\306\001\n\034MsgA" +
"ggregateExchangeRateVote\022\035\n\004salt\030\001 \001(\tB\017" +
"\362\336\037\013yaml:\"salt\"\0221\n\016exchange_rates\030\002 \001(\tB" +
"\031\362\336\037\025yaml:\"exchange_rates\"\022!\n\006feeder\030\003 \001" +
"(\tB\021\362\336\037\ryaml:\"feeder\"\022\'\n\tvalidator\030\004 \001(\t" +
"B\024\362\336\037\020yaml:\"validator\":\010\210\240\037\000\350\240\037\000\"&\n$MsgA" +
"ggregateExchangeRateVoteResponse\"p\n\026MsgD" +
"elegateFeedConsent\022%\n\010operator\030\001 \001(\tB\023\362\336" +
"\037\017yaml:\"operator\"\022%\n\010delegate\030\002 \001(\tB\023\362\336\037" +
"\017yaml:\"delegate\":\010\210\240\037\000\350\240\037\000\" \n\036MsgDelegat" +
"eFeedConsentResponse2\245\003\n\003Msg\022\224\001\n\034Aggrega" +
"teExchangeRatePrevote\0225.terra.oracle.v1b" +
"eta1.MsgAggregateExchangeRatePrevote\032=.t" +
"erra.oracle.v1beta1.MsgAggregateExchange" +
"RatePrevoteResponse\022\213\001\n\031AggregateExchang" +
"eRateVote\0222.terra.oracle.v1beta1.MsgAggr" +
"egateExchangeRateVote\032:.terra.oracle.v1b" +
"eta1.MsgAggregateExchangeRateVoteRespons" +
"e\022y\n\023DelegateFeedConsent\022,.terra.oracle." +
"v1beta1.MsgDelegateFeedConsent\0324.terra.o" +
"racle.v1beta1.MsgDelegateFeedConsentResp" +
"onseB1Z/github.com/classic-terra/core/v3" +
"/x/oracle/typesb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.GoGoProtos.getDescriptor(),
});
internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRatePrevote_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRatePrevote_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRatePrevote_descriptor,
new java.lang.String[] { "Hash", "Feeder", "Validator", });
internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRatePrevoteResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRatePrevoteResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRatePrevoteResponse_descriptor,
new java.lang.String[] { });
internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRateVote_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRateVote_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRateVote_descriptor,
new java.lang.String[] { "Salt", "ExchangeRates", "Feeder", "Validator", });
internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRateVoteResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRateVoteResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_terra_oracle_v1beta1_MsgAggregateExchangeRateVoteResponse_descriptor,
new java.lang.String[] { });
internal_static_terra_oracle_v1beta1_MsgDelegateFeedConsent_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_terra_oracle_v1beta1_MsgDelegateFeedConsent_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_terra_oracle_v1beta1_MsgDelegateFeedConsent_descriptor,
new java.lang.String[] { "Operator", "Delegate", });
internal_static_terra_oracle_v1beta1_MsgDelegateFeedConsentResponse_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_terra_oracle_v1beta1_MsgDelegateFeedConsentResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_terra_oracle_v1beta1_MsgDelegateFeedConsentResponse_descriptor,
new java.lang.String[] { });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.equal);
registry.add(com.google.protobuf.GoGoProtos.goprotoGetters);
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