Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.provenance.marker.v1.WithdrawEscrowProposal Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: provenance/marker/v1/proposals.proto
package io.provenance.marker.v1;
/**
*
* WithdrawEscrowProposal defines a governance proposal to withdraw escrow coins from a marker
*
*
* Protobuf type {@code provenance.marker.v1.WithdrawEscrowProposal}
*/
public final class WithdrawEscrowProposal extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:provenance.marker.v1.WithdrawEscrowProposal)
WithdrawEscrowProposalOrBuilder {
private static final long serialVersionUID = 0L;
// Use WithdrawEscrowProposal.newBuilder() to construct.
private WithdrawEscrowProposal(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WithdrawEscrowProposal() {
title_ = "";
description_ = "";
denom_ = "";
amount_ = java.util.Collections.emptyList();
targetAdddress_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private WithdrawEscrowProposal(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
title_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
denom_ = s;
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
amount_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
amount_.add(
input.readMessage(cosmos.base.v1beta1.CoinOuterClass.Coin.parser(), extensionRegistry));
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
targetAdddress_ = s;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
amount_ = java.util.Collections.unmodifiableList(amount_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.marker.v1.Proposals.internal_static_provenance_marker_v1_WithdrawEscrowProposal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.marker.v1.Proposals.internal_static_provenance_marker_v1_WithdrawEscrowProposal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.marker.v1.WithdrawEscrowProposal.class, io.provenance.marker.v1.WithdrawEscrowProposal.Builder.class);
}
private int bitField0_;
public static final int TITLE_FIELD_NUMBER = 1;
private volatile java.lang.Object title_;
/**
* string title = 1;
*/
public java.lang.String getTitle() {
java.lang.Object ref = title_;
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();
title_ = s;
return s;
}
}
/**
* string title = 1;
*/
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 2;
private volatile java.lang.Object description_;
/**
* string description = 2;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
* string description = 2;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DENOM_FIELD_NUMBER = 3;
private volatile java.lang.Object denom_;
/**
* string denom = 3;
*/
public java.lang.String getDenom() {
java.lang.Object ref = denom_;
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();
denom_ = s;
return s;
}
}
/**
* string denom = 3;
*/
public com.google.protobuf.ByteString
getDenomBytes() {
java.lang.Object ref = denom_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
denom_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AMOUNT_FIELD_NUMBER = 4;
private java.util.List amount_;
/**
* repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public java.util.List getAmountList() {
return amount_;
}
/**
* repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public java.util.List extends cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>
getAmountOrBuilderList() {
return amount_;
}
/**
* repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public int getAmountCount() {
return amount_.size();
}
/**
* repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.Coin getAmount(int index) {
return amount_.get(index);
}
/**
* repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getAmountOrBuilder(
int index) {
return amount_.get(index);
}
public static final int TARGET_ADDDRESS_FIELD_NUMBER = 5;
private volatile java.lang.Object targetAdddress_;
/**
* string target_adddress = 5;
*/
public java.lang.String getTargetAdddress() {
java.lang.Object ref = targetAdddress_;
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();
targetAdddress_ = s;
return s;
}
}
/**
* string target_adddress = 5;
*/
public com.google.protobuf.ByteString
getTargetAdddressBytes() {
java.lang.Object ref = targetAdddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
targetAdddress_ = 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 (!getTitleBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
}
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
}
if (!getDenomBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, denom_);
}
for (int i = 0; i < amount_.size(); i++) {
output.writeMessage(4, amount_.get(i));
}
if (!getTargetAdddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, targetAdddress_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getTitleBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
}
if (!getDescriptionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
}
if (!getDenomBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, denom_);
}
for (int i = 0; i < amount_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, amount_.get(i));
}
if (!getTargetAdddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, targetAdddress_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.provenance.marker.v1.WithdrawEscrowProposal)) {
return super.equals(obj);
}
io.provenance.marker.v1.WithdrawEscrowProposal other = (io.provenance.marker.v1.WithdrawEscrowProposal) obj;
boolean result = true;
result = result && getTitle()
.equals(other.getTitle());
result = result && getDescription()
.equals(other.getDescription());
result = result && getDenom()
.equals(other.getDenom());
result = result && getAmountList()
.equals(other.getAmountList());
result = result && getTargetAdddress()
.equals(other.getTargetAdddress());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TITLE_FIELD_NUMBER;
hash = (53 * hash) + getTitle().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + DENOM_FIELD_NUMBER;
hash = (53 * hash) + getDenom().hashCode();
if (getAmountCount() > 0) {
hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + getAmountList().hashCode();
}
hash = (37 * hash) + TARGET_ADDDRESS_FIELD_NUMBER;
hash = (53 * hash) + getTargetAdddress().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.provenance.marker.v1.WithdrawEscrowProposal parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.marker.v1.WithdrawEscrowProposal parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.marker.v1.WithdrawEscrowProposal parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.marker.v1.WithdrawEscrowProposal parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.marker.v1.WithdrawEscrowProposal parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.marker.v1.WithdrawEscrowProposal parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.marker.v1.WithdrawEscrowProposal parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.marker.v1.WithdrawEscrowProposal 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 io.provenance.marker.v1.WithdrawEscrowProposal parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.provenance.marker.v1.WithdrawEscrowProposal 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 io.provenance.marker.v1.WithdrawEscrowProposal parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.marker.v1.WithdrawEscrowProposal 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(io.provenance.marker.v1.WithdrawEscrowProposal 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;
}
/**
*
* WithdrawEscrowProposal defines a governance proposal to withdraw escrow coins from a marker
*
*
* Protobuf type {@code provenance.marker.v1.WithdrawEscrowProposal}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:provenance.marker.v1.WithdrawEscrowProposal)
io.provenance.marker.v1.WithdrawEscrowProposalOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.marker.v1.Proposals.internal_static_provenance_marker_v1_WithdrawEscrowProposal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.marker.v1.Proposals.internal_static_provenance_marker_v1_WithdrawEscrowProposal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.marker.v1.WithdrawEscrowProposal.class, io.provenance.marker.v1.WithdrawEscrowProposal.Builder.class);
}
// Construct using io.provenance.marker.v1.WithdrawEscrowProposal.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAmountFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
title_ = "";
description_ = "";
denom_ = "";
if (amountBuilder_ == null) {
amount_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
amountBuilder_.clear();
}
targetAdddress_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.provenance.marker.v1.Proposals.internal_static_provenance_marker_v1_WithdrawEscrowProposal_descriptor;
}
@java.lang.Override
public io.provenance.marker.v1.WithdrawEscrowProposal getDefaultInstanceForType() {
return io.provenance.marker.v1.WithdrawEscrowProposal.getDefaultInstance();
}
@java.lang.Override
public io.provenance.marker.v1.WithdrawEscrowProposal build() {
io.provenance.marker.v1.WithdrawEscrowProposal result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.provenance.marker.v1.WithdrawEscrowProposal buildPartial() {
io.provenance.marker.v1.WithdrawEscrowProposal result = new io.provenance.marker.v1.WithdrawEscrowProposal(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.title_ = title_;
result.description_ = description_;
result.denom_ = denom_;
if (amountBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
amount_ = java.util.Collections.unmodifiableList(amount_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.amount_ = amount_;
} else {
result.amount_ = amountBuilder_.build();
}
result.targetAdddress_ = targetAdddress_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.provenance.marker.v1.WithdrawEscrowProposal) {
return mergeFrom((io.provenance.marker.v1.WithdrawEscrowProposal)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.provenance.marker.v1.WithdrawEscrowProposal other) {
if (other == io.provenance.marker.v1.WithdrawEscrowProposal.getDefaultInstance()) return this;
if (!other.getTitle().isEmpty()) {
title_ = other.title_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (!other.getDenom().isEmpty()) {
denom_ = other.denom_;
onChanged();
}
if (amountBuilder_ == null) {
if (!other.amount_.isEmpty()) {
if (amount_.isEmpty()) {
amount_ = other.amount_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureAmountIsMutable();
amount_.addAll(other.amount_);
}
onChanged();
}
} else {
if (!other.amount_.isEmpty()) {
if (amountBuilder_.isEmpty()) {
amountBuilder_.dispose();
amountBuilder_ = null;
amount_ = other.amount_;
bitField0_ = (bitField0_ & ~0x00000008);
amountBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAmountFieldBuilder() : null;
} else {
amountBuilder_.addAllMessages(other.amount_);
}
}
}
if (!other.getTargetAdddress().isEmpty()) {
targetAdddress_ = other.targetAdddress_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.provenance.marker.v1.WithdrawEscrowProposal parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.provenance.marker.v1.WithdrawEscrowProposal) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object title_ = "";
/**
* string title = 1;
*/
public java.lang.String getTitle() {
java.lang.Object ref = title_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
title_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string title = 1;
*/
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string title = 1;
*/
public Builder setTitle(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
title_ = value;
onChanged();
return this;
}
/**
* string title = 1;
*/
public Builder clearTitle() {
title_ = getDefaultInstance().getTitle();
onChanged();
return this;
}
/**
* string title = 1;
*/
public Builder setTitleBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
title_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
* string description = 2;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string description = 2;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string description = 2;
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
* string description = 2;
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
* string description = 2;
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private java.lang.Object denom_ = "";
/**
* string denom = 3;
*/
public java.lang.String getDenom() {
java.lang.Object ref = denom_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
denom_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string denom = 3;
*/
public com.google.protobuf.ByteString
getDenomBytes() {
java.lang.Object ref = denom_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
denom_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string denom = 3;
*/
public Builder setDenom(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
denom_ = value;
onChanged();
return this;
}
/**
* string denom = 3;
*/
public Builder clearDenom() {
denom_ = getDefaultInstance().getDenom();
onChanged();
return this;
}
/**
* string denom = 3;
*/
public Builder setDenomBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
denom_ = value;
onChanged();
return this;
}
private java.util.List amount_ =
java.util.Collections.emptyList();
private void ensureAmountIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
amount_ = new java.util.ArrayList(amount_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder> amountBuilder_;
/**
* repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public java.util.List getAmountList() {
if (amountBuilder_ == null) {
return java.util.Collections.unmodifiableList(amount_);
} else {
return amountBuilder_.getMessageList();
}
}
/**
* repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public int getAmountCount() {
if (amountBuilder_ == null) {
return amount_.size();
} else {
return amountBuilder_.getCount();
}
}
/**
* repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.Coin getAmount(int index) {
if (amountBuilder_ == null) {
return amount_.get(index);
} else {
return amountBuilder_.getMessage(index);
}
}
/**
* repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder setAmount(
int index, cosmos.base.v1beta1.CoinOuterClass.Coin value) {
if (amountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAmountIsMutable();
amount_.set(index, value);
onChanged();
} else {
amountBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder setAmount(
int index, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) {
if (amountBuilder_ == null) {
ensureAmountIsMutable();
amount_.set(index, builderForValue.build());
onChanged();
} else {
amountBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addAmount(cosmos.base.v1beta1.CoinOuterClass.Coin value) {
if (amountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAmountIsMutable();
amount_.add(value);
onChanged();
} else {
amountBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addAmount(
int index, cosmos.base.v1beta1.CoinOuterClass.Coin value) {
if (amountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAmountIsMutable();
amount_.add(index, value);
onChanged();
} else {
amountBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addAmount(
cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) {
if (amountBuilder_ == null) {
ensureAmountIsMutable();
amount_.add(builderForValue.build());
onChanged();
} else {
amountBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addAmount(
int index, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) {
if (amountBuilder_ == null) {
ensureAmountIsMutable();
amount_.add(index, builderForValue.build());
onChanged();
} else {
amountBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addAllAmount(
java.lang.Iterable extends cosmos.base.v1beta1.CoinOuterClass.Coin> values) {
if (amountBuilder_ == null) {
ensureAmountIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, amount_);
onChanged();
} else {
amountBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder clearAmount() {
if (amountBuilder_ == null) {
amount_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
amountBuilder_.clear();
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder removeAmount(int index) {
if (amountBuilder_ == null) {
ensureAmountIsMutable();
amount_.remove(index);
onChanged();
} else {
amountBuilder_.remove(index);
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.Coin.Builder getAmountBuilder(
int index) {
return getAmountFieldBuilder().getBuilder(index);
}
/**
* repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getAmountOrBuilder(
int index) {
if (amountBuilder_ == null) {
return amount_.get(index); } else {
return amountBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public java.util.List extends cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>
getAmountOrBuilderList() {
if (amountBuilder_ != null) {
return amountBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(amount_);
}
}
/**
* repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.Coin.Builder addAmountBuilder() {
return getAmountFieldBuilder().addBuilder(
cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance());
}
/**
* repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.Coin.Builder addAmountBuilder(
int index) {
return getAmountFieldBuilder().addBuilder(
index, cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance());
}
/**
* repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public java.util.List
getAmountBuilderList() {
return getAmountFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>
getAmountFieldBuilder() {
if (amountBuilder_ == null) {
amountBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>(
amount_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
amount_ = null;
}
return amountBuilder_;
}
private java.lang.Object targetAdddress_ = "";
/**
* string target_adddress = 5;
*/
public java.lang.String getTargetAdddress() {
java.lang.Object ref = targetAdddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
targetAdddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string target_adddress = 5;
*/
public com.google.protobuf.ByteString
getTargetAdddressBytes() {
java.lang.Object ref = targetAdddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
targetAdddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string target_adddress = 5;
*/
public Builder setTargetAdddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
targetAdddress_ = value;
onChanged();
return this;
}
/**
* string target_adddress = 5;
*/
public Builder clearTargetAdddress() {
targetAdddress_ = getDefaultInstance().getTargetAdddress();
onChanged();
return this;
}
/**
* string target_adddress = 5;
*/
public Builder setTargetAdddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
targetAdddress_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:provenance.marker.v1.WithdrawEscrowProposal)
}
// @@protoc_insertion_point(class_scope:provenance.marker.v1.WithdrawEscrowProposal)
private static final io.provenance.marker.v1.WithdrawEscrowProposal DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.provenance.marker.v1.WithdrawEscrowProposal();
}
public static io.provenance.marker.v1.WithdrawEscrowProposal getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WithdrawEscrowProposal parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new WithdrawEscrowProposal(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.provenance.marker.v1.WithdrawEscrowProposal getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}