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.
* MsgSubmitEvidence represents a message that supports submitting arbitrary
* Evidence of misbehavior such as equivocation or counterfactual signing.
*
*
* Protobuf type {@code cosmos.evidence.v1beta1.MsgSubmitEvidence}
*/
public static final class MsgSubmitEvidence extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.evidence.v1beta1.MsgSubmitEvidence)
MsgSubmitEvidenceOrBuilder {
private static final long serialVersionUID = 0L;
// Use MsgSubmitEvidence.newBuilder() to construct.
private MsgSubmitEvidence(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MsgSubmitEvidence() {
submitter_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MsgSubmitEvidence(
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();
submitter_ = s;
break;
}
case 18: {
com.google.protobuf.Any.Builder subBuilder = null;
if (evidence_ != null) {
subBuilder = evidence_.toBuilder();
}
evidence_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(evidence_);
evidence_ = subBuilder.buildPartial();
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.evidence.v1beta1.Tx.internal_static_cosmos_evidence_v1beta1_MsgSubmitEvidence_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.evidence.v1beta1.Tx.internal_static_cosmos_evidence_v1beta1_MsgSubmitEvidence_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.evidence.v1beta1.Tx.MsgSubmitEvidence.class, cosmos.evidence.v1beta1.Tx.MsgSubmitEvidence.Builder.class);
}
public static final int SUBMITTER_FIELD_NUMBER = 1;
private volatile java.lang.Object submitter_;
/**
* string submitter = 1;
*/
public java.lang.String getSubmitter() {
java.lang.Object ref = submitter_;
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();
submitter_ = s;
return s;
}
}
/**
* string submitter = 1;
*/
public com.google.protobuf.ByteString
getSubmitterBytes() {
java.lang.Object ref = submitter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
submitter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EVIDENCE_FIELD_NUMBER = 2;
private com.google.protobuf.Any evidence_;
/**
* .google.protobuf.Any evidence = 2 [(.cosmos_proto.accepts_interface) = "Evidence"];
*/
public boolean hasEvidence() {
return evidence_ != null;
}
/**
* .google.protobuf.Any evidence = 2 [(.cosmos_proto.accepts_interface) = "Evidence"];
*/
public com.google.protobuf.Any getEvidence() {
return evidence_ == null ? com.google.protobuf.Any.getDefaultInstance() : evidence_;
}
/**
* .google.protobuf.Any evidence = 2 [(.cosmos_proto.accepts_interface) = "Evidence"];
*/
public com.google.protobuf.AnyOrBuilder getEvidenceOrBuilder() {
return getEvidence();
}
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 (!getSubmitterBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, submitter_);
}
if (evidence_ != null) {
output.writeMessage(2, getEvidence());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getSubmitterBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, submitter_);
}
if (evidence_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getEvidence());
}
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 cosmos.evidence.v1beta1.Tx.MsgSubmitEvidence)) {
return super.equals(obj);
}
cosmos.evidence.v1beta1.Tx.MsgSubmitEvidence other = (cosmos.evidence.v1beta1.Tx.MsgSubmitEvidence) obj;
boolean result = true;
result = result && getSubmitter()
.equals(other.getSubmitter());
result = result && (hasEvidence() == other.hasEvidence());
if (hasEvidence()) {
result = result && getEvidence()
.equals(other.getEvidence());
}
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) + SUBMITTER_FIELD_NUMBER;
hash = (53 * hash) + getSubmitter().hashCode();
if (hasEvidence()) {
hash = (37 * hash) + EVIDENCE_FIELD_NUMBER;
hash = (53 * hash) + getEvidence().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.evidence.v1beta1.Tx.MsgSubmitEvidence parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.evidence.v1beta1.Tx.MsgSubmitEvidence parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.evidence.v1beta1.Tx.MsgSubmitEvidence parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.evidence.v1beta1.Tx.MsgSubmitEvidence parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.evidence.v1beta1.Tx.MsgSubmitEvidence parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.evidence.v1beta1.Tx.MsgSubmitEvidence parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.evidence.v1beta1.Tx.MsgSubmitEvidence parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.evidence.v1beta1.Tx.MsgSubmitEvidence 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 cosmos.evidence.v1beta1.Tx.MsgSubmitEvidence parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.evidence.v1beta1.Tx.MsgSubmitEvidence 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 cosmos.evidence.v1beta1.Tx.MsgSubmitEvidence parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.evidence.v1beta1.Tx.MsgSubmitEvidence 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(cosmos.evidence.v1beta1.Tx.MsgSubmitEvidence 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;
}
/**
*
* MsgSubmitEvidence represents a message that supports submitting arbitrary
* Evidence of misbehavior such as equivocation or counterfactual signing.
*