com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nc-common Show documentation
Show all versions of nc-common Show documentation
Internal package of Alachisoft.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: WriteToStreamCommand.proto
package com.alachisoft.ncache.common.protobuf;
public final class WriteToStreamCommandProtocol {
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_alachisoft_ncache_common_protobuf_WriteToStreamCommand_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_alachisoft_ncache_common_protobuf_WriteToStreamCommand_fieldAccessorTable;
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\032WriteToStreamCommand.proto\022%com.alachi" +
"soft.ncache.common.protobuf\"\220\001\n\024WriteToS" +
"treamCommand\022\013\n\003key\030\001 \001(\t\022\022\n\nlockHandle\030" +
"\002 \001(\t\022\021\n\trequestId\030\003 \001(\003\022\021\n\tsrcOffSet\030\004 " +
"\001(\005\022\021\n\tdstOffSet\030\005 \001(\005\022\016\n\006length\030\006 \001(\005\022\016" +
"\n\006buffer\030\007 \003(\014B\036B\034WriteToStreamCommandPr" +
"otocol"
};
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_WriteToStreamCommand_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_alachisoft_ncache_common_protobuf_WriteToStreamCommand_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_alachisoft_ncache_common_protobuf_WriteToStreamCommand_descriptor,
new java.lang.String[]{"Key", "LockHandle", "RequestId", "SrcOffSet", "DstOffSet", "Length", "Buffer",},
com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol.WriteToStreamCommand.class,
com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol.WriteToStreamCommand.Builder.class);
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[]{
}, assigner);
}
private WriteToStreamCommandProtocol() {
}
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 WriteToStreamCommand extends
com.google.protobuf.GeneratedMessage {
// optional string key = 1;
public static final int KEY_FIELD_NUMBER = 1;
// optional string lockHandle = 2;
public static final int LOCKHANDLE_FIELD_NUMBER = 2;
// optional int64 requestId = 3;
public static final int REQUESTID_FIELD_NUMBER = 3;
// optional int32 srcOffSet = 4;
public static final int SRCOFFSET_FIELD_NUMBER = 4;
// optional int32 dstOffSet = 5;
public static final int DSTOFFSET_FIELD_NUMBER = 5;
// optional int32 length = 6;
public static final int LENGTH_FIELD_NUMBER = 6;
// repeated bytes buffer = 7;
public static final int BUFFER_FIELD_NUMBER = 7;
private static final WriteToStreamCommand defaultInstance;
static {
defaultInstance = new WriteToStreamCommand(true);
com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol.internalForceInit();
defaultInstance.initFields();
}
private boolean hasKey;
private java.lang.String key_ = "";
private boolean hasLockHandle;
private java.lang.String lockHandle_ = "";
private boolean hasRequestId;
private long requestId_ = 0L;
private boolean hasSrcOffSet;
private int srcOffSet_ = 0;
private boolean hasDstOffSet;
private int dstOffSet_ = 0;
private boolean hasLength;
private int length_ = 0;
private java.util.List buffer_ =
java.util.Collections.emptyList();
private int memoizedSerializedSize = -1;
// Use WriteToStreamCommand.newBuilder() to construct.
private WriteToStreamCommand() {
initFields();
}
private WriteToStreamCommand(boolean noInit) {
}
public static WriteToStreamCommand getDefaultInstance() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol.internal_static_com_alachisoft_ncache_common_protobuf_WriteToStreamCommand_descriptor;
}
public static com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol.WriteToStreamCommand parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol.WriteToStreamCommand 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.WriteToStreamCommandProtocol.WriteToStreamCommand parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol.WriteToStreamCommand 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.WriteToStreamCommandProtocol.WriteToStreamCommand parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol.WriteToStreamCommand 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.WriteToStreamCommandProtocol.WriteToStreamCommand 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.WriteToStreamCommandProtocol.WriteToStreamCommand 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.WriteToStreamCommandProtocol.WriteToStreamCommand parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol.WriteToStreamCommand 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.WriteToStreamCommandProtocol.WriteToStreamCommand prototype) {
return newBuilder().mergeFrom(prototype);
}
public WriteToStreamCommand getDefaultInstanceForType() {
return defaultInstance;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol.internal_static_com_alachisoft_ncache_common_protobuf_WriteToStreamCommand_fieldAccessorTable;
}
public boolean hasKey() {
return hasKey;
}
public java.lang.String getKey() {
return key_;
}
public boolean hasLockHandle() {
return hasLockHandle;
}
public java.lang.String getLockHandle() {
return lockHandle_;
}
public boolean hasRequestId() {
return hasRequestId;
}
public long getRequestId() {
return requestId_;
}
public boolean hasSrcOffSet() {
return hasSrcOffSet;
}
public int getSrcOffSet() {
return srcOffSet_;
}
public boolean hasDstOffSet() {
return hasDstOffSet;
}
public int getDstOffSet() {
return dstOffSet_;
}
public boolean hasLength() {
return hasLength;
}
public int getLength() {
return length_;
}
public java.util.List getBufferList() {
return buffer_;
}
public int getBufferCount() {
return buffer_.size();
}
public com.google.protobuf.ByteString getBuffer(int index) {
return buffer_.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 (hasKey()) {
output.writeString(1, getKey());
}
if (hasLockHandle()) {
output.writeString(2, getLockHandle());
}
if (hasRequestId()) {
output.writeInt64(3, getRequestId());
}
if (hasSrcOffSet()) {
output.writeInt32(4, getSrcOffSet());
}
if (hasDstOffSet()) {
output.writeInt32(5, getDstOffSet());
}
if (hasLength()) {
output.writeInt32(6, getLength());
}
for (com.google.protobuf.ByteString element : getBufferList()) {
output.writeBytes(7, element);
}
getUnknownFields().writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasKey()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(1, getKey());
}
if (hasLockHandle()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(2, getLockHandle());
}
if (hasRequestId()) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, getRequestId());
}
if (hasSrcOffSet()) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, getSrcOffSet());
}
if (hasDstOffSet()) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, getDstOffSet());
}
if (hasLength()) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, getLength());
}
{
int dataSize = 0;
for (com.google.protobuf.ByteString element : getBufferList()) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(element);
}
size += dataSize;
size += 1 * getBufferList().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.WriteToStreamCommandProtocol.WriteToStreamCommand result;
// Construct using com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol.WriteToStreamCommand.newBuilder()
private Builder() {
}
private static Builder create() {
Builder builder = new Builder();
builder.result = new com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol.WriteToStreamCommand();
return builder;
}
protected com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol.WriteToStreamCommand internalGetResult() {
return result;
}
public Builder clear() {
if (result == null) {
throw new IllegalStateException(
"Cannot call clear() after build().");
}
result = new com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol.WriteToStreamCommand();
return this;
}
public Builder clone() {
return create().mergeFrom(result);
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol.WriteToStreamCommand.getDescriptor();
}
public com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol.WriteToStreamCommand getDefaultInstanceForType() {
return com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol.WriteToStreamCommand.getDefaultInstance();
}
public boolean isInitialized() {
return result.isInitialized();
}
public com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol.WriteToStreamCommand build() {
if (result != null && !isInitialized()) {
throw newUninitializedMessageException(result);
}
return buildPartial();
}
private com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol.WriteToStreamCommand buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol.WriteToStreamCommand buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder.");
}
if (result.buffer_ != java.util.Collections.EMPTY_LIST) {
result.buffer_ =
java.util.Collections.unmodifiableList(result.buffer_);
}
com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol.WriteToStreamCommand returnMe = result;
result = null;
return returnMe;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol.WriteToStreamCommand) {
return mergeFrom((com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol.WriteToStreamCommand) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol.WriteToStreamCommand other) {
if (other == com.alachisoft.ncache.common.protobuf.WriteToStreamCommandProtocol.WriteToStreamCommand.getDefaultInstance())
return this;
if (other.hasKey()) {
setKey(other.getKey());
}
if (other.hasLockHandle()) {
setLockHandle(other.getLockHandle());
}
if (other.hasRequestId()) {
setRequestId(other.getRequestId());
}
if (other.hasSrcOffSet()) {
setSrcOffSet(other.getSrcOffSet());
}
if (other.hasDstOffSet()) {
setDstOffSet(other.getDstOffSet());
}
if (other.hasLength()) {
setLength(other.getLength());
}
if (!other.buffer_.isEmpty()) {
if (result.buffer_.isEmpty()) {
result.buffer_ = new java.util.ArrayList();
}
result.buffer_.addAll(other.buffer_);
}
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 18: {
setLockHandle(input.readString());
break;
}
case 24: {
setRequestId(input.readInt64());
break;
}
case 32: {
setSrcOffSet(input.readInt32());
break;
}
case 40: {
setDstOffSet(input.readInt32());
break;
}
case 48: {
setLength(input.readInt32());
break;
}
case 58: {
addBuffer(input.readBytes());
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 string lockHandle = 2;
public boolean hasLockHandle() {
return result.hasLockHandle();
}
public java.lang.String getLockHandle() {
return result.getLockHandle();
}
public Builder setLockHandle(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasLockHandle = true;
result.lockHandle_ = value;
return this;
}
public Builder clearLockHandle() {
result.hasLockHandle = false;
result.lockHandle_ = getDefaultInstance().getLockHandle();
return this;
}
// optional int64 requestId = 3;
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 int32 srcOffSet = 4;
public boolean hasSrcOffSet() {
return result.hasSrcOffSet();
}
public int getSrcOffSet() {
return result.getSrcOffSet();
}
public Builder setSrcOffSet(int value) {
result.hasSrcOffSet = true;
result.srcOffSet_ = value;
return this;
}
public Builder clearSrcOffSet() {
result.hasSrcOffSet = false;
result.srcOffSet_ = 0;
return this;
}
// optional int32 dstOffSet = 5;
public boolean hasDstOffSet() {
return result.hasDstOffSet();
}
public int getDstOffSet() {
return result.getDstOffSet();
}
public Builder setDstOffSet(int value) {
result.hasDstOffSet = true;
result.dstOffSet_ = value;
return this;
}
public Builder clearDstOffSet() {
result.hasDstOffSet = false;
result.dstOffSet_ = 0;
return this;
}
// optional int32 length = 6;
public boolean hasLength() {
return result.hasLength();
}
public int getLength() {
return result.getLength();
}
public Builder setLength(int value) {
result.hasLength = true;
result.length_ = value;
return this;
}
public Builder clearLength() {
result.hasLength = false;
result.length_ = 0;
return this;
}
// repeated bytes buffer = 7;
public java.util.List getBufferList() {
return java.util.Collections.unmodifiableList(result.buffer_);
}
public int getBufferCount() {
return result.getBufferCount();
}
public com.google.protobuf.ByteString getBuffer(int index) {
return result.getBuffer(index);
}
public Builder setBuffer(int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
result.buffer_.set(index, value);
return this;
}
public Builder addBuffer(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
if (result.buffer_.isEmpty()) {
result.buffer_ = new java.util.ArrayList();
}
result.buffer_.add(value);
return this;
}
public Builder addAllBuffer(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
if (result.buffer_.isEmpty()) {
result.buffer_ = new java.util.ArrayList();
}
super.addAll(values, result.buffer_);
return this;
}
public Builder clearBuffer() {
result.buffer_ = java.util.Collections.emptyList();
return this;
}
// @@protoc_insertion_point(builder_scope:com.alachisoft.ncache.common.protobuf.WriteToStreamCommand)
}
// @@protoc_insertion_point(class_scope:com.alachisoft.ncache.common.protobuf.WriteToStreamCommand)
}
// @@protoc_insertion_point(outer_class_scope)
}