// Generated by the protocol buffer compiler. DO NOT EDIT! // source: WNewCustomerAddedNotice.proto package Im.Scrm.Ww.Proto; public final class WNewCustomerAddedNotice { private WNewCustomerAddedNotice() {} 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 NewCustomerAddedNoticeMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:Im.Scrm.Ww.Proto.NewCustomerAddedNoticeMessage) com.google.protobuf.MessageOrBuilder { /** *
* 设备企业WX号 ** *
int64 WxId = 1;
* @return The wxId.
*/
long getWxId();
/**
* *int32 UnRead = 2; // 新客户未读数量 ** *
.Im.Scrm.Ww.Proto.CustomerMessage Contact = 3;
* @return Whether the contact field is set.
*/
boolean hasContact();
/**
* *int32 UnRead = 2; // 新客户未读数量 ** *
.Im.Scrm.Ww.Proto.CustomerMessage Contact = 3;
* @return The contact.
*/
Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessage getContact();
/**
* *int32 UnRead = 2; // 新客户未读数量 ** *
.Im.Scrm.Ww.Proto.CustomerMessage Contact = 3;
*/
Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessageOrBuilder getContactOrBuilder();
}
/**
* Protobuf type {@code Im.Scrm.Ww.Proto.NewCustomerAddedNoticeMessage}
*/
public static final class NewCustomerAddedNoticeMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Im.Scrm.Ww.Proto.NewCustomerAddedNoticeMessage)
NewCustomerAddedNoticeMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use NewCustomerAddedNoticeMessage.newBuilder() to construct.
private NewCustomerAddedNoticeMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NewCustomerAddedNoticeMessage() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NewCustomerAddedNoticeMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NewCustomerAddedNoticeMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
wxId_ = input.readInt64();
break;
}
case 26: {
Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessage.Builder subBuilder = null;
if (contact_ != null) {
subBuilder = contact_.toBuilder();
}
contact_ = input.readMessage(Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessage.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(contact_);
contact_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Im.Scrm.Ww.Proto.WNewCustomerAddedNotice.internal_static_Im_Scrm_Ww_Proto_NewCustomerAddedNoticeMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return Im.Scrm.Ww.Proto.WNewCustomerAddedNotice.internal_static_Im_Scrm_Ww_Proto_NewCustomerAddedNoticeMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Im.Scrm.Ww.Proto.WNewCustomerAddedNotice.NewCustomerAddedNoticeMessage.class, Im.Scrm.Ww.Proto.WNewCustomerAddedNotice.NewCustomerAddedNoticeMessage.Builder.class);
}
public static final int WXID_FIELD_NUMBER = 1;
private long wxId_;
/**
* * 设备企业WX号 ** *
int64 WxId = 1;
* @return The wxId.
*/
public long getWxId() {
return wxId_;
}
public static final int CONTACT_FIELD_NUMBER = 3;
private Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessage contact_;
/**
* *int32 UnRead = 2; // 新客户未读数量 ** *
.Im.Scrm.Ww.Proto.CustomerMessage Contact = 3;
* @return Whether the contact field is set.
*/
public boolean hasContact() {
return contact_ != null;
}
/**
* *int32 UnRead = 2; // 新客户未读数量 ** *
.Im.Scrm.Ww.Proto.CustomerMessage Contact = 3;
* @return The contact.
*/
public Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessage getContact() {
return contact_ == null ? Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessage.getDefaultInstance() : contact_;
}
/**
* *int32 UnRead = 2; // 新客户未读数量 ** *
.Im.Scrm.Ww.Proto.CustomerMessage Contact = 3;
*/
public Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessageOrBuilder getContactOrBuilder() {
return getContact();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (wxId_ != 0L) {
output.writeInt64(1, wxId_);
}
if (contact_ != null) {
output.writeMessage(3, getContact());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (wxId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, wxId_);
}
if (contact_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getContact());
}
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 Im.Scrm.Ww.Proto.WNewCustomerAddedNotice.NewCustomerAddedNoticeMessage)) {
return super.equals(obj);
}
Im.Scrm.Ww.Proto.WNewCustomerAddedNotice.NewCustomerAddedNoticeMessage other = (Im.Scrm.Ww.Proto.WNewCustomerAddedNotice.NewCustomerAddedNoticeMessage) obj;
if (getWxId()
!= other.getWxId()) return false;
if (hasContact() != other.hasContact()) return false;
if (hasContact()) {
if (!getContact()
.equals(other.getContact())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + WXID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getWxId());
if (hasContact()) {
hash = (37 * hash) + CONTACT_FIELD_NUMBER;
hash = (53 * hash) + getContact().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static Im.Scrm.Ww.Proto.WNewCustomerAddedNotice.NewCustomerAddedNoticeMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Im.Scrm.Ww.Proto.WNewCustomerAddedNotice.NewCustomerAddedNoticeMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Im.Scrm.Ww.Proto.WNewCustomerAddedNotice.NewCustomerAddedNoticeMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Im.Scrm.Ww.Proto.WNewCustomerAddedNotice.NewCustomerAddedNoticeMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Im.Scrm.Ww.Proto.WNewCustomerAddedNotice.NewCustomerAddedNoticeMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Im.Scrm.Ww.Proto.WNewCustomerAddedNotice.NewCustomerAddedNoticeMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Im.Scrm.Ww.Proto.WNewCustomerAddedNotice.NewCustomerAddedNoticeMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static Im.Scrm.Ww.Proto.WNewCustomerAddedNotice.NewCustomerAddedNoticeMessage 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 Im.Scrm.Ww.Proto.WNewCustomerAddedNotice.NewCustomerAddedNoticeMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static Im.Scrm.Ww.Proto.WNewCustomerAddedNotice.NewCustomerAddedNoticeMessage 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 Im.Scrm.Ww.Proto.WNewCustomerAddedNotice.NewCustomerAddedNoticeMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static Im.Scrm.Ww.Proto.WNewCustomerAddedNotice.NewCustomerAddedNoticeMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(Im.Scrm.Ww.Proto.WNewCustomerAddedNotice.NewCustomerAddedNoticeMessage prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Im.Scrm.Ww.Proto.NewCustomerAddedNoticeMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder* 设备企业WX号 ** *
int64 WxId = 1;
* @return The wxId.
*/
public long getWxId() {
return wxId_;
}
/**
* * 设备企业WX号 ** *
int64 WxId = 1;
* @param value The wxId to set.
* @return This builder for chaining.
*/
public Builder setWxId(long value) {
wxId_ = value;
onChanged();
return this;
}
/**
* * 设备企业WX号 ** *
int64 WxId = 1;
* @return This builder for chaining.
*/
public Builder clearWxId() {
wxId_ = 0L;
onChanged();
return this;
}
private Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessage contact_;
private com.google.protobuf.SingleFieldBuilderV3<
Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessage, Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessage.Builder, Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessageOrBuilder> contactBuilder_;
/**
* *int32 UnRead = 2; // 新客户未读数量 ** *
.Im.Scrm.Ww.Proto.CustomerMessage Contact = 3;
* @return Whether the contact field is set.
*/
public boolean hasContact() {
return contactBuilder_ != null || contact_ != null;
}
/**
* *int32 UnRead = 2; // 新客户未读数量 ** *
.Im.Scrm.Ww.Proto.CustomerMessage Contact = 3;
* @return The contact.
*/
public Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessage getContact() {
if (contactBuilder_ == null) {
return contact_ == null ? Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessage.getDefaultInstance() : contact_;
} else {
return contactBuilder_.getMessage();
}
}
/**
* *int32 UnRead = 2; // 新客户未读数量 ** *
.Im.Scrm.Ww.Proto.CustomerMessage Contact = 3;
*/
public Builder setContact(Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessage value) {
if (contactBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
contact_ = value;
onChanged();
} else {
contactBuilder_.setMessage(value);
}
return this;
}
/**
* *int32 UnRead = 2; // 新客户未读数量 ** *
.Im.Scrm.Ww.Proto.CustomerMessage Contact = 3;
*/
public Builder setContact(
Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessage.Builder builderForValue) {
if (contactBuilder_ == null) {
contact_ = builderForValue.build();
onChanged();
} else {
contactBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* *int32 UnRead = 2; // 新客户未读数量 ** *
.Im.Scrm.Ww.Proto.CustomerMessage Contact = 3;
*/
public Builder mergeContact(Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessage value) {
if (contactBuilder_ == null) {
if (contact_ != null) {
contact_ =
Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessage.newBuilder(contact_).mergeFrom(value).buildPartial();
} else {
contact_ = value;
}
onChanged();
} else {
contactBuilder_.mergeFrom(value);
}
return this;
}
/**
* *int32 UnRead = 2; // 新客户未读数量 ** *
.Im.Scrm.Ww.Proto.CustomerMessage Contact = 3;
*/
public Builder clearContact() {
if (contactBuilder_ == null) {
contact_ = null;
onChanged();
} else {
contact_ = null;
contactBuilder_ = null;
}
return this;
}
/**
* *int32 UnRead = 2; // 新客户未读数量 ** *
.Im.Scrm.Ww.Proto.CustomerMessage Contact = 3;
*/
public Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessage.Builder getContactBuilder() {
onChanged();
return getContactFieldBuilder().getBuilder();
}
/**
* *int32 UnRead = 2; // 新客户未读数量 ** *
.Im.Scrm.Ww.Proto.CustomerMessage Contact = 3;
*/
public Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessageOrBuilder getContactOrBuilder() {
if (contactBuilder_ != null) {
return contactBuilder_.getMessageOrBuilder();
} else {
return contact_ == null ?
Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessage.getDefaultInstance() : contact_;
}
}
/**
* *int32 UnRead = 2; // 新客户未读数量 ** *
.Im.Scrm.Ww.Proto.CustomerMessage Contact = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessage, Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessage.Builder, Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessageOrBuilder>
getContactFieldBuilder() {
if (contactBuilder_ == null) {
contactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessage, Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessage.Builder, Im.Scrm.Ww.Proto.WCustomerPushNotice.CustomerMessageOrBuilder>(
getContact(),
getParentForChildren(),
isClean());
contact_ = null;
}
return contactBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Im.Scrm.Ww.Proto.NewCustomerAddedNoticeMessage)
}
// @@protoc_insertion_point(class_scope:Im.Scrm.Ww.Proto.NewCustomerAddedNoticeMessage)
private static final Im.Scrm.Ww.Proto.WNewCustomerAddedNotice.NewCustomerAddedNoticeMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new Im.Scrm.Ww.Proto.WNewCustomerAddedNotice.NewCustomerAddedNoticeMessage();
}
public static Im.Scrm.Ww.Proto.WNewCustomerAddedNotice.NewCustomerAddedNoticeMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser