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.
* base cosmos account information including address and coin holdings.
*
*
* .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"base_account\""];
*/
public cosmos.auth.v1beta1.Auth.BaseAccountOrBuilder getBaseAccountOrBuilder() {
return getBaseAccount();
}
public static final int MANAGER_FIELD_NUMBER = 2;
private volatile java.lang.Object manager_;
/**
*
* Address that owns the marker configuration. This account must sign any requests
* to change marker config (only valid for statuses prior to finalization)
*
* Address that owns the marker configuration. This account must sign any requests
* to change marker config (only valid for statuses prior to finalization)
*
*
* string manager = 2 [(.gogoproto.moretags) = "json:\"manager,omitempty\""];
*/
public com.google.protobuf.ByteString
getManagerBytes() {
java.lang.Object ref = manager_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
manager_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ACCESS_CONTROL_FIELD_NUMBER = 3;
private java.util.List accessControl_;
/**
*
* the total supply expected for a marker. This is the amount that is minted when a marker is created.
*
*
* string supply = 6 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "json:\"total_supply\" yaml:\"total_supply\""];
*/
public com.google.protobuf.ByteString
getSupplyBytes() {
java.lang.Object ref = supply_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
supply_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MARKER_TYPE_FIELD_NUMBER = 7;
private int markerType_;
/**
*
* Marker type information
*
*
* .provenance.marker.v1.MarkerType marker_type = 7 [(.gogoproto.moretags) = "json:\"marker_type,omitempty\""];
*/
public int getMarkerTypeValue() {
return markerType_;
}
/**
*
* Marker type information
*
*
* .provenance.marker.v1.MarkerType marker_type = 7 [(.gogoproto.moretags) = "json:\"marker_type,omitempty\""];
*/
public io.provenance.marker.v1.MarkerType getMarkerType() {
@SuppressWarnings("deprecation")
io.provenance.marker.v1.MarkerType result = io.provenance.marker.v1.MarkerType.valueOf(markerType_);
return result == null ? io.provenance.marker.v1.MarkerType.UNRECOGNIZED : result;
}
public static final int SUPPLY_FIXED_FIELD_NUMBER = 8;
private boolean supplyFixed_;
/**
*
* A fixed supply will mint additional coin automatically if the total supply decreases below a set value. This
* may occur if the coin is burned or an account holding the coin is slashed. (default: true)
*
*
* bool supply_fixed = 8;
*/
public boolean getSupplyFixed() {
return supplyFixed_;
}
public static final int ALLOW_GOVERNANCE_CONTROL_FIELD_NUMBER = 9;
private boolean allowGovernanceControl_;
/**
*
* indicates that governance based control is allowed for this marker
*
*
* bool allow_governance_control = 9;
*/
public boolean getAllowGovernanceControl() {
return allowGovernanceControl_;
}
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 (baseAccount_ != null) {
output.writeMessage(1, getBaseAccount());
}
if (!getManagerBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, manager_);
}
for (int i = 0; i < accessControl_.size(); i++) {
output.writeMessage(3, accessControl_.get(i));
}
if (status_ != io.provenance.marker.v1.MarkerStatus.MARKER_STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(4, status_);
}
if (!getDenomBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, denom_);
}
if (!getSupplyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, supply_);
}
if (markerType_ != io.provenance.marker.v1.MarkerType.MARKER_TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(7, markerType_);
}
if (supplyFixed_ != false) {
output.writeBool(8, supplyFixed_);
}
if (allowGovernanceControl_ != false) {
output.writeBool(9, allowGovernanceControl_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (baseAccount_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getBaseAccount());
}
if (!getManagerBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, manager_);
}
for (int i = 0; i < accessControl_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, accessControl_.get(i));
}
if (status_ != io.provenance.marker.v1.MarkerStatus.MARKER_STATUS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, status_);
}
if (!getDenomBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, denom_);
}
if (!getSupplyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, supply_);
}
if (markerType_ != io.provenance.marker.v1.MarkerType.MARKER_TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, markerType_);
}
if (supplyFixed_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, supplyFixed_);
}
if (allowGovernanceControl_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, allowGovernanceControl_);
}
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.MarkerAccount)) {
return super.equals(obj);
}
io.provenance.marker.v1.MarkerAccount other = (io.provenance.marker.v1.MarkerAccount) obj;
boolean result = true;
result = result && (hasBaseAccount() == other.hasBaseAccount());
if (hasBaseAccount()) {
result = result && getBaseAccount()
.equals(other.getBaseAccount());
}
result = result && getManager()
.equals(other.getManager());
result = result && getAccessControlList()
.equals(other.getAccessControlList());
result = result && status_ == other.status_;
result = result && getDenom()
.equals(other.getDenom());
result = result && getSupply()
.equals(other.getSupply());
result = result && markerType_ == other.markerType_;
result = result && (getSupplyFixed()
== other.getSupplyFixed());
result = result && (getAllowGovernanceControl()
== other.getAllowGovernanceControl());
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();
if (hasBaseAccount()) {
hash = (37 * hash) + BASE_ACCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getBaseAccount().hashCode();
}
hash = (37 * hash) + MANAGER_FIELD_NUMBER;
hash = (53 * hash) + getManager().hashCode();
if (getAccessControlCount() > 0) {
hash = (37 * hash) + ACCESS_CONTROL_FIELD_NUMBER;
hash = (53 * hash) + getAccessControlList().hashCode();
}
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (37 * hash) + DENOM_FIELD_NUMBER;
hash = (53 * hash) + getDenom().hashCode();
hash = (37 * hash) + SUPPLY_FIELD_NUMBER;
hash = (53 * hash) + getSupply().hashCode();
hash = (37 * hash) + MARKER_TYPE_FIELD_NUMBER;
hash = (53 * hash) + markerType_;
hash = (37 * hash) + SUPPLY_FIXED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSupplyFixed());
hash = (37 * hash) + ALLOW_GOVERNANCE_CONTROL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAllowGovernanceControl());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.provenance.marker.v1.MarkerAccount parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.marker.v1.MarkerAccount 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.MarkerAccount parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.marker.v1.MarkerAccount 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.MarkerAccount parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.marker.v1.MarkerAccount parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.marker.v1.MarkerAccount parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.marker.v1.MarkerAccount 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.MarkerAccount parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.provenance.marker.v1.MarkerAccount 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.MarkerAccount parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.marker.v1.MarkerAccount 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.MarkerAccount 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;
}
/**
*
* MarkerAccount holds the marker configuration information in addition to a base account structure.
*
* Address that owns the marker configuration. This account must sign any requests
* to change marker config (only valid for statuses prior to finalization)
*
* Address that owns the marker configuration. This account must sign any requests
* to change marker config (only valid for statuses prior to finalization)
*
* Address that owns the marker configuration. This account must sign any requests
* to change marker config (only valid for statuses prior to finalization)
*
* Address that owns the marker configuration. This account must sign any requests
* to change marker config (only valid for statuses prior to finalization)
*
* Address that owns the marker configuration. This account must sign any requests
* to change marker config (only valid for statuses prior to finalization)
*
* A fixed supply will mint additional coin automatically if the total supply decreases below a set value. This
* may occur if the coin is burned or an account holding the coin is slashed. (default: true)
*
* A fixed supply will mint additional coin automatically if the total supply decreases below a set value. This
* may occur if the coin is burned or an account holding the coin is slashed. (default: true)
*
* A fixed supply will mint additional coin automatically if the total supply decreases below a set value. This
* may occur if the coin is burned or an account holding the coin is slashed. (default: true)
*