com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: MessageEventResponse.proto
package com.alachisoft.ncache.common.protobuf;
public final class MessageEventResponseProtocol {
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_alachisoft_ncache_common_protobuf_MessageEventResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_alachisoft_ncache_common_protobuf_MessageEventResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\032MessageEventResponse.proto\022%com.alachi" +
"soft.ncache.common.protobuf\"k\n\024MessageEv" +
"entResponse\022\021\n\tMessageId\030\001 \001(\t\022\025\n\rfailur" +
"eReason\030\002 \001(\005\022\022\n\npubsubType\030\003 \001(\005\022\025\n\rsub" +
"scriberIds\030\004 \003(\tB\036B\034MessageEventResponse" +
"Protocol"
};
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;
internal_static_com_alachisoft_ncache_common_protobuf_MessageEventResponse_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_alachisoft_ncache_common_protobuf_MessageEventResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_alachisoft_ncache_common_protobuf_MessageEventResponse_descriptor,
new java.lang.String[]{"MessageId", "FailureReason", "PubsubType", "SubscriberIds",},
com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse.class,
com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse.Builder.class);
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[]{
}, assigner);
}
private MessageEventResponseProtocol() {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
public static void internalForceInit() {
}
public static final class MessageEventResponse extends
com.google.protobuf.GeneratedMessage {
// optional string MessageId = 1;
public static final int MESSAGEID_FIELD_NUMBER = 1;
// optional int32 failureReason = 2;
public static final int FAILUREREASON_FIELD_NUMBER = 2;
// optional int32 pubsubType = 3;
public static final int PUBSUBTYPE_FIELD_NUMBER = 3;
// repeated string subscriberIds = 4;
public static final int SUBSCRIBERIDS_FIELD_NUMBER = 4;
private static final MessageEventResponse defaultInstance;
static {
defaultInstance = new MessageEventResponse(true);
com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.internalForceInit();
defaultInstance.initFields();
}
private boolean hasMessageId;
private java.lang.String messageId_ = "";
private boolean hasFailureReason;
private int failureReason_ = 0;
private boolean hasPubsubType;
private int pubsubType_ = 0;
private java.util.List subscriberIds_ =
java.util.Collections.emptyList();
private int memoizedSerializedSize = -1;
// Use MessageEventResponse.newBuilder() to construct.
private MessageEventResponse() {
initFields();
}
private MessageEventResponse(boolean noInit) {
}
public static MessageEventResponse getDefaultInstance() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.internal_static_com_alachisoft_ncache_common_protobuf_MessageEventResponse_descriptor;
}
public static com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() {
return Builder.create();
}
public static Builder newBuilder(com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse prototype) {
return newBuilder().mergeFrom(prototype);
}
public MessageEventResponse getDefaultInstanceForType() {
return defaultInstance;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.internal_static_com_alachisoft_ncache_common_protobuf_MessageEventResponse_fieldAccessorTable;
}
public boolean hasMessageId() {
return hasMessageId;
}
public java.lang.String getMessageId() {
return messageId_;
}
public boolean hasFailureReason() {
return hasFailureReason;
}
public int getFailureReason() {
return failureReason_;
}
public boolean hasPubsubType() {
return hasPubsubType;
}
public int getPubsubType() {
return pubsubType_;
}
public java.util.List getSubscriberIdsList() {
return subscriberIds_;
}
public int getSubscriberIdsCount() {
return subscriberIds_.size();
}
public java.lang.String getSubscriberIds(int index) {
return subscriberIds_.get(index);
}
private void initFields() {
}
public final boolean isInitialized() {
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (hasMessageId()) {
output.writeString(1, getMessageId());
}
if (hasFailureReason()) {
output.writeInt32(2, getFailureReason());
}
if (hasPubsubType()) {
output.writeInt32(3, getPubsubType());
}
for (java.lang.String element : getSubscriberIdsList()) {
output.writeString(4, element);
}
getUnknownFields().writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasMessageId()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(1, getMessageId());
}
if (hasFailureReason()) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, getFailureReason());
}
if (hasPubsubType()) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, getPubsubType());
}
{
int dataSize = 0;
for (java.lang.String element : getSubscriberIdsList()) {
dataSize += com.google.protobuf.CodedOutputStream
.computeStringSizeNoTag(element);
}
size += dataSize;
size += 1 * getSubscriberIdsList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
public Builder newBuilderForType() {
return newBuilder();
}
public Builder toBuilder() {
return newBuilder(this);
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder {
private com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse result;
// Construct using com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse.newBuilder()
private Builder() {
}
private static Builder create() {
Builder builder = new Builder();
builder.result = new com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse();
return builder;
}
protected com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse internalGetResult() {
return result;
}
public Builder clear() {
if (result == null) {
throw new IllegalStateException(
"Cannot call clear() after build().");
}
result = new com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse();
return this;
}
public Builder clone() {
return create().mergeFrom(result);
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse.getDescriptor();
}
public com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse getDefaultInstanceForType() {
return com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse.getDefaultInstance();
}
public boolean isInitialized() {
return result.isInitialized();
}
public com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse build() {
if (result != null && !isInitialized()) {
throw newUninitializedMessageException(result);
}
return buildPartial();
}
private com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder.");
}
if (result.subscriberIds_ != java.util.Collections.EMPTY_LIST) {
result.subscriberIds_ =
java.util.Collections.unmodifiableList(result.subscriberIds_);
}
com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse returnMe = result;
result = null;
return returnMe;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse) {
return mergeFrom((com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse other) {
if (other == com.alachisoft.ncache.common.protobuf.MessageEventResponseProtocol.MessageEventResponse.getDefaultInstance())
return this;
if (other.hasMessageId()) {
setMessageId(other.getMessageId());
}
if (other.hasFailureReason()) {
setFailureReason(other.getFailureReason());
}
if (other.hasPubsubType()) {
setPubsubType(other.getPubsubType());
}
if (!other.subscriberIds_.isEmpty()) {
if (result.subscriberIds_.isEmpty()) {
result.subscriberIds_ = new java.util.ArrayList();
}
result.subscriberIds_.addAll(other.subscriberIds_);
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder(
this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
return this;
}
break;
}
case 10: {
setMessageId(input.readString());
break;
}
case 16: {
setFailureReason(input.readInt32());
break;
}
case 24: {
setPubsubType(input.readInt32());
break;
}
case 34: {
addSubscriberIds(input.readString());
break;
}
}
}
}
// optional string MessageId = 1;
public boolean hasMessageId() {
return result.hasMessageId();
}
public java.lang.String getMessageId() {
return result.getMessageId();
}
public Builder setMessageId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasMessageId = true;
result.messageId_ = value;
return this;
}
public Builder clearMessageId() {
result.hasMessageId = false;
result.messageId_ = getDefaultInstance().getMessageId();
return this;
}
// optional int32 failureReason = 2;
public boolean hasFailureReason() {
return result.hasFailureReason();
}
public int getFailureReason() {
return result.getFailureReason();
}
public Builder setFailureReason(int value) {
result.hasFailureReason = true;
result.failureReason_ = value;
return this;
}
public Builder clearFailureReason() {
result.hasFailureReason = false;
result.failureReason_ = 0;
return this;
}
// optional int32 pubsubType = 3;
public boolean hasPubsubType() {
return result.hasPubsubType();
}
public int getPubsubType() {
return result.getPubsubType();
}
public Builder setPubsubType(int value) {
result.hasPubsubType = true;
result.pubsubType_ = value;
return this;
}
public Builder clearPubsubType() {
result.hasPubsubType = false;
result.pubsubType_ = 0;
return this;
}
// repeated string subscriberIds = 4;
public java.util.List getSubscriberIdsList() {
return java.util.Collections.unmodifiableList(result.subscriberIds_);
}
public int getSubscriberIdsCount() {
return result.getSubscriberIdsCount();
}
public java.lang.String getSubscriberIds(int index) {
return result.getSubscriberIds(index);
}
public Builder setSubscriberIds(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.subscriberIds_.set(index, value);
return this;
}
public Builder addSubscriberIds(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
if (result.subscriberIds_.isEmpty()) {
result.subscriberIds_ = new java.util.ArrayList();
}
result.subscriberIds_.add(value);
return this;
}
public Builder addAllSubscriberIds(
java.lang.Iterable extends java.lang.String> values) {
if (result.subscriberIds_.isEmpty()) {
result.subscriberIds_ = new java.util.ArrayList();
}
super.addAll(values, result.subscriberIds_);
return this;
}
public Builder clearSubscriberIds() {
result.subscriberIds_ = java.util.Collections.emptyList();
return this;
}
// @@protoc_insertion_point(builder_scope:com.alachisoft.ncache.common.protobuf.MessageEventResponse)
}
// @@protoc_insertion_point(class_scope:com.alachisoft.ncache.common.protobuf.MessageEventResponse)
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy