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

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

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

package com.alachisoft.ncache.common.protobuf;

public final class ItemRemovedEventResponseProtocol {
  private ItemRemovedEventResponseProtocol() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public static final class ItemRemovedEventResponse extends
      com.google.protobuf.GeneratedMessage {
    // Use ItemRemovedEventResponse.newBuilder() to construct.
    private ItemRemovedEventResponse() {
      initFields();
    }
    private ItemRemovedEventResponse(boolean noInit) {}
    
    private static final ItemRemovedEventResponse defaultInstance;
    public static ItemRemovedEventResponse getDefaultInstance() {
      return defaultInstance;
    }
    
    public ItemRemovedEventResponse getDefaultInstanceForType() {
      return defaultInstance;
    }
    
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.internal_static_com_alachisoft_ncache_common_protobuf_ItemRemovedEventResponse_descriptor;
    }
    
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.internal_static_com_alachisoft_ncache_common_protobuf_ItemRemovedEventResponse_fieldAccessorTable;
    }
    
    // optional string key = 1;
    public static final int KEY_FIELD_NUMBER = 1;
    private boolean hasKey;
    private java.lang.String key_ = "";
    public boolean hasKey() { return hasKey; }
    public java.lang.String getKey() { return key_; }
    
    // optional int32 itemRemoveReason = 2;
    public static final int ITEMREMOVEREASON_FIELD_NUMBER = 2;
    private boolean hasItemRemoveReason;
    private int itemRemoveReason_ = 0;
    public boolean hasItemRemoveReason() { return hasItemRemoveReason; }
    public int getItemRemoveReason() { return itemRemoveReason_; }
    
    // optional int32 flag = 3;
    public static final int FLAG_FIELD_NUMBER = 3;
    private boolean hasFlag;
    private int flag_ = 0;
    public boolean hasFlag() { return hasFlag; }
    public int getFlag() { return flag_; }
    
    // repeated bytes value = 4;
    public static final int VALUE_FIELD_NUMBER = 4;
    private java.util.List value_ =
      java.util.Collections.emptyList();
    public java.util.List getValueList() {
      return value_;
    }
    public int getValueCount() { return value_.size(); }
    public com.google.protobuf.ByteString getValue(int index) {
      return value_.get(index);
    }
    
    // optional .com.alachisoft.ncache.common.protobuf.EventId eventId = 5;
    public static final int EVENTID_FIELD_NUMBER = 5;
    private boolean hasEventId;
    private com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId eventId_;
    public boolean hasEventId() { return hasEventId; }
    public com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId getEventId() { return eventId_; }
    
    private void initFields() {
      eventId_ = com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.getDefaultInstance();
    }
    public final boolean isInitialized() {
      return true;
    }
    
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (hasKey()) {
        output.writeString(1, getKey());
      }
      if (hasItemRemoveReason()) {
        output.writeInt32(2, getItemRemoveReason());
      }
      if (hasFlag()) {
        output.writeInt32(3, getFlag());
      }
      for (com.google.protobuf.ByteString element : getValueList()) {
        output.writeBytes(4, element);
      }
      if (hasEventId()) {
        output.writeMessage(5, getEventId());
      }
      getUnknownFields().writeTo(output);
    }
    
    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;
    
      size = 0;
      if (hasKey()) {
        size += com.google.protobuf.CodedOutputStream
          .computeStringSize(1, getKey());
      }
      if (hasItemRemoveReason()) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, getItemRemoveReason());
      }
      if (hasFlag()) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(3, getFlag());
      }
      {
        int dataSize = 0;
        for (com.google.protobuf.ByteString element : getValueList()) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeBytesSizeNoTag(element);
        }
        size += dataSize;
        size += 1 * getValueList().size();
      }
      if (hasEventId()) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(5, getEventId());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }
    
    public static com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse 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.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse 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.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse 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.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse 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.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse 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.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse 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(com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }
    
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder {
      private com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse result;
      
      // Construct using com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse.newBuilder()
      private Builder() {}
      
      private static Builder create() {
        Builder builder = new Builder();
        builder.result = new com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse();
        return builder;
      }
      
      protected com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse internalGetResult() {
        return result;
      }
      
      public Builder clear() {
        if (result == null) {
          throw new IllegalStateException(
            "Cannot call clear() after build().");
        }
        result = new com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse();
        return this;
      }
      
      public Builder clone() {
        return create().mergeFrom(result);
      }
      
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse.getDescriptor();
      }
      
      public com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse getDefaultInstanceForType() {
        return com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse.getDefaultInstance();
      }
      
      public boolean isInitialized() {
        return result.isInitialized();
      }
      public com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse build() {
        if (result != null && !isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return buildPartial();
      }
      
      private com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse buildParsed()
          throws com.google.protobuf.InvalidProtocolBufferException {
        if (!isInitialized()) {
          throw newUninitializedMessageException(
            result).asInvalidProtocolBufferException();
        }
        return buildPartial();
      }
      
      public com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse buildPartial() {
        if (result == null) {
          throw new IllegalStateException(
            "build() has already been called on this Builder.");
        }
        if (result.value_ != java.util.Collections.EMPTY_LIST) {
          result.value_ =
            java.util.Collections.unmodifiableList(result.value_);
        }
        com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse returnMe = result;
        result = null;
        return returnMe;
      }
      
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse) {
          return mergeFrom((com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      
      public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse other) {
        if (other == com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse.getDefaultInstance()) return this;
        if (other.hasKey()) {
          setKey(other.getKey());
        }
        if (other.hasItemRemoveReason()) {
          setItemRemoveReason(other.getItemRemoveReason());
        }
        if (other.hasFlag()) {
          setFlag(other.getFlag());
        }
        if (!other.value_.isEmpty()) {
          if (result.value_.isEmpty()) {
            result.value_ = new java.util.ArrayList();
          }
          result.value_.addAll(other.value_);
        }
        if (other.hasEventId()) {
          mergeEventId(other.getEventId());
        }
        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: {
              setKey(input.readString());
              break;
            }
            case 16: {
              setItemRemoveReason(input.readInt32());
              break;
            }
            case 24: {
              setFlag(input.readInt32());
              break;
            }
            case 34: {
              addValue(input.readBytes());
              break;
            }
            case 42: {
              com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.Builder subBuilder = com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.newBuilder();
              if (hasEventId()) {
                subBuilder.mergeFrom(getEventId());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setEventId(subBuilder.buildPartial());
              break;
            }
          }
        }
      }
      
      
      // optional string key = 1;
      public boolean hasKey() {
        return result.hasKey();
      }
      public java.lang.String getKey() {
        return result.getKey();
      }
      public Builder setKey(java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  result.hasKey = true;
        result.key_ = value;
        return this;
      }
      public Builder clearKey() {
        result.hasKey = false;
        result.key_ = getDefaultInstance().getKey();
        return this;
      }
      
      // optional int32 itemRemoveReason = 2;
      public boolean hasItemRemoveReason() {
        return result.hasItemRemoveReason();
      }
      public int getItemRemoveReason() {
        return result.getItemRemoveReason();
      }
      public Builder setItemRemoveReason(int value) {
        result.hasItemRemoveReason = true;
        result.itemRemoveReason_ = value;
        return this;
      }
      public Builder clearItemRemoveReason() {
        result.hasItemRemoveReason = false;
        result.itemRemoveReason_ = 0;
        return this;
      }
      
      // optional int32 flag = 3;
      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 bytes value = 4;
      public java.util.List getValueList() {
        return java.util.Collections.unmodifiableList(result.value_);
      }
      public int getValueCount() {
        return result.getValueCount();
      }
      public com.google.protobuf.ByteString getValue(int index) {
        return result.getValue(index);
      }
      public Builder setValue(int index, com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  result.value_.set(index, value);
        return this;
      }
      public Builder addValue(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  if (result.value_.isEmpty()) {
          result.value_ = new java.util.ArrayList();
        }
        result.value_.add(value);
        return this;
      }
      public Builder addAllValue(
          java.lang.Iterable values) {
        if (result.value_.isEmpty()) {
          result.value_ = new java.util.ArrayList();
        }
        super.addAll(values, result.value_);
        return this;
      }
      public Builder clearValue() {
        result.value_ = java.util.Collections.emptyList();
        return this;
      }
      
      // optional .com.alachisoft.ncache.common.protobuf.EventId eventId = 5;
      public boolean hasEventId() {
        return result.hasEventId();
      }
      public com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId getEventId() {
        return result.getEventId();
      }
      public Builder setEventId(com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId value) {
        if (value == null) {
          throw new NullPointerException();
        }
        result.hasEventId = true;
        result.eventId_ = value;
        return this;
      }
      public Builder setEventId(com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.Builder builderForValue) {
        result.hasEventId = true;
        result.eventId_ = builderForValue.build();
        return this;
      }
      public Builder mergeEventId(com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId value) {
        if (result.hasEventId() &&
            result.eventId_ != com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.getDefaultInstance()) {
          result.eventId_ =
            com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.newBuilder(result.eventId_).mergeFrom(value).buildPartial();
        } else {
          result.eventId_ = value;
        }
        result.hasEventId = true;
        return this;
      }
      public Builder clearEventId() {
        result.hasEventId = false;
        result.eventId_ = com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.getDefaultInstance();
        return this;
      }
      
      // @@protoc_insertion_point(builder_scope:com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponse)
    }
    
    static {
      defaultInstance = new ItemRemovedEventResponse(true);
      com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.internalForceInit();
      defaultInstance.initFields();
    }
    
    // @@protoc_insertion_point(class_scope:com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponse)
  }
  
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_com_alachisoft_ncache_common_protobuf_ItemRemovedEventResponse_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_com_alachisoft_ncache_common_protobuf_ItemRemovedEventResponse_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\036ItemRemovedEventResponse.proto\022%com.al" +
      "achisoft.ncache.common.protobuf\032\rEventId" +
      ".proto\"\237\001\n\030ItemRemovedEventResponse\022\013\n\003k" +
      "ey\030\001 \001(\t\022\030\n\020itemRemoveReason\030\002 \001(\005\022\014\n\004fl" +
      "ag\030\003 \001(\005\022\r\n\005value\030\004 \003(\014\022?\n\007eventId\030\005 \001(\013" +
      "2..com.alachisoft.ncache.common.protobuf" +
      ".EventIdB\"B ItemRemovedEventResponseProt" +
      "ocol"
    };
    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_ItemRemovedEventResponse_descriptor =
            getDescriptor().getMessageTypes().get(0);
          internal_static_com_alachisoft_ncache_common_protobuf_ItemRemovedEventResponse_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_com_alachisoft_ncache_common_protobuf_ItemRemovedEventResponse_descriptor,
              new java.lang.String[] { "Key", "ItemRemoveReason", "Flag", "Value", "EventId", },
              com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse.class,
              com.alachisoft.ncache.common.protobuf.ItemRemovedEventResponseProtocol.ItemRemovedEventResponse.Builder.class);
          return null;
        }
      };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          com.alachisoft.ncache.common.protobuf.EventIdProtocol.getDescriptor(),
        }, assigner);
  }
  
  public static void internalForceInit() {}
  
  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy