All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alachisoft.ncache.common.protobuf.MessagePublishCommandProtocol Maven / Gradle / Ivy

There is a newer version: 5.3.3
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: MessagePublishCommand.proto

package com.alachisoft.ncache.common.protobuf;

public final class MessagePublishCommandProtocol {
  private MessagePublishCommandProtocol() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public static final class MessagePublishCommand extends
      com.google.protobuf.GeneratedMessage {
    // Use MessagePublishCommand.newBuilder() to construct.
    private MessagePublishCommand() {
      initFields();
    }
    private MessagePublishCommand(boolean noInit) {}
    
    private static final MessagePublishCommand defaultInstance;
    public static MessagePublishCommand getDefaultInstance() {
      return defaultInstance;
    }
    
    public MessagePublishCommand getDefaultInstanceForType() {
      return defaultInstance;
    }
    
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return MessagePublishCommandProtocol.internal_static_com_alachisoft_ncache_common_protobuf_MessagePublishCommand_descriptor;
    }
    
    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return MessagePublishCommandProtocol.internal_static_com_alachisoft_ncache_common_protobuf_MessagePublishCommand_fieldAccessorTable;
    }
    
    // optional string messageId = 1;
    public static final int MESSAGEID_FIELD_NUMBER = 1;
    private boolean hasMessageId;
    private String messageId_ = "";
    public boolean hasMessageId() { return hasMessageId; }
    public String getMessageId() { return messageId_; }
    
    // optional int64 expiration = 2;
    public static final int EXPIRATION_FIELD_NUMBER = 2;
    private boolean hasExpiration;
    private long expiration_ = 0L;
    public boolean hasExpiration() { return hasExpiration; }
    public long getExpiration() { return expiration_; }
    
    // optional string topicName = 3;
    public static final int TOPICNAME_FIELD_NUMBER = 3;
    private boolean hasTopicName;
    private String topicName_ = "";
    public boolean hasTopicName() { return hasTopicName; }
    public String getTopicName() { return topicName_; }
    
    // optional int64 creationTime = 4;
    public static final int CREATIONTIME_FIELD_NUMBER = 4;
    private boolean hasCreationTime;
    private long creationTime_ = 0L;
    public boolean hasCreationTime() { return hasCreationTime; }
    public long getCreationTime() { return creationTime_; }
    
    // repeated bytes data = 5;
    public static final int DATA_FIELD_NUMBER = 5;
    private java.util.List data_ =
      java.util.Collections.emptyList();
    public java.util.List getDataList() {
      return data_;
    }
    public int getDataCount() { return data_.size(); }
    public com.google.protobuf.ByteString getData(int index) {
      return data_.get(index);
    }
    
    // optional int64 requestId = 6;
    public static final int REQUESTID_FIELD_NUMBER = 6;
    private boolean hasRequestId;
    private long requestId_ = 0L;
    public boolean hasRequestId() { return hasRequestId; }
    public long getRequestId() { return requestId_; }
    
    // optional bool isAsync = 7;
    public static final int ISASYNC_FIELD_NUMBER = 7;
    private boolean hasIsAsync;
    private boolean isAsync_ = false;
    public boolean hasIsAsync() { return hasIsAsync; }
    public boolean getIsAsync() { return isAsync_; }
    
    // optional int32 flag = 8;
    public static final int FLAG_FIELD_NUMBER = 8;
    private boolean hasFlag;
    private int flag_ = 0;
    public boolean hasFlag() { return hasFlag; }
    public int getFlag() { return flag_; }
    
    // repeated .com.alachisoft.ncache.common.protobuf.KeyValuePair keyValuePair = 9;
    public static final int KEYVALUEPAIR_FIELD_NUMBER = 9;
    private java.util.List keyValuePair_ =
      java.util.Collections.emptyList();
    public java.util.List getKeyValuePairList() {
      return keyValuePair_;
    }
    public int getKeyValuePairCount() { return keyValuePair_.size(); }
    public KeyValuePairProtocol.KeyValuePair getKeyValuePair(int index) {
      return keyValuePair_.get(index);
    }
    
    // optional int64 clientLastViewId = 10 [default = -1];
    public static final int CLIENTLASTVIEWID_FIELD_NUMBER = 10;
    private boolean hasClientLastViewId;
    private long clientLastViewId_ = -1L;
    public boolean hasClientLastViewId() { return hasClientLastViewId; }
    public long getClientLastViewId() { return clientLastViewId_; }
    
    // optional string version = 11;
    public static final int VERSION_FIELD_NUMBER = 11;
    private boolean hasVersion;
    private String version_ = "";
    public boolean hasVersion() { return hasVersion; }
    public String getVersion() { return version_; }
    
    // optional int32 commandVersion = 12 [default = 0];
    public static final int COMMANDVERSION_FIELD_NUMBER = 12;
    private boolean hasCommandVersion;
    private int commandVersion_ = 0;
    public boolean hasCommandVersion() { return hasCommandVersion; }
    public int getCommandVersion() { return commandVersion_; }
    
    // optional string intendedRecipient = 13 [default = ""];
    public static final int INTENDEDRECIPIENT_FIELD_NUMBER = 13;
    private boolean hasIntendedRecipient;
    private String intendedRecipient_ = "";
    public boolean hasIntendedRecipient() { return hasIntendedRecipient; }
    public String getIntendedRecipient() { return intendedRecipient_; }
    
    // optional int32 deliveryOption = 14;
    public static final int DELIVERYOPTION_FIELD_NUMBER = 14;
    private boolean hasDeliveryOption;
    private int deliveryOption_ = 0;
    public boolean hasDeliveryOption() { return hasDeliveryOption; }
    public int getDeliveryOption() { return deliveryOption_; }
    
    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 (hasExpiration()) {
        output.writeInt64(2, getExpiration());
      }
      if (hasTopicName()) {
        output.writeString(3, getTopicName());
      }
      if (hasCreationTime()) {
        output.writeInt64(4, getCreationTime());
      }
      for (com.google.protobuf.ByteString element : getDataList()) {
        output.writeBytes(5, element);
      }
      if (hasRequestId()) {
        output.writeInt64(6, getRequestId());
      }
      if (hasIsAsync()) {
        output.writeBool(7, getIsAsync());
      }
      if (hasFlag()) {
        output.writeInt32(8, getFlag());
      }
      for (KeyValuePairProtocol.KeyValuePair element : getKeyValuePairList()) {
        output.writeMessage(9, element);
      }
      if (hasClientLastViewId()) {
        output.writeInt64(10, getClientLastViewId());
      }
      if (hasVersion()) {
        output.writeString(11, getVersion());
      }
      if (hasCommandVersion()) {
        output.writeInt32(12, getCommandVersion());
      }
      if (hasIntendedRecipient()) {
        output.writeString(13, getIntendedRecipient());
      }
      if (hasDeliveryOption()) {
        output.writeInt32(14, getDeliveryOption());
      }
      getUnknownFields().writeTo(output);
    }
    
    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;
    
      size = 0;
      if (hasMessageId()) {
        size += com.google.protobuf.CodedOutputStream
          .computeStringSize(1, getMessageId());
      }
      if (hasExpiration()) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(2, getExpiration());
      }
      if (hasTopicName()) {
        size += com.google.protobuf.CodedOutputStream
          .computeStringSize(3, getTopicName());
      }
      if (hasCreationTime()) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(4, getCreationTime());
      }
      {
        int dataSize = 0;
        for (com.google.protobuf.ByteString element : getDataList()) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeBytesSizeNoTag(element);
        }
        size += dataSize;
        size += 1 * getDataList().size();
      }
      if (hasRequestId()) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(6, getRequestId());
      }
      if (hasIsAsync()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(7, getIsAsync());
      }
      if (hasFlag()) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(8, getFlag());
      }
      for (KeyValuePairProtocol.KeyValuePair element : getKeyValuePairList()) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(9, element);
      }
      if (hasClientLastViewId()) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(10, getClientLastViewId());
      }
      if (hasVersion()) {
        size += com.google.protobuf.CodedOutputStream
          .computeStringSize(11, getVersion());
      }
      if (hasCommandVersion()) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(12, getCommandVersion());
      }
      if (hasIntendedRecipient()) {
        size += com.google.protobuf.CodedOutputStream
          .computeStringSize(13, getIntendedRecipient());
      }
      if (hasDeliveryOption()) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(14, getDeliveryOption());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }
    
    public static MessagePublishCommand parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static MessagePublishCommand parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static MessagePublishCommand parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static MessagePublishCommand parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static MessagePublishCommand parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static MessagePublishCommand parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    public static MessagePublishCommand parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static MessagePublishCommand 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 MessagePublishCommand parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static MessagePublishCommand 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 Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(MessagePublishCommand prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }
    
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder {
      private MessagePublishCommand result;
      
      // Construct using com.alachisoft.ncache.common.protobuf.MessagePublishCommandProtocol.MessagePublishCommand.newBuilder()
      private Builder() {}
      
      private static Builder create() {
        Builder builder = new Builder();
        builder.result = new MessagePublishCommand();
        return builder;
      }
      
      protected MessagePublishCommand internalGetResult() {
        return result;
      }
      
      public Builder clear() {
        if (result == null) {
          throw new IllegalStateException(
            "Cannot call clear() after build().");
        }
        result = new MessagePublishCommand();
        return this;
      }
      
      public Builder clone() {
        return create().mergeFrom(result);
      }
      
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return MessagePublishCommand.getDescriptor();
      }
      
      public MessagePublishCommand getDefaultInstanceForType() {
        return MessagePublishCommand.getDefaultInstance();
      }
      
      public boolean isInitialized() {
        return result.isInitialized();
      }
      public MessagePublishCommand build() {
        if (result != null && !isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return buildPartial();
      }
      
      private MessagePublishCommand buildParsed()
          throws com.google.protobuf.InvalidProtocolBufferException {
        if (!isInitialized()) {
          throw newUninitializedMessageException(
            result).asInvalidProtocolBufferException();
        }
        return buildPartial();
      }
      
      public MessagePublishCommand buildPartial() {
        if (result == null) {
          throw new IllegalStateException(
            "build() has already been called on this Builder.");
        }
        if (result.data_ != java.util.Collections.EMPTY_LIST) {
          result.data_ =
            java.util.Collections.unmodifiableList(result.data_);
        }
        if (result.keyValuePair_ != java.util.Collections.EMPTY_LIST) {
          result.keyValuePair_ =
            java.util.Collections.unmodifiableList(result.keyValuePair_);
        }
        MessagePublishCommand returnMe = result;
        result = null;
        return returnMe;
      }
      
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof MessagePublishCommand) {
          return mergeFrom((MessagePublishCommand)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      
      public Builder mergeFrom(MessagePublishCommand other) {
        if (other == MessagePublishCommand.getDefaultInstance()) return this;
        if (other.hasMessageId()) {
          setMessageId(other.getMessageId());
        }
        if (other.hasExpiration()) {
          setExpiration(other.getExpiration());
        }
        if (other.hasTopicName()) {
          setTopicName(other.getTopicName());
        }
        if (other.hasCreationTime()) {
          setCreationTime(other.getCreationTime());
        }
        if (!other.data_.isEmpty()) {
          if (result.data_.isEmpty()) {
            result.data_ = new java.util.ArrayList();
          }
          result.data_.addAll(other.data_);
        }
        if (other.hasRequestId()) {
          setRequestId(other.getRequestId());
        }
        if (other.hasIsAsync()) {
          setIsAsync(other.getIsAsync());
        }
        if (other.hasFlag()) {
          setFlag(other.getFlag());
        }
        if (!other.keyValuePair_.isEmpty()) {
          if (result.keyValuePair_.isEmpty()) {
            result.keyValuePair_ = new java.util.ArrayList();
          }
          result.keyValuePair_.addAll(other.keyValuePair_);
        }
        if (other.hasClientLastViewId()) {
          setClientLastViewId(other.getClientLastViewId());
        }
        if (other.hasVersion()) {
          setVersion(other.getVersion());
        }
        if (other.hasCommandVersion()) {
          setCommandVersion(other.getCommandVersion());
        }
        if (other.hasIntendedRecipient()) {
          setIntendedRecipient(other.getIntendedRecipient());
        }
        if (other.hasDeliveryOption()) {
          setDeliveryOption(other.getDeliveryOption());
        }
        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: {
              setExpiration(input.readInt64());
              break;
            }
            case 26: {
              setTopicName(input.readString());
              break;
            }
            case 32: {
              setCreationTime(input.readInt64());
              break;
            }
            case 42: {
              addData(input.readBytes());
              break;
            }
            case 48: {
              setRequestId(input.readInt64());
              break;
            }
            case 56: {
              setIsAsync(input.readBool());
              break;
            }
            case 64: {
              setFlag(input.readInt32());
              break;
            }
            case 74: {
              KeyValuePairProtocol.KeyValuePair.Builder subBuilder = KeyValuePairProtocol.KeyValuePair.newBuilder();
              input.readMessage(subBuilder, extensionRegistry);
              addKeyValuePair(subBuilder.buildPartial());
              break;
            }
            case 80: {
              setClientLastViewId(input.readInt64());
              break;
            }
            case 90: {
              setVersion(input.readString());
              break;
            }
            case 96: {
              setCommandVersion(input.readInt32());
              break;
            }
            case 106: {
              setIntendedRecipient(input.readString());
              break;
            }
            case 112: {
              setDeliveryOption(input.readInt32());
              break;
            }
          }
        }
      }
      
      
      // optional string messageId = 1;
      public boolean hasMessageId() {
        return result.hasMessageId();
      }
      public String getMessageId() {
        return result.getMessageId();
      }
      public Builder setMessageId(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 int64 expiration = 2;
      public boolean hasExpiration() {
        return result.hasExpiration();
      }
      public long getExpiration() {
        return result.getExpiration();
      }
      public Builder setExpiration(long value) {
        result.hasExpiration = true;
        result.expiration_ = value;
        return this;
      }
      public Builder clearExpiration() {
        result.hasExpiration = false;
        result.expiration_ = 0L;
        return this;
      }
      
      // optional string topicName = 3;
      public boolean hasTopicName() {
        return result.hasTopicName();
      }
      public String getTopicName() {
        return result.getTopicName();
      }
      public Builder setTopicName(String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  result.hasTopicName = true;
        result.topicName_ = value;
        return this;
      }
      public Builder clearTopicName() {
        result.hasTopicName = false;
        result.topicName_ = getDefaultInstance().getTopicName();
        return this;
      }
      
      // optional int64 creationTime = 4;
      public boolean hasCreationTime() {
        return result.hasCreationTime();
      }
      public long getCreationTime() {
        return result.getCreationTime();
      }
      public Builder setCreationTime(long value) {
        result.hasCreationTime = true;
        result.creationTime_ = value;
        return this;
      }
      public Builder clearCreationTime() {
        result.hasCreationTime = false;
        result.creationTime_ = 0L;
        return this;
      }
      
      // repeated bytes data = 5;
      public java.util.List getDataList() {
        return java.util.Collections.unmodifiableList(result.data_);
      }
      public int getDataCount() {
        return result.getDataCount();
      }
      public com.google.protobuf.ByteString getData(int index) {
        return result.getData(index);
      }
      public Builder setData(int index, com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  result.data_.set(index, value);
        return this;
      }
      public Builder addData(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  if (result.data_.isEmpty()) {
          result.data_ = new java.util.ArrayList();
        }
        result.data_.add(value);
        return this;
      }
      public Builder addAllData(
          Iterable values) {
        if (result.data_.isEmpty()) {
          result.data_ = new java.util.ArrayList();
        }
        super.addAll(values, result.data_);
        return this;
      }
      public Builder clearData() {
        result.data_ = java.util.Collections.emptyList();
        return this;
      }
      
      // optional int64 requestId = 6;
      public boolean hasRequestId() {
        return result.hasRequestId();
      }
      public long getRequestId() {
        return result.getRequestId();
      }
      public Builder setRequestId(long value) {
        result.hasRequestId = true;
        result.requestId_ = value;
        return this;
      }
      public Builder clearRequestId() {
        result.hasRequestId = false;
        result.requestId_ = 0L;
        return this;
      }
      
      // optional bool isAsync = 7;
      public boolean hasIsAsync() {
        return result.hasIsAsync();
      }
      public boolean getIsAsync() {
        return result.getIsAsync();
      }
      public Builder setIsAsync(boolean value) {
        result.hasIsAsync = true;
        result.isAsync_ = value;
        return this;
      }
      public Builder clearIsAsync() {
        result.hasIsAsync = false;
        result.isAsync_ = false;
        return this;
      }
      
      // optional int32 flag = 8;
      public boolean hasFlag() {
        return result.hasFlag();
      }
      public int getFlag() {
        return result.getFlag();
      }
      public Builder setFlag(int value) {
        result.hasFlag = true;
        result.flag_ = value;
        return this;
      }
      public Builder clearFlag() {
        result.hasFlag = false;
        result.flag_ = 0;
        return this;
      }
      
      // repeated .com.alachisoft.ncache.common.protobuf.KeyValuePair keyValuePair = 9;
      public java.util.List getKeyValuePairList() {
        return java.util.Collections.unmodifiableList(result.keyValuePair_);
      }
      public int getKeyValuePairCount() {
        return result.getKeyValuePairCount();
      }
      public KeyValuePairProtocol.KeyValuePair getKeyValuePair(int index) {
        return result.getKeyValuePair(index);
      }
      public Builder setKeyValuePair(int index, KeyValuePairProtocol.KeyValuePair value) {
        if (value == null) {
          throw new NullPointerException();
        }
        result.keyValuePair_.set(index, value);
        return this;
      }
      public Builder setKeyValuePair(int index, KeyValuePairProtocol.KeyValuePair.Builder builderForValue) {
        result.keyValuePair_.set(index, builderForValue.build());
        return this;
      }
      public Builder addKeyValuePair(KeyValuePairProtocol.KeyValuePair value) {
        if (value == null) {
          throw new NullPointerException();
        }
        if (result.keyValuePair_.isEmpty()) {
          result.keyValuePair_ = new java.util.ArrayList();
        }
        result.keyValuePair_.add(value);
        return this;
      }
      public Builder addKeyValuePair(KeyValuePairProtocol.KeyValuePair.Builder builderForValue) {
        if (result.keyValuePair_.isEmpty()) {
          result.keyValuePair_ = new java.util.ArrayList();
        }
        result.keyValuePair_.add(builderForValue.build());
        return this;
      }
      public Builder addAllKeyValuePair(
          Iterable values) {
        if (result.keyValuePair_.isEmpty()) {
          result.keyValuePair_ = new java.util.ArrayList();
        }
        super.addAll(values, result.keyValuePair_);
        return this;
      }
      public Builder clearKeyValuePair() {
        result.keyValuePair_ = java.util.Collections.emptyList();
        return this;
      }
      
      // optional int64 clientLastViewId = 10 [default = -1];
      public boolean hasClientLastViewId() {
        return result.hasClientLastViewId();
      }
      public long getClientLastViewId() {
        return result.getClientLastViewId();
      }
      public Builder setClientLastViewId(long value) {
        result.hasClientLastViewId = true;
        result.clientLastViewId_ = value;
        return this;
      }
      public Builder clearClientLastViewId() {
        result.hasClientLastViewId = false;
        result.clientLastViewId_ = -1L;
        return this;
      }
      
      // optional string version = 11;
      public boolean hasVersion() {
        return result.hasVersion();
      }
      public String getVersion() {
        return result.getVersion();
      }
      public Builder setVersion(String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  result.hasVersion = true;
        result.version_ = value;
        return this;
      }
      public Builder clearVersion() {
        result.hasVersion = false;
        result.version_ = getDefaultInstance().getVersion();
        return this;
      }
      
      // optional int32 commandVersion = 12 [default = 0];
      public boolean hasCommandVersion() {
        return result.hasCommandVersion();
      }
      public int getCommandVersion() {
        return result.getCommandVersion();
      }
      public Builder setCommandVersion(int value) {
        result.hasCommandVersion = true;
        result.commandVersion_ = value;
        return this;
      }
      public Builder clearCommandVersion() {
        result.hasCommandVersion = false;
        result.commandVersion_ = 0;
        return this;
      }
      
      // optional string intendedRecipient = 13 [default = ""];
      public boolean hasIntendedRecipient() {
        return result.hasIntendedRecipient();
      }
      public String getIntendedRecipient() {
        return result.getIntendedRecipient();
      }
      public Builder setIntendedRecipient(String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  result.hasIntendedRecipient = true;
        result.intendedRecipient_ = value;
        return this;
      }
      public Builder clearIntendedRecipient() {
        result.hasIntendedRecipient = false;
        result.intendedRecipient_ = getDefaultInstance().getIntendedRecipient();
        return this;
      }
      
      // optional int32 deliveryOption = 14;
      public boolean hasDeliveryOption() {
        return result.hasDeliveryOption();
      }
      public int getDeliveryOption() {
        return result.getDeliveryOption();
      }
      public Builder setDeliveryOption(int value) {
        result.hasDeliveryOption = true;
        result.deliveryOption_ = value;
        return this;
      }
      public Builder clearDeliveryOption() {
        result.hasDeliveryOption = false;
        result.deliveryOption_ = 0;
        return this;
      }
      
      // @@protoc_insertion_point(builder_scope:com.alachisoft.ncache.common.protobuf.MessagePublishCommand)
    }
    
    static {
      defaultInstance = new MessagePublishCommand(true);
      MessagePublishCommandProtocol.internalForceInit();
      defaultInstance.initFields();
    }
    
    // @@protoc_insertion_point(class_scope:com.alachisoft.ncache.common.protobuf.MessagePublishCommand)
  }
  
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_com_alachisoft_ncache_common_protobuf_MessagePublishCommand_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_com_alachisoft_ncache_common_protobuf_MessagePublishCommand_fieldAccessorTable;
  
  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    String[] descriptorData = {
      "\n\033MessagePublishCommand.proto\022%com.alach" +
      "isoft.ncache.common.protobuf\032\022KeyValuePa" +
      "ir.proto\"\361\002\n\025MessagePublishCommand\022\021\n\tme" +
      "ssageId\030\001 \001(\t\022\022\n\nexpiration\030\002 \001(\003\022\021\n\ttop" +
      "icName\030\003 \001(\t\022\024\n\014creationTime\030\004 \001(\003\022\014\n\004da" +
      "ta\030\005 \003(\014\022\021\n\trequestId\030\006 \001(\003\022\017\n\007isAsync\030\007" +
      " \001(\010\022\014\n\004flag\030\010 \001(\005\022I\n\014keyValuePair\030\t \003(\013" +
      "23.com.alachisoft.ncache.common.protobuf" +
      ".KeyValuePair\022\034\n\020clientLastViewId\030\n \001(\003:" +
      "\002-1\022\017\n\007version\030\013 \001(\t\022\031\n\016commandVersion\030\014",
      " \001(\005:\0010\022\033\n\021intendedRecipient\030\r \001(\t:\000\022\026\n\016" +
      "deliveryOption\030\016 \001(\005B\037B\035MessagePublishCo" +
      "mmandProtocol"
    };
    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_MessagePublishCommand_descriptor =
            getDescriptor().getMessageTypes().get(0);
          internal_static_com_alachisoft_ncache_common_protobuf_MessagePublishCommand_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_com_alachisoft_ncache_common_protobuf_MessagePublishCommand_descriptor,
              new String[] { "MessageId", "Expiration", "TopicName", "CreationTime", "Data", "RequestId", "IsAsync", "Flag", "KeyValuePair", "ClientLastViewId", "Version", "CommandVersion", "IntendedRecipient", "DeliveryOption", },
              MessagePublishCommand.class,
              MessagePublishCommand.Builder.class);
          return null;
        }
      };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          KeyValuePairProtocol.getDescriptor(),
        }, assigner);
  }
  
  public static void internalForceInit() {}
  
  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy