WindChat/windchat-protobuf/src/main/java/com/akaxin/proto/client/ImPtcPushProto.java

1398 lines
42 KiB
Java
Executable File

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: client/im_ptc_push.proto
package com.akaxin.proto.client;
public final class ImPtcPushProto {
private ImPtcPushProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface ImPtcPushRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:platform.ImPtcPushRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
*站点服务demo.akaxin.com:2021
* </pre>
*
* <code>string site_server = 1;</code>
*/
java.lang.String getSiteServer();
/**
* <pre>
*站点服务demo.akaxin.com:2021
* </pre>
*
* <code>string site_server = 1;</code>
*/
com.google.protobuf.ByteString
getSiteServerBytes();
/**
* <pre>
*展示的title
* </pre>
*
* <code>string push_title = 2;</code>
*/
java.lang.String getPushTitle();
/**
* <pre>
*展示的title
* </pre>
*
* <code>string push_title = 2;</code>
*/
com.google.protobuf.ByteString
getPushTitleBytes();
/**
* <pre>
*展示的文案
* </pre>
*
* <code>string push_alert = 3;</code>
*/
java.lang.String getPushAlert();
/**
* <pre>
*展示的文案
* </pre>
*
* <code>string push_alert = 3;</code>
*/
com.google.protobuf.ByteString
getPushAlertBytes();
/**
* <pre>
*Push跳转位置
* </pre>
*
* <code>string push_jump = 4;</code>
*/
java.lang.String getPushJump();
/**
* <pre>
*Push跳转位置
* </pre>
*
* <code>string push_jump = 4;</code>
*/
com.google.protobuf.ByteString
getPushJumpBytes();
/**
* <pre>
*气泡展示个数
* </pre>
*
* <code>int32 push_badge = 5;</code>
*/
int getPushBadge();
/**
* <pre>
*气泡声音
* </pre>
*
* <code>string push_sound = 6;</code>
*/
java.lang.String getPushSound();
/**
* <pre>
*气泡声音
* </pre>
*
* <code>string push_sound = 6;</code>
*/
com.google.protobuf.ByteString
getPushSoundBytes();
}
/**
* Protobuf type {@code platform.ImPtcPushRequest}
*/
public static final class ImPtcPushRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:platform.ImPtcPushRequest)
ImPtcPushRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ImPtcPushRequest.newBuilder() to construct.
private ImPtcPushRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ImPtcPushRequest() {
siteServer_ = "";
pushTitle_ = "";
pushAlert_ = "";
pushJump_ = "";
pushBadge_ = 0;
pushSound_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ImPtcPushRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
siteServer_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
pushTitle_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
pushAlert_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
pushJump_ = s;
break;
}
case 40: {
pushBadge_ = input.readInt32();
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
pushSound_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.akaxin.proto.client.ImPtcPushProto.internal_static_platform_ImPtcPushRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.akaxin.proto.client.ImPtcPushProto.internal_static_platform_ImPtcPushRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest.class, com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest.Builder.class);
}
public static final int SITE_SERVER_FIELD_NUMBER = 1;
private volatile java.lang.Object siteServer_;
/**
* <pre>
*站点服务demo.akaxin.com:2021
* </pre>
*
* <code>string site_server = 1;</code>
*/
public java.lang.String getSiteServer() {
java.lang.Object ref = siteServer_;
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();
siteServer_ = s;
return s;
}
}
/**
* <pre>
*站点服务demo.akaxin.com:2021
* </pre>
*
* <code>string site_server = 1;</code>
*/
public com.google.protobuf.ByteString
getSiteServerBytes() {
java.lang.Object ref = siteServer_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
siteServer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PUSH_TITLE_FIELD_NUMBER = 2;
private volatile java.lang.Object pushTitle_;
/**
* <pre>
*展示的title
* </pre>
*
* <code>string push_title = 2;</code>
*/
public java.lang.String getPushTitle() {
java.lang.Object ref = pushTitle_;
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();
pushTitle_ = s;
return s;
}
}
/**
* <pre>
*展示的title
* </pre>
*
* <code>string push_title = 2;</code>
*/
public com.google.protobuf.ByteString
getPushTitleBytes() {
java.lang.Object ref = pushTitle_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushTitle_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PUSH_ALERT_FIELD_NUMBER = 3;
private volatile java.lang.Object pushAlert_;
/**
* <pre>
*展示的文案
* </pre>
*
* <code>string push_alert = 3;</code>
*/
public java.lang.String getPushAlert() {
java.lang.Object ref = pushAlert_;
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();
pushAlert_ = s;
return s;
}
}
/**
* <pre>
*展示的文案
* </pre>
*
* <code>string push_alert = 3;</code>
*/
public com.google.protobuf.ByteString
getPushAlertBytes() {
java.lang.Object ref = pushAlert_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushAlert_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PUSH_JUMP_FIELD_NUMBER = 4;
private volatile java.lang.Object pushJump_;
/**
* <pre>
*Push跳转位置
* </pre>
*
* <code>string push_jump = 4;</code>
*/
public java.lang.String getPushJump() {
java.lang.Object ref = pushJump_;
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();
pushJump_ = s;
return s;
}
}
/**
* <pre>
*Push跳转位置
* </pre>
*
* <code>string push_jump = 4;</code>
*/
public com.google.protobuf.ByteString
getPushJumpBytes() {
java.lang.Object ref = pushJump_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushJump_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PUSH_BADGE_FIELD_NUMBER = 5;
private int pushBadge_;
/**
* <pre>
*气泡展示个数
* </pre>
*
* <code>int32 push_badge = 5;</code>
*/
public int getPushBadge() {
return pushBadge_;
}
public static final int PUSH_SOUND_FIELD_NUMBER = 6;
private volatile java.lang.Object pushSound_;
/**
* <pre>
*气泡声音
* </pre>
*
* <code>string push_sound = 6;</code>
*/
public java.lang.String getPushSound() {
java.lang.Object ref = pushSound_;
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();
pushSound_ = s;
return s;
}
}
/**
* <pre>
*气泡声音
* </pre>
*
* <code>string push_sound = 6;</code>
*/
public com.google.protobuf.ByteString
getPushSoundBytes() {
java.lang.Object ref = pushSound_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushSound_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (!getSiteServerBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, siteServer_);
}
if (!getPushTitleBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pushTitle_);
}
if (!getPushAlertBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pushAlert_);
}
if (!getPushJumpBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pushJump_);
}
if (pushBadge_ != 0) {
output.writeInt32(5, pushBadge_);
}
if (!getPushSoundBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, pushSound_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getSiteServerBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, siteServer_);
}
if (!getPushTitleBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pushTitle_);
}
if (!getPushAlertBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pushAlert_);
}
if (!getPushJumpBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pushJump_);
}
if (pushBadge_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, pushBadge_);
}
if (!getPushSoundBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pushSound_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest)) {
return super.equals(obj);
}
com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest other = (com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest) obj;
boolean result = true;
result = result && getSiteServer()
.equals(other.getSiteServer());
result = result && getPushTitle()
.equals(other.getPushTitle());
result = result && getPushAlert()
.equals(other.getPushAlert());
result = result && getPushJump()
.equals(other.getPushJump());
result = result && (getPushBadge()
== other.getPushBadge());
result = result && getPushSound()
.equals(other.getPushSound());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SITE_SERVER_FIELD_NUMBER;
hash = (53 * hash) + getSiteServer().hashCode();
hash = (37 * hash) + PUSH_TITLE_FIELD_NUMBER;
hash = (53 * hash) + getPushTitle().hashCode();
hash = (37 * hash) + PUSH_ALERT_FIELD_NUMBER;
hash = (53 * hash) + getPushAlert().hashCode();
hash = (37 * hash) + PUSH_JUMP_FIELD_NUMBER;
hash = (53 * hash) + getPushJump().hashCode();
hash = (37 * hash) + PUSH_BADGE_FIELD_NUMBER;
hash = (53 * hash) + getPushBadge();
hash = (37 * hash) + PUSH_SOUND_FIELD_NUMBER;
hash = (53 * hash) + getPushSound().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest 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.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest 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.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest 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.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest 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 platform.ImPtcPushRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:platform.ImPtcPushRequest)
com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.akaxin.proto.client.ImPtcPushProto.internal_static_platform_ImPtcPushRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.akaxin.proto.client.ImPtcPushProto.internal_static_platform_ImPtcPushRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest.class, com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest.Builder.class);
}
// Construct using com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
siteServer_ = "";
pushTitle_ = "";
pushAlert_ = "";
pushJump_ = "";
pushBadge_ = 0;
pushSound_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.akaxin.proto.client.ImPtcPushProto.internal_static_platform_ImPtcPushRequest_descriptor;
}
public com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest getDefaultInstanceForType() {
return com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest.getDefaultInstance();
}
public com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest build() {
com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest buildPartial() {
com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest result = new com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest(this);
result.siteServer_ = siteServer_;
result.pushTitle_ = pushTitle_;
result.pushAlert_ = pushAlert_;
result.pushJump_ = pushJump_;
result.pushBadge_ = pushBadge_;
result.pushSound_ = pushSound_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest) {
return mergeFrom((com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest other) {
if (other == com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest.getDefaultInstance()) return this;
if (!other.getSiteServer().isEmpty()) {
siteServer_ = other.siteServer_;
onChanged();
}
if (!other.getPushTitle().isEmpty()) {
pushTitle_ = other.pushTitle_;
onChanged();
}
if (!other.getPushAlert().isEmpty()) {
pushAlert_ = other.pushAlert_;
onChanged();
}
if (!other.getPushJump().isEmpty()) {
pushJump_ = other.pushJump_;
onChanged();
}
if (other.getPushBadge() != 0) {
setPushBadge(other.getPushBadge());
}
if (!other.getPushSound().isEmpty()) {
pushSound_ = other.pushSound_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object siteServer_ = "";
/**
* <pre>
*站点服务demo.akaxin.com:2021
* </pre>
*
* <code>string site_server = 1;</code>
*/
public java.lang.String getSiteServer() {
java.lang.Object ref = siteServer_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
siteServer_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*站点服务demo.akaxin.com:2021
* </pre>
*
* <code>string site_server = 1;</code>
*/
public com.google.protobuf.ByteString
getSiteServerBytes() {
java.lang.Object ref = siteServer_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
siteServer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*站点服务demo.akaxin.com:2021
* </pre>
*
* <code>string site_server = 1;</code>
*/
public Builder setSiteServer(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
siteServer_ = value;
onChanged();
return this;
}
/**
* <pre>
*站点服务demo.akaxin.com:2021
* </pre>
*
* <code>string site_server = 1;</code>
*/
public Builder clearSiteServer() {
siteServer_ = getDefaultInstance().getSiteServer();
onChanged();
return this;
}
/**
* <pre>
*站点服务demo.akaxin.com:2021
* </pre>
*
* <code>string site_server = 1;</code>
*/
public Builder setSiteServerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
siteServer_ = value;
onChanged();
return this;
}
private java.lang.Object pushTitle_ = "";
/**
* <pre>
*展示的title
* </pre>
*
* <code>string push_title = 2;</code>
*/
public java.lang.String getPushTitle() {
java.lang.Object ref = pushTitle_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pushTitle_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*展示的title
* </pre>
*
* <code>string push_title = 2;</code>
*/
public com.google.protobuf.ByteString
getPushTitleBytes() {
java.lang.Object ref = pushTitle_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushTitle_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*展示的title
* </pre>
*
* <code>string push_title = 2;</code>
*/
public Builder setPushTitle(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pushTitle_ = value;
onChanged();
return this;
}
/**
* <pre>
*展示的title
* </pre>
*
* <code>string push_title = 2;</code>
*/
public Builder clearPushTitle() {
pushTitle_ = getDefaultInstance().getPushTitle();
onChanged();
return this;
}
/**
* <pre>
*展示的title
* </pre>
*
* <code>string push_title = 2;</code>
*/
public Builder setPushTitleBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pushTitle_ = value;
onChanged();
return this;
}
private java.lang.Object pushAlert_ = "";
/**
* <pre>
*展示的文案
* </pre>
*
* <code>string push_alert = 3;</code>
*/
public java.lang.String getPushAlert() {
java.lang.Object ref = pushAlert_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pushAlert_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*展示的文案
* </pre>
*
* <code>string push_alert = 3;</code>
*/
public com.google.protobuf.ByteString
getPushAlertBytes() {
java.lang.Object ref = pushAlert_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushAlert_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*展示的文案
* </pre>
*
* <code>string push_alert = 3;</code>
*/
public Builder setPushAlert(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pushAlert_ = value;
onChanged();
return this;
}
/**
* <pre>
*展示的文案
* </pre>
*
* <code>string push_alert = 3;</code>
*/
public Builder clearPushAlert() {
pushAlert_ = getDefaultInstance().getPushAlert();
onChanged();
return this;
}
/**
* <pre>
*展示的文案
* </pre>
*
* <code>string push_alert = 3;</code>
*/
public Builder setPushAlertBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pushAlert_ = value;
onChanged();
return this;
}
private java.lang.Object pushJump_ = "";
/**
* <pre>
*Push跳转位置
* </pre>
*
* <code>string push_jump = 4;</code>
*/
public java.lang.String getPushJump() {
java.lang.Object ref = pushJump_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pushJump_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*Push跳转位置
* </pre>
*
* <code>string push_jump = 4;</code>
*/
public com.google.protobuf.ByteString
getPushJumpBytes() {
java.lang.Object ref = pushJump_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushJump_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*Push跳转位置
* </pre>
*
* <code>string push_jump = 4;</code>
*/
public Builder setPushJump(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pushJump_ = value;
onChanged();
return this;
}
/**
* <pre>
*Push跳转位置
* </pre>
*
* <code>string push_jump = 4;</code>
*/
public Builder clearPushJump() {
pushJump_ = getDefaultInstance().getPushJump();
onChanged();
return this;
}
/**
* <pre>
*Push跳转位置
* </pre>
*
* <code>string push_jump = 4;</code>
*/
public Builder setPushJumpBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pushJump_ = value;
onChanged();
return this;
}
private int pushBadge_ ;
/**
* <pre>
*气泡展示个数
* </pre>
*
* <code>int32 push_badge = 5;</code>
*/
public int getPushBadge() {
return pushBadge_;
}
/**
* <pre>
*气泡展示个数
* </pre>
*
* <code>int32 push_badge = 5;</code>
*/
public Builder setPushBadge(int value) {
pushBadge_ = value;
onChanged();
return this;
}
/**
* <pre>
*气泡展示个数
* </pre>
*
* <code>int32 push_badge = 5;</code>
*/
public Builder clearPushBadge() {
pushBadge_ = 0;
onChanged();
return this;
}
private java.lang.Object pushSound_ = "";
/**
* <pre>
*气泡声音
* </pre>
*
* <code>string push_sound = 6;</code>
*/
public java.lang.String getPushSound() {
java.lang.Object ref = pushSound_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pushSound_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*气泡声音
* </pre>
*
* <code>string push_sound = 6;</code>
*/
public com.google.protobuf.ByteString
getPushSoundBytes() {
java.lang.Object ref = pushSound_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushSound_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*气泡声音
* </pre>
*
* <code>string push_sound = 6;</code>
*/
public Builder setPushSound(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pushSound_ = value;
onChanged();
return this;
}
/**
* <pre>
*气泡声音
* </pre>
*
* <code>string push_sound = 6;</code>
*/
public Builder clearPushSound() {
pushSound_ = getDefaultInstance().getPushSound();
onChanged();
return this;
}
/**
* <pre>
*气泡声音
* </pre>
*
* <code>string push_sound = 6;</code>
*/
public Builder setPushSoundBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pushSound_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:platform.ImPtcPushRequest)
}
// @@protoc_insertion_point(class_scope:platform.ImPtcPushRequest)
private static final com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest();
}
public static com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ImPtcPushRequest>
PARSER = new com.google.protobuf.AbstractParser<ImPtcPushRequest>() {
public ImPtcPushRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ImPtcPushRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ImPtcPushRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ImPtcPushRequest> getParserForType() {
return PARSER;
}
public com.akaxin.proto.client.ImPtcPushProto.ImPtcPushRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_platform_ImPtcPushRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_platform_ImPtcPushRequest_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\030client/im_ptc_push.proto\022\010platform\032\017co" +
"re/core.proto\"\212\001\n\020ImPtcPushRequest\022\023\n\013si" +
"te_server\030\001 \001(\t\022\022\n\npush_title\030\002 \001(\t\022\022\n\np" +
"ush_alert\030\003 \001(\t\022\021\n\tpush_jump\030\004 \001(\t\022\022\n\npu" +
"sh_badge\030\005 \001(\005\022\022\n\npush_sound\030\006 \001(\t2J\n\020Im" +
"PtcPushService\0226\n\004push\022\032.platform.ImPtcP" +
"ushRequest\032\022.core.NoneResponseB)\n\027com.ak" +
"axin.proto.clientB\016ImPtcPushProtob\006proto" +
"3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.akaxin.proto.core.CoreProto.getDescriptor(),
}, assigner);
internal_static_platform_ImPtcPushRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_platform_ImPtcPushRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_platform_ImPtcPushRequest_descriptor,
new java.lang.String[] { "SiteServer", "PushTitle", "PushAlert", "PushJump", "PushBadge", "PushSound", });
com.akaxin.proto.core.CoreProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}