- To view this page ensure that Adobe Flash Player version - 11.4.0 or greater is installed. -
- -- To view this page ensure that Adobe Flash Player version - 11.4.0 or greater is installed. -
- -- To view this page ensure that Adobe Flash Player version - 11.4.0 or greater is installed. -
- -- To view this page ensure that Adobe Flash Player version - ${version_major}.${version_minor}.${version_revision} or greater is installed. -
- -").append(code).append("
");
- buffer.append("");
- for(String key:this.getData().keySet())
- {
- buffer.append("<"+key+">").append(this.get(key)).append(""+key+">");
+ buffer.append("#ReplyBody#").append("\n");
+ buffer.append("key:").append(this.getKey()).append("\n");
+ buffer.append("timestamp:").append(timestamp).append("\n");
+ buffer.append("code:").append(code).append("\n");
+
+ if(!data.isEmpty()){
+ buffer.append("data{").append("\n");
+ for(String key:getKeySet())
+ {
+ buffer.append(key).append(":").append(this.get(key)).append("\n");
+ }
+ buffer.append("}");
}
- buffer.append("");
- buffer.append("string mid = 1;
+ */
+ java.lang.String getMid();
+ /**
+ * string mid = 1;
+ */
+ com.google.protobuf.ByteString
+ getMidBytes();
+
+ /**
+ * string action = 2;
+ */
+ java.lang.String getAction();
+ /**
+ * string action = 2;
+ */
+ com.google.protobuf.ByteString
+ getActionBytes();
+
+ /**
+ * string content = 3;
+ */
+ java.lang.String getContent();
+ /**
+ * string content = 3;
+ */
+ com.google.protobuf.ByteString
+ getContentBytes();
+
+ /**
+ * string sender = 4;
+ */
+ java.lang.String getSender();
+ /**
+ * string sender = 4;
+ */
+ com.google.protobuf.ByteString
+ getSenderBytes();
+
+ /**
+ * string receiver = 5;
+ */
+ java.lang.String getReceiver();
+ /**
+ * string receiver = 5;
+ */
+ com.google.protobuf.ByteString
+ getReceiverBytes();
+
+ /**
+ * string extra = 6;
+ */
+ java.lang.String getExtra();
+ /**
+ * string extra = 6;
+ */
+ com.google.protobuf.ByteString
+ getExtraBytes();
+
+ /**
+ * string title = 7;
+ */
+ java.lang.String getTitle();
+ /**
+ * string title = 7;
+ */
+ com.google.protobuf.ByteString
+ getTitleBytes();
+
+ /**
+ * string format = 8;
+ */
+ java.lang.String getFormat();
+ /**
+ * string format = 8;
+ */
+ com.google.protobuf.ByteString
+ getFormatBytes();
+
+ /**
+ * int64 timestamp = 9;
+ */
+ long getTimestamp();
+ }
+ /**
+ * Protobuf type {@code com.farsunset.cim.sdk.android.model.proto.Model}
+ */
+ public static final class Model extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.farsunset.cim.sdk.android.model.proto.Model)
+ ModelOrBuilder {
+ // Use Model.newBuilder() to construct.
+ private Model(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Model() {
+ mid_ = "";
+ action_ = "";
+ content_ = "";
+ sender_ = "";
+ receiver_ = "";
+ extra_ = "";
+ title_ = "";
+ format_ = "";
+ timestamp_ = 0L;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private Model(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ mid_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ action_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ content_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ sender_ = s;
+ break;
+ }
+ case 42: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ receiver_ = s;
+ break;
+ }
+ case 50: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ extra_ = s;
+ break;
+ }
+ case 58: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ title_ = s;
+ break;
+ }
+ case 66: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ format_ = s;
+ break;
+ }
+ case 72: {
+
+ timestamp_ = input.readInt64();
+ 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 {
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.farsunset.cim.sdk.android.model.proto.MessageProto.internal_static_com_farsunset_cim_sdk_android_model_proto_Model_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.farsunset.cim.sdk.android.model.proto.MessageProto.internal_static_com_farsunset_cim_sdk_android_model_proto_Model_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.farsunset.cim.sdk.android.model.proto.MessageProto.Model.class, com.farsunset.cim.sdk.android.model.proto.MessageProto.Model.Builder.class);
+ }
+
+ public static final int MID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object mid_;
+ /**
+ * string mid = 1;
+ */
+ public java.lang.String getMid() {
+ java.lang.Object ref = mid_;
+ 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();
+ mid_ = s;
+ return s;
+ }
+ }
+ /**
+ * string mid = 1;
+ */
+ public com.google.protobuf.ByteString
+ getMidBytes() {
+ java.lang.Object ref = mid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ mid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ACTION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object action_;
+ /**
+ * string action = 2;
+ */
+ public java.lang.String getAction() {
+ java.lang.Object ref = action_;
+ 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();
+ action_ = s;
+ return s;
+ }
+ }
+ /**
+ * string action = 2;
+ */
+ public com.google.protobuf.ByteString
+ getActionBytes() {
+ java.lang.Object ref = action_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ action_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CONTENT_FIELD_NUMBER = 3;
+ private volatile java.lang.Object content_;
+ /**
+ * string content = 3;
+ */
+ public java.lang.String getContent() {
+ java.lang.Object ref = content_;
+ 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();
+ content_ = s;
+ return s;
+ }
+ }
+ /**
+ * string content = 3;
+ */
+ public com.google.protobuf.ByteString
+ getContentBytes() {
+ java.lang.Object ref = content_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ content_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SENDER_FIELD_NUMBER = 4;
+ private volatile java.lang.Object sender_;
+ /**
+ * string sender = 4;
+ */
+ public java.lang.String getSender() {
+ java.lang.Object ref = sender_;
+ 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();
+ sender_ = s;
+ return s;
+ }
+ }
+ /**
+ * string sender = 4;
+ */
+ public com.google.protobuf.ByteString
+ getSenderBytes() {
+ java.lang.Object ref = sender_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sender_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int RECEIVER_FIELD_NUMBER = 5;
+ private volatile java.lang.Object receiver_;
+ /**
+ * string receiver = 5;
+ */
+ public java.lang.String getReceiver() {
+ java.lang.Object ref = receiver_;
+ 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();
+ receiver_ = s;
+ return s;
+ }
+ }
+ /**
+ * string receiver = 5;
+ */
+ public com.google.protobuf.ByteString
+ getReceiverBytes() {
+ java.lang.Object ref = receiver_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ receiver_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int EXTRA_FIELD_NUMBER = 6;
+ private volatile java.lang.Object extra_;
+ /**
+ * string extra = 6;
+ */
+ public java.lang.String getExtra() {
+ java.lang.Object ref = extra_;
+ 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();
+ extra_ = s;
+ return s;
+ }
+ }
+ /**
+ * string extra = 6;
+ */
+ public com.google.protobuf.ByteString
+ getExtraBytes() {
+ java.lang.Object ref = extra_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ extra_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TITLE_FIELD_NUMBER = 7;
+ private volatile java.lang.Object title_;
+ /**
+ * string title = 7;
+ */
+ 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 = 7;
+ */
+ 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 FORMAT_FIELD_NUMBER = 8;
+ private volatile java.lang.Object format_;
+ /**
+ * string format = 8;
+ */
+ public java.lang.String getFormat() {
+ java.lang.Object ref = format_;
+ 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();
+ format_ = s;
+ return s;
+ }
+ }
+ /**
+ * string format = 8;
+ */
+ public com.google.protobuf.ByteString
+ getFormatBytes() {
+ java.lang.Object ref = format_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ format_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TIMESTAMP_FIELD_NUMBER = 9;
+ private long timestamp_;
+ /**
+ * int64 timestamp = 9;
+ */
+ public long getTimestamp() {
+ return timestamp_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getMidBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_);
+ }
+ if (!getActionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, action_);
+ }
+ if (!getContentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, content_);
+ }
+ if (!getSenderBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sender_);
+ }
+ if (!getReceiverBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, receiver_);
+ }
+ if (!getExtraBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, extra_);
+ }
+ if (!getTitleBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, title_);
+ }
+ if (!getFormatBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, format_);
+ }
+ if (timestamp_ != 0L) {
+ output.writeInt64(9, timestamp_);
+ }
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getMidBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mid_);
+ }
+ if (!getActionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, action_);
+ }
+ if (!getContentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, content_);
+ }
+ if (!getSenderBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sender_);
+ }
+ if (!getReceiverBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, receiver_);
+ }
+ if (!getExtraBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, extra_);
+ }
+ if (!getTitleBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, title_);
+ }
+ if (!getFormatBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, format_);
+ }
+ if (timestamp_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(9, timestamp_);
+ }
+ memoizedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.farsunset.cim.sdk.android.model.proto.MessageProto.Model)) {
+ return super.equals(obj);
+ }
+ com.farsunset.cim.sdk.android.model.proto.MessageProto.Model other = (com.farsunset.cim.sdk.android.model.proto.MessageProto.Model) obj;
+
+ boolean result = true;
+ result = result && getMid()
+ .equals(other.getMid());
+ result = result && getAction()
+ .equals(other.getAction());
+ result = result && getContent()
+ .equals(other.getContent());
+ result = result && getSender()
+ .equals(other.getSender());
+ result = result && getReceiver()
+ .equals(other.getReceiver());
+ result = result && getExtra()
+ .equals(other.getExtra());
+ result = result && getTitle()
+ .equals(other.getTitle());
+ result = result && getFormat()
+ .equals(other.getFormat());
+ result = result && (getTimestamp()
+ == other.getTimestamp());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + MID_FIELD_NUMBER;
+ hash = (53 * hash) + getMid().hashCode();
+ hash = (37 * hash) + ACTION_FIELD_NUMBER;
+ hash = (53 * hash) + getAction().hashCode();
+ hash = (37 * hash) + CONTENT_FIELD_NUMBER;
+ hash = (53 * hash) + getContent().hashCode();
+ hash = (37 * hash) + SENDER_FIELD_NUMBER;
+ hash = (53 * hash) + getSender().hashCode();
+ hash = (37 * hash) + RECEIVER_FIELD_NUMBER;
+ hash = (53 * hash) + getReceiver().hashCode();
+ hash = (37 * hash) + EXTRA_FIELD_NUMBER;
+ hash = (53 * hash) + getExtra().hashCode();
+ hash = (37 * hash) + TITLE_FIELD_NUMBER;
+ hash = (53 * hash) + getTitle().hashCode();
+ hash = (37 * hash) + FORMAT_FIELD_NUMBER;
+ hash = (53 * hash) + getFormat().hashCode();
+ hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getTimestamp());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.farsunset.cim.sdk.android.model.proto.MessageProto.Model parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.farsunset.cim.sdk.android.model.proto.MessageProto.Model parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.farsunset.cim.sdk.android.model.proto.MessageProto.Model parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.farsunset.cim.sdk.android.model.proto.MessageProto.Model parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.farsunset.cim.sdk.android.model.proto.MessageProto.Model parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.farsunset.cim.sdk.android.model.proto.MessageProto.Model 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 com.farsunset.cim.sdk.android.model.proto.MessageProto.Model parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.farsunset.cim.sdk.android.model.proto.MessageProto.Model 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 com.farsunset.cim.sdk.android.model.proto.MessageProto.Model parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.farsunset.cim.sdk.android.model.proto.MessageProto.Model parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.farsunset.cim.sdk.android.model.proto.MessageProto.Model prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * Protobuf type {@code com.farsunset.cim.sdk.android.model.proto.Model}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring mid = 1;
+ */
+ public java.lang.String getMid() {
+ java.lang.Object ref = mid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ mid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string mid = 1;
+ */
+ public com.google.protobuf.ByteString
+ getMidBytes() {
+ java.lang.Object ref = mid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ mid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string mid = 1;
+ */
+ public Builder setMid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ mid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string mid = 1;
+ */
+ public Builder clearMid() {
+
+ mid_ = getDefaultInstance().getMid();
+ onChanged();
+ return this;
+ }
+ /**
+ * string mid = 1;
+ */
+ public Builder setMidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ mid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object action_ = "";
+ /**
+ * string action = 2;
+ */
+ public java.lang.String getAction() {
+ java.lang.Object ref = action_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ action_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string action = 2;
+ */
+ public com.google.protobuf.ByteString
+ getActionBytes() {
+ java.lang.Object ref = action_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ action_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string action = 2;
+ */
+ public Builder setAction(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ action_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string action = 2;
+ */
+ public Builder clearAction() {
+
+ action_ = getDefaultInstance().getAction();
+ onChanged();
+ return this;
+ }
+ /**
+ * string action = 2;
+ */
+ public Builder setActionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ action_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object content_ = "";
+ /**
+ * string content = 3;
+ */
+ public java.lang.String getContent() {
+ java.lang.Object ref = content_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ content_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string content = 3;
+ */
+ public com.google.protobuf.ByteString
+ getContentBytes() {
+ java.lang.Object ref = content_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ content_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string content = 3;
+ */
+ public Builder setContent(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ content_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string content = 3;
+ */
+ public Builder clearContent() {
+
+ content_ = getDefaultInstance().getContent();
+ onChanged();
+ return this;
+ }
+ /**
+ * string content = 3;
+ */
+ public Builder setContentBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ content_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object sender_ = "";
+ /**
+ * string sender = 4;
+ */
+ public java.lang.String getSender() {
+ java.lang.Object ref = sender_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sender_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string sender = 4;
+ */
+ public com.google.protobuf.ByteString
+ getSenderBytes() {
+ java.lang.Object ref = sender_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sender_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string sender = 4;
+ */
+ public Builder setSender(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ sender_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string sender = 4;
+ */
+ public Builder clearSender() {
+
+ sender_ = getDefaultInstance().getSender();
+ onChanged();
+ return this;
+ }
+ /**
+ * string sender = 4;
+ */
+ public Builder setSenderBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ sender_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object receiver_ = "";
+ /**
+ * string receiver = 5;
+ */
+ public java.lang.String getReceiver() {
+ java.lang.Object ref = receiver_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ receiver_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string receiver = 5;
+ */
+ public com.google.protobuf.ByteString
+ getReceiverBytes() {
+ java.lang.Object ref = receiver_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ receiver_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string receiver = 5;
+ */
+ public Builder setReceiver(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ receiver_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string receiver = 5;
+ */
+ public Builder clearReceiver() {
+
+ receiver_ = getDefaultInstance().getReceiver();
+ onChanged();
+ return this;
+ }
+ /**
+ * string receiver = 5;
+ */
+ public Builder setReceiverBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ receiver_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object extra_ = "";
+ /**
+ * string extra = 6;
+ */
+ public java.lang.String getExtra() {
+ java.lang.Object ref = extra_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ extra_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string extra = 6;
+ */
+ public com.google.protobuf.ByteString
+ getExtraBytes() {
+ java.lang.Object ref = extra_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ extra_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string extra = 6;
+ */
+ public Builder setExtra(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ extra_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string extra = 6;
+ */
+ public Builder clearExtra() {
+
+ extra_ = getDefaultInstance().getExtra();
+ onChanged();
+ return this;
+ }
+ /**
+ * string extra = 6;
+ */
+ public Builder setExtraBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ extra_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object title_ = "";
+ /**
+ * string title = 7;
+ */
+ 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 = 7;
+ */
+ 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 = 7;
+ */
+ public Builder setTitle(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ title_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string title = 7;
+ */
+ public Builder clearTitle() {
+
+ title_ = getDefaultInstance().getTitle();
+ onChanged();
+ return this;
+ }
+ /**
+ * string title = 7;
+ */
+ 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 format_ = "";
+ /**
+ * string format = 8;
+ */
+ public java.lang.String getFormat() {
+ java.lang.Object ref = format_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ format_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string format = 8;
+ */
+ public com.google.protobuf.ByteString
+ getFormatBytes() {
+ java.lang.Object ref = format_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ format_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string format = 8;
+ */
+ public Builder setFormat(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ format_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string format = 8;
+ */
+ public Builder clearFormat() {
+
+ format_ = getDefaultInstance().getFormat();
+ onChanged();
+ return this;
+ }
+ /**
+ * string format = 8;
+ */
+ public Builder setFormatBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ format_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long timestamp_ ;
+ /**
+ * int64 timestamp = 9;
+ */
+ public long getTimestamp() {
+ return timestamp_;
+ }
+ /**
+ * int64 timestamp = 9;
+ */
+ public Builder setTimestamp(long value) {
+
+ timestamp_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 timestamp = 9;
+ */
+ public Builder clearTimestamp() {
+
+ timestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:com.farsunset.cim.sdk.android.model.proto.Model)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.farsunset.cim.sdk.android.model.proto.Model)
+ private static final com.farsunset.cim.sdk.android.model.proto.MessageProto.Model DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.farsunset.cim.sdk.android.model.proto.MessageProto.Model();
+ }
+
+ public static com.farsunset.cim.sdk.android.model.proto.MessageProto.Model getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring key = 1;
+ */
+ java.lang.String getKey();
+ /**
+ * string key = 1;
+ */
+ com.google.protobuf.ByteString
+ getKeyBytes();
+
+ /**
+ * string code = 2;
+ */
+ java.lang.String getCode();
+ /**
+ * string code = 2;
+ */
+ com.google.protobuf.ByteString
+ getCodeBytes();
+
+ /**
+ * string message = 3;
+ */
+ java.lang.String getMessage();
+ /**
+ * string message = 3;
+ */
+ com.google.protobuf.ByteString
+ getMessageBytes();
+
+ /**
+ * int64 timestamp = 4;
+ */
+ long getTimestamp();
+
+ /**
+ * map<string, string> data = 5;
+ */
+ int getDataCount();
+ /**
+ * map<string, string> data = 5;
+ */
+ boolean containsData(
+ java.lang.String key);
+ /**
+ * Use {@link #getDataMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Mapmap<string, string> data = 5;
+ */
+ java.util.Mapmap<string, string> data = 5;
+ */
+
+ java.lang.String getDataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue);
+ /**
+ * map<string, string> data = 5;
+ */
+
+ java.lang.String getDataOrThrow(
+ java.lang.String key);
+ }
+ /**
+ * Protobuf type {@code com.farsunset.cim.sdk.android.model.proto.Model}
+ */
+ public static final class Model extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.farsunset.cim.sdk.android.model.proto.Model)
+ ModelOrBuilder {
+ // Use Model.newBuilder() to construct.
+ private Model(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Model() {
+ key_ = "";
+ code_ = "";
+ message_ = "";
+ timestamp_ = 0L;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private Model(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ key_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ code_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ message_ = s;
+ break;
+ }
+ case 32: {
+
+ timestamp_ = input.readInt64();
+ break;
+ }
+ case 42: {
+ if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
+ data_ = com.google.protobuf.MapField.newMapField(
+ DataDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000010;
+ }
+ com.google.protobuf.MapEntrystring key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ 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();
+ key_ = s;
+ return s;
+ }
+ }
+ /**
+ * string key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CODE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object code_;
+ /**
+ * string code = 2;
+ */
+ public java.lang.String getCode() {
+ java.lang.Object ref = code_;
+ 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();
+ code_ = s;
+ return s;
+ }
+ }
+ /**
+ * string code = 2;
+ */
+ public com.google.protobuf.ByteString
+ getCodeBytes() {
+ java.lang.Object ref = code_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ code_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int MESSAGE_FIELD_NUMBER = 3;
+ private volatile java.lang.Object message_;
+ /**
+ * string message = 3;
+ */
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ 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();
+ message_ = s;
+ return s;
+ }
+ }
+ /**
+ * string message = 3;
+ */
+ public com.google.protobuf.ByteString
+ getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TIMESTAMP_FIELD_NUMBER = 4;
+ private long timestamp_;
+ /**
+ * int64 timestamp = 4;
+ */
+ public long getTimestamp() {
+ return timestamp_;
+ }
+
+ public static final int DATA_FIELD_NUMBER = 5;
+ private static final class DataDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntry
+ .map<string, string> data = 5;
+ */
+
+ public boolean containsData(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetData().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getDataMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> data = 5;
+ */
+
+ public java.util.Mapmap<string, string> data = 5;
+ */
+
+ public java.lang.String getDataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> data = 5;
+ */
+
+ public java.lang.String getDataOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapstring key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string key = 1;
+ */
+ public Builder setKey(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string key = 1;
+ */
+ public Builder clearKey() {
+
+ key_ = getDefaultInstance().getKey();
+ onChanged();
+ return this;
+ }
+ /**
+ * string key = 1;
+ */
+ public Builder setKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object code_ = "";
+ /**
+ * string code = 2;
+ */
+ public java.lang.String getCode() {
+ java.lang.Object ref = code_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ code_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string code = 2;
+ */
+ public com.google.protobuf.ByteString
+ getCodeBytes() {
+ java.lang.Object ref = code_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ code_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string code = 2;
+ */
+ public Builder setCode(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ code_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string code = 2;
+ */
+ public Builder clearCode() {
+
+ code_ = getDefaultInstance().getCode();
+ onChanged();
+ return this;
+ }
+ /**
+ * string code = 2;
+ */
+ public Builder setCodeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ code_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object message_ = "";
+ /**
+ * string message = 3;
+ */
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ message_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string message = 3;
+ */
+ public com.google.protobuf.ByteString
+ getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string message = 3;
+ */
+ public Builder setMessage(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ message_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string message = 3;
+ */
+ public Builder clearMessage() {
+
+ message_ = getDefaultInstance().getMessage();
+ onChanged();
+ return this;
+ }
+ /**
+ * string message = 3;
+ */
+ public Builder setMessageBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ message_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long timestamp_ ;
+ /**
+ * int64 timestamp = 4;
+ */
+ public long getTimestamp() {
+ return timestamp_;
+ }
+ /**
+ * int64 timestamp = 4;
+ */
+ public Builder setTimestamp(long value) {
+
+ timestamp_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 timestamp = 4;
+ */
+ public Builder clearTimestamp() {
+
+ timestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, java.lang.String> data_;
+ private com.google.protobuf.MapFieldmap<string, string> data = 5;
+ */
+
+ public boolean containsData(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetData().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getDataMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> data = 5;
+ */
+
+ public java.util.Mapmap<string, string> data = 5;
+ */
+
+ public java.lang.String getDataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> data = 5;
+ */
+
+ public java.lang.String getDataOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> data = 5;
+ */
+
+ public Builder removeData(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableData().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> data = 5;
+ */
+ public Builder putData(
+ java.lang.String key,
+ java.lang.String value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ if (value == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableData().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * map<string, string> data = 5;
+ */
+
+ public Builder putAllData(
+ java.util.Mapstring key = 1;
+ */
+ java.lang.String getKey();
+ /**
+ * string key = 1;
+ */
+ com.google.protobuf.ByteString
+ getKeyBytes();
+
+ /**
+ * int64 timestamp = 2;
+ */
+ long getTimestamp();
+
+ /**
+ * map<string, string> data = 3;
+ */
+ int getDataCount();
+ /**
+ * map<string, string> data = 3;
+ */
+ boolean containsData(
+ java.lang.String key);
+ /**
+ * Use {@link #getDataMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Mapmap<string, string> data = 3;
+ */
+ java.util.Mapmap<string, string> data = 3;
+ */
+
+ java.lang.String getDataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue);
+ /**
+ * map<string, string> data = 3;
+ */
+
+ java.lang.String getDataOrThrow(
+ java.lang.String key);
+ }
+ /**
+ * Protobuf type {@code com.farsunset.cim.sdk.android.model.proto.Model}
+ */
+ public static final class Model extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.farsunset.cim.sdk.android.model.proto.Model)
+ ModelOrBuilder {
+ // Use Model.newBuilder() to construct.
+ private Model(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Model() {
+ key_ = "";
+ timestamp_ = 0L;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private Model(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ key_ = s;
+ break;
+ }
+ case 16: {
+
+ timestamp_ = input.readInt64();
+ break;
+ }
+ case 26: {
+ if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
+ data_ = com.google.protobuf.MapField.newMapField(
+ DataDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000004;
+ }
+ com.google.protobuf.MapEntrystring key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ 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();
+ key_ = s;
+ return s;
+ }
+ }
+ /**
+ * string key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TIMESTAMP_FIELD_NUMBER = 2;
+ private long timestamp_;
+ /**
+ * int64 timestamp = 2;
+ */
+ public long getTimestamp() {
+ return timestamp_;
+ }
+
+ public static final int DATA_FIELD_NUMBER = 3;
+ private static final class DataDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntry
+ .map<string, string> data = 3;
+ */
+
+ public boolean containsData(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetData().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getDataMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> data = 3;
+ */
+
+ public java.util.Mapmap<string, string> data = 3;
+ */
+
+ public java.lang.String getDataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> data = 3;
+ */
+
+ public java.lang.String getDataOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapstring key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string key = 1;
+ */
+ public Builder setKey(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string key = 1;
+ */
+ public Builder clearKey() {
+
+ key_ = getDefaultInstance().getKey();
+ onChanged();
+ return this;
+ }
+ /**
+ * string key = 1;
+ */
+ public Builder setKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long timestamp_ ;
+ /**
+ * int64 timestamp = 2;
+ */
+ public long getTimestamp() {
+ return timestamp_;
+ }
+ /**
+ * int64 timestamp = 2;
+ */
+ public Builder setTimestamp(long value) {
+
+ timestamp_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 timestamp = 2;
+ */
+ public Builder clearTimestamp() {
+
+ timestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, java.lang.String> data_;
+ private com.google.protobuf.MapFieldmap<string, string> data = 3;
+ */
+
+ public boolean containsData(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetData().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getDataMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> data = 3;
+ */
+
+ public java.util.Mapmap<string, string> data = 3;
+ */
+
+ public java.lang.String getDataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> data = 3;
+ */
+
+ public java.lang.String getDataOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> data = 3;
+ */
+
+ public Builder removeData(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableData().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> data = 3;
+ */
+ public Builder putData(
+ java.lang.String key,
+ java.lang.String value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ if (value == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableData().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * map<string, string> data = 3;
+ */
+
+ public Builder putAllData(
+ java.util.Map").append(code).append("
");
- buffer.append("");
- for(String key:this.getData().keySet())
- {
- buffer.append("<"+key+">").append(this.get(key)).append(""+key+">");
+ buffer.append("#ReplyBody#").append("\n");
+ buffer.append("key:").append(this.getKey()).append("\n");
+ buffer.append("timestamp:").append(timestamp).append("\n");
+ buffer.append("code:").append(code).append("\n");
+
+ if(!data.isEmpty()){
+ buffer.append("data{").append("\n");
+ for(String key:getKeySet())
+ {
+ buffer.append(key).append(":").append(this.get(key)).append("\n");
+ }
+ buffer.append("}");
}
- buffer.append("");
- buffer.append("string mid = 1;
+ */
+ java.lang.String getMid();
+ /**
+ * string mid = 1;
+ */
+ com.google.protobuf.ByteString
+ getMidBytes();
+
+ /**
+ * string action = 2;
+ */
+ java.lang.String getAction();
+ /**
+ * string action = 2;
+ */
+ com.google.protobuf.ByteString
+ getActionBytes();
+
+ /**
+ * string content = 3;
+ */
+ java.lang.String getContent();
+ /**
+ * string content = 3;
+ */
+ com.google.protobuf.ByteString
+ getContentBytes();
+
+ /**
+ * string sender = 4;
+ */
+ java.lang.String getSender();
+ /**
+ * string sender = 4;
+ */
+ com.google.protobuf.ByteString
+ getSenderBytes();
+
+ /**
+ * string receiver = 5;
+ */
+ java.lang.String getReceiver();
+ /**
+ * string receiver = 5;
+ */
+ com.google.protobuf.ByteString
+ getReceiverBytes();
+
+ /**
+ * string extra = 6;
+ */
+ java.lang.String getExtra();
+ /**
+ * string extra = 6;
+ */
+ com.google.protobuf.ByteString
+ getExtraBytes();
+
+ /**
+ * string title = 7;
+ */
+ java.lang.String getTitle();
+ /**
+ * string title = 7;
+ */
+ com.google.protobuf.ByteString
+ getTitleBytes();
+
+ /**
+ * string format = 8;
+ */
+ java.lang.String getFormat();
+ /**
+ * string format = 8;
+ */
+ com.google.protobuf.ByteString
+ getFormatBytes();
+
+ /**
+ * int64 timestamp = 9;
+ */
+ long getTimestamp();
+ }
+ /**
+ * Protobuf type {@code com.farsunset.cim.sdk.model.proto.Model}
+ */
+ public static final class Model extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.farsunset.cim.sdk.model.proto.Model)
+ ModelOrBuilder {
+ // Use Model.newBuilder() to construct.
+ private Model(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Model() {
+ mid_ = "";
+ action_ = "";
+ content_ = "";
+ sender_ = "";
+ receiver_ = "";
+ extra_ = "";
+ title_ = "";
+ format_ = "";
+ timestamp_ = 0L;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private Model(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ mid_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ action_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ content_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ sender_ = s;
+ break;
+ }
+ case 42: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ receiver_ = s;
+ break;
+ }
+ case 50: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ extra_ = s;
+ break;
+ }
+ case 58: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ title_ = s;
+ break;
+ }
+ case 66: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ format_ = s;
+ break;
+ }
+ case 72: {
+
+ timestamp_ = input.readInt64();
+ 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 {
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.farsunset.cim.sdk.model.proto.MessageProto.internal_static_com_farsunset_cim_sdk_model_proto_Model_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.farsunset.cim.sdk.model.proto.MessageProto.internal_static_com_farsunset_cim_sdk_model_proto_Model_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.farsunset.cim.sdk.model.proto.MessageProto.Model.class, com.farsunset.cim.sdk.model.proto.MessageProto.Model.Builder.class);
+ }
+
+ public static final int MID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object mid_;
+ /**
+ * string mid = 1;
+ */
+ public java.lang.String getMid() {
+ java.lang.Object ref = mid_;
+ 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();
+ mid_ = s;
+ return s;
+ }
+ }
+ /**
+ * string mid = 1;
+ */
+ public com.google.protobuf.ByteString
+ getMidBytes() {
+ java.lang.Object ref = mid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ mid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ACTION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object action_;
+ /**
+ * string action = 2;
+ */
+ public java.lang.String getAction() {
+ java.lang.Object ref = action_;
+ 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();
+ action_ = s;
+ return s;
+ }
+ }
+ /**
+ * string action = 2;
+ */
+ public com.google.protobuf.ByteString
+ getActionBytes() {
+ java.lang.Object ref = action_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ action_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CONTENT_FIELD_NUMBER = 3;
+ private volatile java.lang.Object content_;
+ /**
+ * string content = 3;
+ */
+ public java.lang.String getContent() {
+ java.lang.Object ref = content_;
+ 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();
+ content_ = s;
+ return s;
+ }
+ }
+ /**
+ * string content = 3;
+ */
+ public com.google.protobuf.ByteString
+ getContentBytes() {
+ java.lang.Object ref = content_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ content_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SENDER_FIELD_NUMBER = 4;
+ private volatile java.lang.Object sender_;
+ /**
+ * string sender = 4;
+ */
+ public java.lang.String getSender() {
+ java.lang.Object ref = sender_;
+ 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();
+ sender_ = s;
+ return s;
+ }
+ }
+ /**
+ * string sender = 4;
+ */
+ public com.google.protobuf.ByteString
+ getSenderBytes() {
+ java.lang.Object ref = sender_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sender_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int RECEIVER_FIELD_NUMBER = 5;
+ private volatile java.lang.Object receiver_;
+ /**
+ * string receiver = 5;
+ */
+ public java.lang.String getReceiver() {
+ java.lang.Object ref = receiver_;
+ 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();
+ receiver_ = s;
+ return s;
+ }
+ }
+ /**
+ * string receiver = 5;
+ */
+ public com.google.protobuf.ByteString
+ getReceiverBytes() {
+ java.lang.Object ref = receiver_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ receiver_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int EXTRA_FIELD_NUMBER = 6;
+ private volatile java.lang.Object extra_;
+ /**
+ * string extra = 6;
+ */
+ public java.lang.String getExtra() {
+ java.lang.Object ref = extra_;
+ 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();
+ extra_ = s;
+ return s;
+ }
+ }
+ /**
+ * string extra = 6;
+ */
+ public com.google.protobuf.ByteString
+ getExtraBytes() {
+ java.lang.Object ref = extra_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ extra_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TITLE_FIELD_NUMBER = 7;
+ private volatile java.lang.Object title_;
+ /**
+ * string title = 7;
+ */
+ 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 = 7;
+ */
+ 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 FORMAT_FIELD_NUMBER = 8;
+ private volatile java.lang.Object format_;
+ /**
+ * string format = 8;
+ */
+ public java.lang.String getFormat() {
+ java.lang.Object ref = format_;
+ 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();
+ format_ = s;
+ return s;
+ }
+ }
+ /**
+ * string format = 8;
+ */
+ public com.google.protobuf.ByteString
+ getFormatBytes() {
+ java.lang.Object ref = format_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ format_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TIMESTAMP_FIELD_NUMBER = 9;
+ private long timestamp_;
+ /**
+ * int64 timestamp = 9;
+ */
+ public long getTimestamp() {
+ return timestamp_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getMidBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_);
+ }
+ if (!getActionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, action_);
+ }
+ if (!getContentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, content_);
+ }
+ if (!getSenderBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sender_);
+ }
+ if (!getReceiverBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, receiver_);
+ }
+ if (!getExtraBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, extra_);
+ }
+ if (!getTitleBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, title_);
+ }
+ if (!getFormatBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, format_);
+ }
+ if (timestamp_ != 0L) {
+ output.writeInt64(9, timestamp_);
+ }
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getMidBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mid_);
+ }
+ if (!getActionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, action_);
+ }
+ if (!getContentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, content_);
+ }
+ if (!getSenderBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sender_);
+ }
+ if (!getReceiverBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, receiver_);
+ }
+ if (!getExtraBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, extra_);
+ }
+ if (!getTitleBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, title_);
+ }
+ if (!getFormatBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, format_);
+ }
+ if (timestamp_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(9, timestamp_);
+ }
+ memoizedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.farsunset.cim.sdk.model.proto.MessageProto.Model)) {
+ return super.equals(obj);
+ }
+ com.farsunset.cim.sdk.model.proto.MessageProto.Model other = (com.farsunset.cim.sdk.model.proto.MessageProto.Model) obj;
+
+ boolean result = true;
+ result = result && getMid()
+ .equals(other.getMid());
+ result = result && getAction()
+ .equals(other.getAction());
+ result = result && getContent()
+ .equals(other.getContent());
+ result = result && getSender()
+ .equals(other.getSender());
+ result = result && getReceiver()
+ .equals(other.getReceiver());
+ result = result && getExtra()
+ .equals(other.getExtra());
+ result = result && getTitle()
+ .equals(other.getTitle());
+ result = result && getFormat()
+ .equals(other.getFormat());
+ result = result && (getTimestamp()
+ == other.getTimestamp());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + MID_FIELD_NUMBER;
+ hash = (53 * hash) + getMid().hashCode();
+ hash = (37 * hash) + ACTION_FIELD_NUMBER;
+ hash = (53 * hash) + getAction().hashCode();
+ hash = (37 * hash) + CONTENT_FIELD_NUMBER;
+ hash = (53 * hash) + getContent().hashCode();
+ hash = (37 * hash) + SENDER_FIELD_NUMBER;
+ hash = (53 * hash) + getSender().hashCode();
+ hash = (37 * hash) + RECEIVER_FIELD_NUMBER;
+ hash = (53 * hash) + getReceiver().hashCode();
+ hash = (37 * hash) + EXTRA_FIELD_NUMBER;
+ hash = (53 * hash) + getExtra().hashCode();
+ hash = (37 * hash) + TITLE_FIELD_NUMBER;
+ hash = (53 * hash) + getTitle().hashCode();
+ hash = (37 * hash) + FORMAT_FIELD_NUMBER;
+ hash = (53 * hash) + getFormat().hashCode();
+ hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getTimestamp());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.farsunset.cim.sdk.model.proto.MessageProto.Model parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.farsunset.cim.sdk.model.proto.MessageProto.Model parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.farsunset.cim.sdk.model.proto.MessageProto.Model parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.farsunset.cim.sdk.model.proto.MessageProto.Model parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.farsunset.cim.sdk.model.proto.MessageProto.Model parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.farsunset.cim.sdk.model.proto.MessageProto.Model 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 com.farsunset.cim.sdk.model.proto.MessageProto.Model parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.farsunset.cim.sdk.model.proto.MessageProto.Model 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 com.farsunset.cim.sdk.model.proto.MessageProto.Model parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.farsunset.cim.sdk.model.proto.MessageProto.Model parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.farsunset.cim.sdk.model.proto.MessageProto.Model prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * Protobuf type {@code com.farsunset.cim.sdk.model.proto.Model}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring mid = 1;
+ */
+ public java.lang.String getMid() {
+ java.lang.Object ref = mid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ mid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string mid = 1;
+ */
+ public com.google.protobuf.ByteString
+ getMidBytes() {
+ java.lang.Object ref = mid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ mid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string mid = 1;
+ */
+ public Builder setMid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ mid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string mid = 1;
+ */
+ public Builder clearMid() {
+
+ mid_ = getDefaultInstance().getMid();
+ onChanged();
+ return this;
+ }
+ /**
+ * string mid = 1;
+ */
+ public Builder setMidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ mid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object action_ = "";
+ /**
+ * string action = 2;
+ */
+ public java.lang.String getAction() {
+ java.lang.Object ref = action_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ action_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string action = 2;
+ */
+ public com.google.protobuf.ByteString
+ getActionBytes() {
+ java.lang.Object ref = action_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ action_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string action = 2;
+ */
+ public Builder setAction(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ action_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string action = 2;
+ */
+ public Builder clearAction() {
+
+ action_ = getDefaultInstance().getAction();
+ onChanged();
+ return this;
+ }
+ /**
+ * string action = 2;
+ */
+ public Builder setActionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ action_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object content_ = "";
+ /**
+ * string content = 3;
+ */
+ public java.lang.String getContent() {
+ java.lang.Object ref = content_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ content_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string content = 3;
+ */
+ public com.google.protobuf.ByteString
+ getContentBytes() {
+ java.lang.Object ref = content_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ content_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string content = 3;
+ */
+ public Builder setContent(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ content_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string content = 3;
+ */
+ public Builder clearContent() {
+
+ content_ = getDefaultInstance().getContent();
+ onChanged();
+ return this;
+ }
+ /**
+ * string content = 3;
+ */
+ public Builder setContentBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ content_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object sender_ = "";
+ /**
+ * string sender = 4;
+ */
+ public java.lang.String getSender() {
+ java.lang.Object ref = sender_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sender_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string sender = 4;
+ */
+ public com.google.protobuf.ByteString
+ getSenderBytes() {
+ java.lang.Object ref = sender_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sender_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string sender = 4;
+ */
+ public Builder setSender(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ sender_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string sender = 4;
+ */
+ public Builder clearSender() {
+
+ sender_ = getDefaultInstance().getSender();
+ onChanged();
+ return this;
+ }
+ /**
+ * string sender = 4;
+ */
+ public Builder setSenderBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ sender_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object receiver_ = "";
+ /**
+ * string receiver = 5;
+ */
+ public java.lang.String getReceiver() {
+ java.lang.Object ref = receiver_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ receiver_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string receiver = 5;
+ */
+ public com.google.protobuf.ByteString
+ getReceiverBytes() {
+ java.lang.Object ref = receiver_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ receiver_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string receiver = 5;
+ */
+ public Builder setReceiver(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ receiver_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string receiver = 5;
+ */
+ public Builder clearReceiver() {
+
+ receiver_ = getDefaultInstance().getReceiver();
+ onChanged();
+ return this;
+ }
+ /**
+ * string receiver = 5;
+ */
+ public Builder setReceiverBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ receiver_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object extra_ = "";
+ /**
+ * string extra = 6;
+ */
+ public java.lang.String getExtra() {
+ java.lang.Object ref = extra_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ extra_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string extra = 6;
+ */
+ public com.google.protobuf.ByteString
+ getExtraBytes() {
+ java.lang.Object ref = extra_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ extra_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string extra = 6;
+ */
+ public Builder setExtra(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ extra_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string extra = 6;
+ */
+ public Builder clearExtra() {
+
+ extra_ = getDefaultInstance().getExtra();
+ onChanged();
+ return this;
+ }
+ /**
+ * string extra = 6;
+ */
+ public Builder setExtraBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ extra_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object title_ = "";
+ /**
+ * string title = 7;
+ */
+ 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 = 7;
+ */
+ 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 = 7;
+ */
+ public Builder setTitle(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ title_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string title = 7;
+ */
+ public Builder clearTitle() {
+
+ title_ = getDefaultInstance().getTitle();
+ onChanged();
+ return this;
+ }
+ /**
+ * string title = 7;
+ */
+ 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 format_ = "";
+ /**
+ * string format = 8;
+ */
+ public java.lang.String getFormat() {
+ java.lang.Object ref = format_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ format_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string format = 8;
+ */
+ public com.google.protobuf.ByteString
+ getFormatBytes() {
+ java.lang.Object ref = format_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ format_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string format = 8;
+ */
+ public Builder setFormat(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ format_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string format = 8;
+ */
+ public Builder clearFormat() {
+
+ format_ = getDefaultInstance().getFormat();
+ onChanged();
+ return this;
+ }
+ /**
+ * string format = 8;
+ */
+ public Builder setFormatBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ format_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long timestamp_ ;
+ /**
+ * int64 timestamp = 9;
+ */
+ public long getTimestamp() {
+ return timestamp_;
+ }
+ /**
+ * int64 timestamp = 9;
+ */
+ public Builder setTimestamp(long value) {
+
+ timestamp_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 timestamp = 9;
+ */
+ public Builder clearTimestamp() {
+
+ timestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:com.farsunset.cim.sdk.model.proto.Model)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.farsunset.cim.sdk.model.proto.Model)
+ private static final com.farsunset.cim.sdk.model.proto.MessageProto.Model DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.farsunset.cim.sdk.model.proto.MessageProto.Model();
+ }
+
+ public static com.farsunset.cim.sdk.model.proto.MessageProto.Model getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring key = 1;
+ */
+ java.lang.String getKey();
+ /**
+ * string key = 1;
+ */
+ com.google.protobuf.ByteString
+ getKeyBytes();
+
+ /**
+ * string code = 2;
+ */
+ java.lang.String getCode();
+ /**
+ * string code = 2;
+ */
+ com.google.protobuf.ByteString
+ getCodeBytes();
+
+ /**
+ * string message = 3;
+ */
+ java.lang.String getMessage();
+ /**
+ * string message = 3;
+ */
+ com.google.protobuf.ByteString
+ getMessageBytes();
+
+ /**
+ * int64 timestamp = 4;
+ */
+ long getTimestamp();
+
+ /**
+ * map<string, string> data = 5;
+ */
+ int getDataCount();
+ /**
+ * map<string, string> data = 5;
+ */
+ boolean containsData(
+ java.lang.String key);
+ /**
+ * Use {@link #getDataMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Mapmap<string, string> data = 5;
+ */
+ java.util.Mapmap<string, string> data = 5;
+ */
+
+ java.lang.String getDataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue);
+ /**
+ * map<string, string> data = 5;
+ */
+
+ java.lang.String getDataOrThrow(
+ java.lang.String key);
+ }
+ /**
+ * Protobuf type {@code com.farsunset.cim.sdk.model.proto.Model}
+ */
+ public static final class Model extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.farsunset.cim.sdk.model.proto.Model)
+ ModelOrBuilder {
+ // Use Model.newBuilder() to construct.
+ private Model(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Model() {
+ key_ = "";
+ code_ = "";
+ message_ = "";
+ timestamp_ = 0L;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private Model(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ key_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ code_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ message_ = s;
+ break;
+ }
+ case 32: {
+
+ timestamp_ = input.readInt64();
+ break;
+ }
+ case 42: {
+ if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
+ data_ = com.google.protobuf.MapField.newMapField(
+ DataDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000010;
+ }
+ com.google.protobuf.MapEntrystring key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ 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();
+ key_ = s;
+ return s;
+ }
+ }
+ /**
+ * string key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CODE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object code_;
+ /**
+ * string code = 2;
+ */
+ public java.lang.String getCode() {
+ java.lang.Object ref = code_;
+ 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();
+ code_ = s;
+ return s;
+ }
+ }
+ /**
+ * string code = 2;
+ */
+ public com.google.protobuf.ByteString
+ getCodeBytes() {
+ java.lang.Object ref = code_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ code_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int MESSAGE_FIELD_NUMBER = 3;
+ private volatile java.lang.Object message_;
+ /**
+ * string message = 3;
+ */
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ 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();
+ message_ = s;
+ return s;
+ }
+ }
+ /**
+ * string message = 3;
+ */
+ public com.google.protobuf.ByteString
+ getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TIMESTAMP_FIELD_NUMBER = 4;
+ private long timestamp_;
+ /**
+ * int64 timestamp = 4;
+ */
+ public long getTimestamp() {
+ return timestamp_;
+ }
+
+ public static final int DATA_FIELD_NUMBER = 5;
+ private static final class DataDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntry
+ .map<string, string> data = 5;
+ */
+
+ public boolean containsData(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetData().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getDataMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> data = 5;
+ */
+
+ public java.util.Mapmap<string, string> data = 5;
+ */
+
+ public java.lang.String getDataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> data = 5;
+ */
+
+ public java.lang.String getDataOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapstring key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string key = 1;
+ */
+ public Builder setKey(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string key = 1;
+ */
+ public Builder clearKey() {
+
+ key_ = getDefaultInstance().getKey();
+ onChanged();
+ return this;
+ }
+ /**
+ * string key = 1;
+ */
+ public Builder setKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object code_ = "";
+ /**
+ * string code = 2;
+ */
+ public java.lang.String getCode() {
+ java.lang.Object ref = code_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ code_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string code = 2;
+ */
+ public com.google.protobuf.ByteString
+ getCodeBytes() {
+ java.lang.Object ref = code_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ code_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string code = 2;
+ */
+ public Builder setCode(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ code_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string code = 2;
+ */
+ public Builder clearCode() {
+
+ code_ = getDefaultInstance().getCode();
+ onChanged();
+ return this;
+ }
+ /**
+ * string code = 2;
+ */
+ public Builder setCodeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ code_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object message_ = "";
+ /**
+ * string message = 3;
+ */
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ message_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string message = 3;
+ */
+ public com.google.protobuf.ByteString
+ getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string message = 3;
+ */
+ public Builder setMessage(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ message_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string message = 3;
+ */
+ public Builder clearMessage() {
+
+ message_ = getDefaultInstance().getMessage();
+ onChanged();
+ return this;
+ }
+ /**
+ * string message = 3;
+ */
+ public Builder setMessageBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ message_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long timestamp_ ;
+ /**
+ * int64 timestamp = 4;
+ */
+ public long getTimestamp() {
+ return timestamp_;
+ }
+ /**
+ * int64 timestamp = 4;
+ */
+ public Builder setTimestamp(long value) {
+
+ timestamp_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 timestamp = 4;
+ */
+ public Builder clearTimestamp() {
+
+ timestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, java.lang.String> data_;
+ private com.google.protobuf.MapFieldmap<string, string> data = 5;
+ */
+
+ public boolean containsData(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetData().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getDataMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> data = 5;
+ */
+
+ public java.util.Mapmap<string, string> data = 5;
+ */
+
+ public java.lang.String getDataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> data = 5;
+ */
+
+ public java.lang.String getDataOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> data = 5;
+ */
+
+ public Builder removeData(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableData().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> data = 5;
+ */
+ public Builder putData(
+ java.lang.String key,
+ java.lang.String value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ if (value == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableData().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * map<string, string> data = 5;
+ */
+
+ public Builder putAllData(
+ java.util.Mapstring key = 1;
+ */
+ java.lang.String getKey();
+ /**
+ * string key = 1;
+ */
+ com.google.protobuf.ByteString
+ getKeyBytes();
+
+ /**
+ * int64 timestamp = 2;
+ */
+ long getTimestamp();
+
+ /**
+ * map<string, string> data = 3;
+ */
+ int getDataCount();
+ /**
+ * map<string, string> data = 3;
+ */
+ boolean containsData(
+ java.lang.String key);
+ /**
+ * Use {@link #getDataMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Mapmap<string, string> data = 3;
+ */
+ java.util.Mapmap<string, string> data = 3;
+ */
+
+ java.lang.String getDataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue);
+ /**
+ * map<string, string> data = 3;
+ */
+
+ java.lang.String getDataOrThrow(
+ java.lang.String key);
+ }
+ /**
+ * Protobuf type {@code com.farsunset.cim.sdk.model.proto.Model}
+ */
+ public static final class Model extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.farsunset.cim.sdk.model.proto.Model)
+ ModelOrBuilder {
+ // Use Model.newBuilder() to construct.
+ private Model(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Model() {
+ key_ = "";
+ timestamp_ = 0L;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private Model(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ key_ = s;
+ break;
+ }
+ case 16: {
+
+ timestamp_ = input.readInt64();
+ break;
+ }
+ case 26: {
+ if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
+ data_ = com.google.protobuf.MapField.newMapField(
+ DataDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000004;
+ }
+ com.google.protobuf.MapEntrystring key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ 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();
+ key_ = s;
+ return s;
+ }
+ }
+ /**
+ * string key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TIMESTAMP_FIELD_NUMBER = 2;
+ private long timestamp_;
+ /**
+ * int64 timestamp = 2;
+ */
+ public long getTimestamp() {
+ return timestamp_;
+ }
+
+ public static final int DATA_FIELD_NUMBER = 3;
+ private static final class DataDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntry
+ .map<string, string> data = 3;
+ */
+
+ public boolean containsData(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetData().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getDataMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> data = 3;
+ */
+
+ public java.util.Mapmap<string, string> data = 3;
+ */
+
+ public java.lang.String getDataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> data = 3;
+ */
+
+ public java.lang.String getDataOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapstring key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string key = 1;
+ */
+ public Builder setKey(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string key = 1;
+ */
+ public Builder clearKey() {
+
+ key_ = getDefaultInstance().getKey();
+ onChanged();
+ return this;
+ }
+ /**
+ * string key = 1;
+ */
+ public Builder setKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long timestamp_ ;
+ /**
+ * int64 timestamp = 2;
+ */
+ public long getTimestamp() {
+ return timestamp_;
+ }
+ /**
+ * int64 timestamp = 2;
+ */
+ public Builder setTimestamp(long value) {
+
+ timestamp_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 timestamp = 2;
+ */
+ public Builder clearTimestamp() {
+
+ timestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, java.lang.String> data_;
+ private com.google.protobuf.MapFieldmap<string, string> data = 3;
+ */
+
+ public boolean containsData(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetData().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getDataMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> data = 3;
+ */
+
+ public java.util.Mapmap<string, string> data = 3;
+ */
+
+ public java.lang.String getDataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> data = 3;
+ */
+
+ public java.lang.String getDataOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> data = 3;
+ */
+
+ public Builder removeData(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableData().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> data = 3;
+ */
+ public Builder putData(
+ java.lang.String key,
+ java.lang.String value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ if (value == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableData().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * map<string, string> data = 3;
+ */
+
+ public Builder putAllData(
+ java.util.Map").append(code).append("
");
- buffer.append("");
- for(String key:this.getData().keySet())
- {
- buffer.append("<"+key+">").append(this.get(key)).append(""+key+">");
+ buffer.append("#ReplyBody#").append("\n");
+ buffer.append("key:").append(this.getKey()).append("\n");
+ buffer.append("timestamp:").append(timestamp).append("\n");
+ buffer.append("code:").append(code).append("\n");
+
+ if(!data.isEmpty()){
+ buffer.append("data{").append("\n");
+ for(String key:getKeySet())
+ {
+ buffer.append(key).append(":").append(this.get(key)).append("\n");
+ }
+ buffer.append("}");
}
- buffer.append("");
- buffer.append("string mid = 1;
+ */
+ java.lang.String getMid();
+ /**
+ * string mid = 1;
+ */
+ com.google.protobuf.ByteString
+ getMidBytes();
+
+ /**
+ * string action = 2;
+ */
+ java.lang.String getAction();
+ /**
+ * string action = 2;
+ */
+ com.google.protobuf.ByteString
+ getActionBytes();
+
+ /**
+ * string content = 3;
+ */
+ java.lang.String getContent();
+ /**
+ * string content = 3;
+ */
+ com.google.protobuf.ByteString
+ getContentBytes();
+
+ /**
+ * string sender = 4;
+ */
+ java.lang.String getSender();
+ /**
+ * string sender = 4;
+ */
+ com.google.protobuf.ByteString
+ getSenderBytes();
+
+ /**
+ * string receiver = 5;
+ */
+ java.lang.String getReceiver();
+ /**
+ * string receiver = 5;
+ */
+ com.google.protobuf.ByteString
+ getReceiverBytes();
+
+ /**
+ * string extra = 6;
+ */
+ java.lang.String getExtra();
+ /**
+ * string extra = 6;
+ */
+ com.google.protobuf.ByteString
+ getExtraBytes();
+
+ /**
+ * string title = 7;
+ */
+ java.lang.String getTitle();
+ /**
+ * string title = 7;
+ */
+ com.google.protobuf.ByteString
+ getTitleBytes();
+
+ /**
+ * string format = 8;
+ */
+ java.lang.String getFormat();
+ /**
+ * string format = 8;
+ */
+ com.google.protobuf.ByteString
+ getFormatBytes();
+
+ /**
+ * int64 timestamp = 9;
+ */
+ long getTimestamp();
+ }
+ /**
+ * Protobuf type {@code com.farsunset.cim.sdk.server.model.proto.Model}
+ */
+ public static final class Model extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.farsunset.cim.sdk.server.model.proto.Model)
+ ModelOrBuilder {
+ // Use Model.newBuilder() to construct.
+ private Model(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Model() {
+ mid_ = "";
+ action_ = "";
+ content_ = "";
+ sender_ = "";
+ receiver_ = "";
+ extra_ = "";
+ title_ = "";
+ format_ = "";
+ timestamp_ = 0L;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private Model(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ mid_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ action_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ content_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ sender_ = s;
+ break;
+ }
+ case 42: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ receiver_ = s;
+ break;
+ }
+ case 50: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ extra_ = s;
+ break;
+ }
+ case 58: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ title_ = s;
+ break;
+ }
+ case 66: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ format_ = s;
+ break;
+ }
+ case 72: {
+
+ timestamp_ = input.readInt64();
+ 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 {
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.farsunset.cim.sdk.server.model.proto.MessageProto.internal_static_com_farsunset_cim_sdk_server_model_proto_Model_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.farsunset.cim.sdk.server.model.proto.MessageProto.internal_static_com_farsunset_cim_sdk_server_model_proto_Model_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.farsunset.cim.sdk.server.model.proto.MessageProto.Model.class, com.farsunset.cim.sdk.server.model.proto.MessageProto.Model.Builder.class);
+ }
+
+ public static final int MID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object mid_;
+ /**
+ * string mid = 1;
+ */
+ public java.lang.String getMid() {
+ java.lang.Object ref = mid_;
+ 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();
+ mid_ = s;
+ return s;
+ }
+ }
+ /**
+ * string mid = 1;
+ */
+ public com.google.protobuf.ByteString
+ getMidBytes() {
+ java.lang.Object ref = mid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ mid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ACTION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object action_;
+ /**
+ * string action = 2;
+ */
+ public java.lang.String getAction() {
+ java.lang.Object ref = action_;
+ 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();
+ action_ = s;
+ return s;
+ }
+ }
+ /**
+ * string action = 2;
+ */
+ public com.google.protobuf.ByteString
+ getActionBytes() {
+ java.lang.Object ref = action_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ action_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CONTENT_FIELD_NUMBER = 3;
+ private volatile java.lang.Object content_;
+ /**
+ * string content = 3;
+ */
+ public java.lang.String getContent() {
+ java.lang.Object ref = content_;
+ 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();
+ content_ = s;
+ return s;
+ }
+ }
+ /**
+ * string content = 3;
+ */
+ public com.google.protobuf.ByteString
+ getContentBytes() {
+ java.lang.Object ref = content_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ content_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SENDER_FIELD_NUMBER = 4;
+ private volatile java.lang.Object sender_;
+ /**
+ * string sender = 4;
+ */
+ public java.lang.String getSender() {
+ java.lang.Object ref = sender_;
+ 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();
+ sender_ = s;
+ return s;
+ }
+ }
+ /**
+ * string sender = 4;
+ */
+ public com.google.protobuf.ByteString
+ getSenderBytes() {
+ java.lang.Object ref = sender_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sender_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int RECEIVER_FIELD_NUMBER = 5;
+ private volatile java.lang.Object receiver_;
+ /**
+ * string receiver = 5;
+ */
+ public java.lang.String getReceiver() {
+ java.lang.Object ref = receiver_;
+ 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();
+ receiver_ = s;
+ return s;
+ }
+ }
+ /**
+ * string receiver = 5;
+ */
+ public com.google.protobuf.ByteString
+ getReceiverBytes() {
+ java.lang.Object ref = receiver_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ receiver_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int EXTRA_FIELD_NUMBER = 6;
+ private volatile java.lang.Object extra_;
+ /**
+ * string extra = 6;
+ */
+ public java.lang.String getExtra() {
+ java.lang.Object ref = extra_;
+ 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();
+ extra_ = s;
+ return s;
+ }
+ }
+ /**
+ * string extra = 6;
+ */
+ public com.google.protobuf.ByteString
+ getExtraBytes() {
+ java.lang.Object ref = extra_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ extra_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TITLE_FIELD_NUMBER = 7;
+ private volatile java.lang.Object title_;
+ /**
+ * string title = 7;
+ */
+ 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 = 7;
+ */
+ 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 FORMAT_FIELD_NUMBER = 8;
+ private volatile java.lang.Object format_;
+ /**
+ * string format = 8;
+ */
+ public java.lang.String getFormat() {
+ java.lang.Object ref = format_;
+ 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();
+ format_ = s;
+ return s;
+ }
+ }
+ /**
+ * string format = 8;
+ */
+ public com.google.protobuf.ByteString
+ getFormatBytes() {
+ java.lang.Object ref = format_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ format_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TIMESTAMP_FIELD_NUMBER = 9;
+ private long timestamp_;
+ /**
+ * int64 timestamp = 9;
+ */
+ public long getTimestamp() {
+ return timestamp_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getMidBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_);
+ }
+ if (!getActionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, action_);
+ }
+ if (!getContentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, content_);
+ }
+ if (!getSenderBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sender_);
+ }
+ if (!getReceiverBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, receiver_);
+ }
+ if (!getExtraBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, extra_);
+ }
+ if (!getTitleBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, title_);
+ }
+ if (!getFormatBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, format_);
+ }
+ if (timestamp_ != 0L) {
+ output.writeInt64(9, timestamp_);
+ }
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getMidBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mid_);
+ }
+ if (!getActionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, action_);
+ }
+ if (!getContentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, content_);
+ }
+ if (!getSenderBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sender_);
+ }
+ if (!getReceiverBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, receiver_);
+ }
+ if (!getExtraBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, extra_);
+ }
+ if (!getTitleBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, title_);
+ }
+ if (!getFormatBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, format_);
+ }
+ if (timestamp_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(9, timestamp_);
+ }
+ memoizedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.farsunset.cim.sdk.server.model.proto.MessageProto.Model)) {
+ return super.equals(obj);
+ }
+ com.farsunset.cim.sdk.server.model.proto.MessageProto.Model other = (com.farsunset.cim.sdk.server.model.proto.MessageProto.Model) obj;
+
+ boolean result = true;
+ result = result && getMid()
+ .equals(other.getMid());
+ result = result && getAction()
+ .equals(other.getAction());
+ result = result && getContent()
+ .equals(other.getContent());
+ result = result && getSender()
+ .equals(other.getSender());
+ result = result && getReceiver()
+ .equals(other.getReceiver());
+ result = result && getExtra()
+ .equals(other.getExtra());
+ result = result && getTitle()
+ .equals(other.getTitle());
+ result = result && getFormat()
+ .equals(other.getFormat());
+ result = result && (getTimestamp()
+ == other.getTimestamp());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + MID_FIELD_NUMBER;
+ hash = (53 * hash) + getMid().hashCode();
+ hash = (37 * hash) + ACTION_FIELD_NUMBER;
+ hash = (53 * hash) + getAction().hashCode();
+ hash = (37 * hash) + CONTENT_FIELD_NUMBER;
+ hash = (53 * hash) + getContent().hashCode();
+ hash = (37 * hash) + SENDER_FIELD_NUMBER;
+ hash = (53 * hash) + getSender().hashCode();
+ hash = (37 * hash) + RECEIVER_FIELD_NUMBER;
+ hash = (53 * hash) + getReceiver().hashCode();
+ hash = (37 * hash) + EXTRA_FIELD_NUMBER;
+ hash = (53 * hash) + getExtra().hashCode();
+ hash = (37 * hash) + TITLE_FIELD_NUMBER;
+ hash = (53 * hash) + getTitle().hashCode();
+ hash = (37 * hash) + FORMAT_FIELD_NUMBER;
+ hash = (53 * hash) + getFormat().hashCode();
+ hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getTimestamp());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.farsunset.cim.sdk.server.model.proto.MessageProto.Model parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.farsunset.cim.sdk.server.model.proto.MessageProto.Model parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.farsunset.cim.sdk.server.model.proto.MessageProto.Model parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.farsunset.cim.sdk.server.model.proto.MessageProto.Model parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.farsunset.cim.sdk.server.model.proto.MessageProto.Model parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.farsunset.cim.sdk.server.model.proto.MessageProto.Model 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 com.farsunset.cim.sdk.server.model.proto.MessageProto.Model parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.farsunset.cim.sdk.server.model.proto.MessageProto.Model 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 com.farsunset.cim.sdk.server.model.proto.MessageProto.Model parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.farsunset.cim.sdk.server.model.proto.MessageProto.Model parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.farsunset.cim.sdk.server.model.proto.MessageProto.Model prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * Protobuf type {@code com.farsunset.cim.sdk.server.model.proto.Model}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring mid = 1;
+ */
+ public java.lang.String getMid() {
+ java.lang.Object ref = mid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ mid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string mid = 1;
+ */
+ public com.google.protobuf.ByteString
+ getMidBytes() {
+ java.lang.Object ref = mid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ mid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string mid = 1;
+ */
+ public Builder setMid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ mid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string mid = 1;
+ */
+ public Builder clearMid() {
+
+ mid_ = getDefaultInstance().getMid();
+ onChanged();
+ return this;
+ }
+ /**
+ * string mid = 1;
+ */
+ public Builder setMidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ mid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object action_ = "";
+ /**
+ * string action = 2;
+ */
+ public java.lang.String getAction() {
+ java.lang.Object ref = action_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ action_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string action = 2;
+ */
+ public com.google.protobuf.ByteString
+ getActionBytes() {
+ java.lang.Object ref = action_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ action_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string action = 2;
+ */
+ public Builder setAction(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ action_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string action = 2;
+ */
+ public Builder clearAction() {
+
+ action_ = getDefaultInstance().getAction();
+ onChanged();
+ return this;
+ }
+ /**
+ * string action = 2;
+ */
+ public Builder setActionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ action_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object content_ = "";
+ /**
+ * string content = 3;
+ */
+ public java.lang.String getContent() {
+ java.lang.Object ref = content_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ content_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string content = 3;
+ */
+ public com.google.protobuf.ByteString
+ getContentBytes() {
+ java.lang.Object ref = content_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ content_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string content = 3;
+ */
+ public Builder setContent(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ content_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string content = 3;
+ */
+ public Builder clearContent() {
+
+ content_ = getDefaultInstance().getContent();
+ onChanged();
+ return this;
+ }
+ /**
+ * string content = 3;
+ */
+ public Builder setContentBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ content_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object sender_ = "";
+ /**
+ * string sender = 4;
+ */
+ public java.lang.String getSender() {
+ java.lang.Object ref = sender_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sender_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string sender = 4;
+ */
+ public com.google.protobuf.ByteString
+ getSenderBytes() {
+ java.lang.Object ref = sender_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sender_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string sender = 4;
+ */
+ public Builder setSender(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ sender_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string sender = 4;
+ */
+ public Builder clearSender() {
+
+ sender_ = getDefaultInstance().getSender();
+ onChanged();
+ return this;
+ }
+ /**
+ * string sender = 4;
+ */
+ public Builder setSenderBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ sender_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object receiver_ = "";
+ /**
+ * string receiver = 5;
+ */
+ public java.lang.String getReceiver() {
+ java.lang.Object ref = receiver_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ receiver_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string receiver = 5;
+ */
+ public com.google.protobuf.ByteString
+ getReceiverBytes() {
+ java.lang.Object ref = receiver_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ receiver_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string receiver = 5;
+ */
+ public Builder setReceiver(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ receiver_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string receiver = 5;
+ */
+ public Builder clearReceiver() {
+
+ receiver_ = getDefaultInstance().getReceiver();
+ onChanged();
+ return this;
+ }
+ /**
+ * string receiver = 5;
+ */
+ public Builder setReceiverBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ receiver_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object extra_ = "";
+ /**
+ * string extra = 6;
+ */
+ public java.lang.String getExtra() {
+ java.lang.Object ref = extra_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ extra_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string extra = 6;
+ */
+ public com.google.protobuf.ByteString
+ getExtraBytes() {
+ java.lang.Object ref = extra_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ extra_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string extra = 6;
+ */
+ public Builder setExtra(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ extra_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string extra = 6;
+ */
+ public Builder clearExtra() {
+
+ extra_ = getDefaultInstance().getExtra();
+ onChanged();
+ return this;
+ }
+ /**
+ * string extra = 6;
+ */
+ public Builder setExtraBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ extra_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object title_ = "";
+ /**
+ * string title = 7;
+ */
+ 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 = 7;
+ */
+ 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 = 7;
+ */
+ public Builder setTitle(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ title_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string title = 7;
+ */
+ public Builder clearTitle() {
+
+ title_ = getDefaultInstance().getTitle();
+ onChanged();
+ return this;
+ }
+ /**
+ * string title = 7;
+ */
+ 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 format_ = "";
+ /**
+ * string format = 8;
+ */
+ public java.lang.String getFormat() {
+ java.lang.Object ref = format_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ format_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string format = 8;
+ */
+ public com.google.protobuf.ByteString
+ getFormatBytes() {
+ java.lang.Object ref = format_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ format_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string format = 8;
+ */
+ public Builder setFormat(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ format_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string format = 8;
+ */
+ public Builder clearFormat() {
+
+ format_ = getDefaultInstance().getFormat();
+ onChanged();
+ return this;
+ }
+ /**
+ * string format = 8;
+ */
+ public Builder setFormatBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ format_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long timestamp_ ;
+ /**
+ * int64 timestamp = 9;
+ */
+ public long getTimestamp() {
+ return timestamp_;
+ }
+ /**
+ * int64 timestamp = 9;
+ */
+ public Builder setTimestamp(long value) {
+
+ timestamp_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 timestamp = 9;
+ */
+ public Builder clearTimestamp() {
+
+ timestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:com.farsunset.cim.sdk.server.model.proto.Model)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.farsunset.cim.sdk.server.model.proto.Model)
+ private static final com.farsunset.cim.sdk.server.model.proto.MessageProto.Model DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.farsunset.cim.sdk.server.model.proto.MessageProto.Model();
+ }
+
+ public static com.farsunset.cim.sdk.server.model.proto.MessageProto.Model getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring key = 1;
+ */
+ java.lang.String getKey();
+ /**
+ * string key = 1;
+ */
+ com.google.protobuf.ByteString
+ getKeyBytes();
+
+ /**
+ * string code = 2;
+ */
+ java.lang.String getCode();
+ /**
+ * string code = 2;
+ */
+ com.google.protobuf.ByteString
+ getCodeBytes();
+
+ /**
+ * string message = 3;
+ */
+ java.lang.String getMessage();
+ /**
+ * string message = 3;
+ */
+ com.google.protobuf.ByteString
+ getMessageBytes();
+
+ /**
+ * int64 timestamp = 4;
+ */
+ long getTimestamp();
+
+ /**
+ * map<string, string> data = 5;
+ */
+ int getDataCount();
+ /**
+ * map<string, string> data = 5;
+ */
+ boolean containsData(
+ java.lang.String key);
+ /**
+ * Use {@link #getDataMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Mapmap<string, string> data = 5;
+ */
+ java.util.Mapmap<string, string> data = 5;
+ */
+
+ java.lang.String getDataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue);
+ /**
+ * map<string, string> data = 5;
+ */
+
+ java.lang.String getDataOrThrow(
+ java.lang.String key);
+ }
+ /**
+ * Protobuf type {@code com.farsunset.cim.sdk.server.model.proto.Model}
+ */
+ public static final class Model extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.farsunset.cim.sdk.server.model.proto.Model)
+ ModelOrBuilder {
+ // Use Model.newBuilder() to construct.
+ private Model(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Model() {
+ key_ = "";
+ code_ = "";
+ message_ = "";
+ timestamp_ = 0L;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private Model(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ key_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ code_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ message_ = s;
+ break;
+ }
+ case 32: {
+
+ timestamp_ = input.readInt64();
+ break;
+ }
+ case 42: {
+ if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
+ data_ = com.google.protobuf.MapField.newMapField(
+ DataDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000010;
+ }
+ com.google.protobuf.MapEntrystring key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ 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();
+ key_ = s;
+ return s;
+ }
+ }
+ /**
+ * string key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CODE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object code_;
+ /**
+ * string code = 2;
+ */
+ public java.lang.String getCode() {
+ java.lang.Object ref = code_;
+ 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();
+ code_ = s;
+ return s;
+ }
+ }
+ /**
+ * string code = 2;
+ */
+ public com.google.protobuf.ByteString
+ getCodeBytes() {
+ java.lang.Object ref = code_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ code_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int MESSAGE_FIELD_NUMBER = 3;
+ private volatile java.lang.Object message_;
+ /**
+ * string message = 3;
+ */
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ 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();
+ message_ = s;
+ return s;
+ }
+ }
+ /**
+ * string message = 3;
+ */
+ public com.google.protobuf.ByteString
+ getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TIMESTAMP_FIELD_NUMBER = 4;
+ private long timestamp_;
+ /**
+ * int64 timestamp = 4;
+ */
+ public long getTimestamp() {
+ return timestamp_;
+ }
+
+ public static final int DATA_FIELD_NUMBER = 5;
+ private static final class DataDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntry
+ .map<string, string> data = 5;
+ */
+
+ public boolean containsData(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetData().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getDataMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> data = 5;
+ */
+
+ public java.util.Mapmap<string, string> data = 5;
+ */
+
+ public java.lang.String getDataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> data = 5;
+ */
+
+ public java.lang.String getDataOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapstring key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string key = 1;
+ */
+ public Builder setKey(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string key = 1;
+ */
+ public Builder clearKey() {
+
+ key_ = getDefaultInstance().getKey();
+ onChanged();
+ return this;
+ }
+ /**
+ * string key = 1;
+ */
+ public Builder setKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object code_ = "";
+ /**
+ * string code = 2;
+ */
+ public java.lang.String getCode() {
+ java.lang.Object ref = code_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ code_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string code = 2;
+ */
+ public com.google.protobuf.ByteString
+ getCodeBytes() {
+ java.lang.Object ref = code_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ code_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string code = 2;
+ */
+ public Builder setCode(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ code_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string code = 2;
+ */
+ public Builder clearCode() {
+
+ code_ = getDefaultInstance().getCode();
+ onChanged();
+ return this;
+ }
+ /**
+ * string code = 2;
+ */
+ public Builder setCodeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ code_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object message_ = "";
+ /**
+ * string message = 3;
+ */
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ message_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string message = 3;
+ */
+ public com.google.protobuf.ByteString
+ getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string message = 3;
+ */
+ public Builder setMessage(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ message_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string message = 3;
+ */
+ public Builder clearMessage() {
+
+ message_ = getDefaultInstance().getMessage();
+ onChanged();
+ return this;
+ }
+ /**
+ * string message = 3;
+ */
+ public Builder setMessageBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ message_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long timestamp_ ;
+ /**
+ * int64 timestamp = 4;
+ */
+ public long getTimestamp() {
+ return timestamp_;
+ }
+ /**
+ * int64 timestamp = 4;
+ */
+ public Builder setTimestamp(long value) {
+
+ timestamp_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 timestamp = 4;
+ */
+ public Builder clearTimestamp() {
+
+ timestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, java.lang.String> data_;
+ private com.google.protobuf.MapFieldmap<string, string> data = 5;
+ */
+
+ public boolean containsData(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetData().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getDataMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> data = 5;
+ */
+
+ public java.util.Mapmap<string, string> data = 5;
+ */
+
+ public java.lang.String getDataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> data = 5;
+ */
+
+ public java.lang.String getDataOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> data = 5;
+ */
+
+ public Builder removeData(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableData().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> data = 5;
+ */
+ public Builder putData(
+ java.lang.String key,
+ java.lang.String value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ if (value == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableData().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * map<string, string> data = 5;
+ */
+
+ public Builder putAllData(
+ java.util.Mapstring key = 1;
+ */
+ java.lang.String getKey();
+ /**
+ * string key = 1;
+ */
+ com.google.protobuf.ByteString
+ getKeyBytes();
+
+ /**
+ * int64 timestamp = 2;
+ */
+ long getTimestamp();
+
+ /**
+ * map<string, string> data = 3;
+ */
+ int getDataCount();
+ /**
+ * map<string, string> data = 3;
+ */
+ boolean containsData(
+ java.lang.String key);
+ /**
+ * Use {@link #getDataMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Mapmap<string, string> data = 3;
+ */
+ java.util.Mapmap<string, string> data = 3;
+ */
+
+ java.lang.String getDataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue);
+ /**
+ * map<string, string> data = 3;
+ */
+
+ java.lang.String getDataOrThrow(
+ java.lang.String key);
+ }
+ /**
+ * Protobuf type {@code com.farsunset.cim.sdk.server.model.proto.Model}
+ */
+ public static final class Model extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.farsunset.cim.sdk.server.model.proto.Model)
+ ModelOrBuilder {
+ // Use Model.newBuilder() to construct.
+ private Model(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Model() {
+ key_ = "";
+ timestamp_ = 0L;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private Model(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ key_ = s;
+ break;
+ }
+ case 16: {
+
+ timestamp_ = input.readInt64();
+ break;
+ }
+ case 26: {
+ if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
+ data_ = com.google.protobuf.MapField.newMapField(
+ DataDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000004;
+ }
+ com.google.protobuf.MapEntrystring key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ 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();
+ key_ = s;
+ return s;
+ }
+ }
+ /**
+ * string key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TIMESTAMP_FIELD_NUMBER = 2;
+ private long timestamp_;
+ /**
+ * int64 timestamp = 2;
+ */
+ public long getTimestamp() {
+ return timestamp_;
+ }
+
+ public static final int DATA_FIELD_NUMBER = 3;
+ private static final class DataDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntry
+ .map<string, string> data = 3;
+ */
+
+ public boolean containsData(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetData().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getDataMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> data = 3;
+ */
+
+ public java.util.Mapmap<string, string> data = 3;
+ */
+
+ public java.lang.String getDataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> data = 3;
+ */
+
+ public java.lang.String getDataOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapstring key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string key = 1;
+ */
+ public Builder setKey(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string key = 1;
+ */
+ public Builder clearKey() {
+
+ key_ = getDefaultInstance().getKey();
+ onChanged();
+ return this;
+ }
+ /**
+ * string key = 1;
+ */
+ public Builder setKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long timestamp_ ;
+ /**
+ * int64 timestamp = 2;
+ */
+ public long getTimestamp() {
+ return timestamp_;
+ }
+ /**
+ * int64 timestamp = 2;
+ */
+ public Builder setTimestamp(long value) {
+
+ timestamp_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 timestamp = 2;
+ */
+ public Builder clearTimestamp() {
+
+ timestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, java.lang.String> data_;
+ private com.google.protobuf.MapFieldmap<string, string> data = 3;
+ */
+
+ public boolean containsData(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetData().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getDataMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> data = 3;
+ */
+
+ public java.util.Mapmap<string, string> data = 3;
+ */
+
+ public java.lang.String getDataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> data = 3;
+ */
+
+ public java.lang.String getDataOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> data = 3;
+ */
+
+ public Builder removeData(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableData().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> data = 3;
+ */
+ public Builder putData(
+ java.lang.String key,
+ java.lang.String value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ if (value == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableData().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * map<string, string> data = 3;
+ */
+
+ public Builder putAllData(
+ java.util.Map