All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ManagementResponse.proto
package com.alachisoft.ncache.common.protobuf;
public final class ManagementResponseProtocol {
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_alachisoft_ncache_common_protobuf_ManagementResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_alachisoft_ncache_common_protobuf_ManagementResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\030ManagementResponse.proto\022%com.alachiso" +
"ft.ncache.common.protobuf\032\017Exception.pro" +
"to\"\244\001\n\022ManagementResponse\022\021\n\trequestId\030\001" +
" \001(\003\022C\n\texception\030\003 \001(\01320.com.alachisoft" +
".ncache.common.protobuf.Exception\022\017\n\007ver" +
"sion\030\004 \001(\005\022\021\n\treturnVal\030\005 \001(\014\022\022\n\nmethodN" +
"ame\030\006 \001(\tB\034B\032ManagementResponseProtocol"
};
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_ManagementResponse_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_alachisoft_ncache_common_protobuf_ManagementResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_alachisoft_ncache_common_protobuf_ManagementResponse_descriptor,
new java.lang.String[]{"RequestId", "Exception", "Version", "ReturnVal", "MethodName",},
com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol.ManagementResponse.class,
com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol.ManagementResponse.Builder.class);
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[]{
com.alachisoft.ncache.common.protobuf.ExceptionProtocol.getDescriptor(),
}, assigner);
}
private ManagementResponseProtocol() {
}
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 ManagementResponse extends
com.google.protobuf.GeneratedMessage implements Alachisoft.NCache.Common.Communication.IResponse {
// optional int64 requestId = 1;
public static final int REQUESTID_FIELD_NUMBER = 1;
// optional .com.alachisoft.ncache.common.protobuf.Exception exception = 3;
public static final int EXCEPTION_FIELD_NUMBER = 3;
// optional int32 version = 4;
public static final int VERSION_FIELD_NUMBER = 4;
// optional bytes returnVal = 5;
public static final int RETURNVAL_FIELD_NUMBER = 5;
//
// optional string methodName = 6;
public static final int METHODNAME_FIELD_NUMBER = 6;
private static final ManagementResponse defaultInstance;
static {
defaultInstance = new ManagementResponse(true);
com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol.internalForceInit();
defaultInstance.initFields();
}
//
private Object _returnValue;
private boolean hasRequestId;
private long requestId_ = 0L;
private boolean hasException;
private com.alachisoft.ncache.common.protobuf.ExceptionProtocol.Exception exception_;
private boolean hasVersion;
private int version_ = 0;
private boolean hasReturnVal;
private com.google.protobuf.ByteString returnVal_ = com.google.protobuf.ByteString.EMPTY;
private boolean hasMethodName;
private java.lang.String methodName_ = "";
private int memoizedSerializedSize = -1;
// Use ManagementResponse.newBuilder() to construct.
private ManagementResponse() {
initFields();
}
private ManagementResponse(boolean noInit) {
}
public static ManagementResponse getDefaultInstance() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol.internal_static_com_alachisoft_ncache_common_protobuf_ManagementResponse_descriptor;
}
public static com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol.ManagementResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol.ManagementResponse 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.ManagementResponseProtocol.ManagementResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol.ManagementResponse 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.ManagementResponseProtocol.ManagementResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol.ManagementResponse 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.ManagementResponseProtocol.ManagementResponse 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.ManagementResponseProtocol.ManagementResponse 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.ManagementResponseProtocol.ManagementResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol.ManagementResponse 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.ManagementResponseProtocol.ManagementResponse prototype) {
return newBuilder().mergeFrom(prototype);
}
public Object get_returnValue() {
return this._returnValue;
}
public void set_returnValue(Object _returnValue) {
this._returnValue = _returnValue;
}
public ManagementResponse getDefaultInstanceForType() {
return defaultInstance;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol.internal_static_com_alachisoft_ncache_common_protobuf_ManagementResponse_fieldAccessorTable;
}
public boolean hasRequestId() {
return hasRequestId;
}
public long getRequestId() {
return requestId_;
}
public void setRequestId(long value) {
this.requestId_ = value;
}
public boolean hasException() {
return hasException;
}
public com.alachisoft.ncache.common.protobuf.ExceptionProtocol.Exception getException() {
return exception_;
}
public boolean hasVersion() {
return hasVersion;
}
public int getVersion() {
return version_;
}
public boolean hasReturnVal() {
return hasReturnVal;
}
public com.google.protobuf.ByteString getReturnVal() {
return returnVal_;
}
public boolean hasMethodName() {
return hasMethodName;
}
public java.lang.String getMethodName() {
return methodName_;
}
private void initFields() {
exception_ = com.alachisoft.ncache.common.protobuf.ExceptionProtocol.Exception.getDefaultInstance();
}
public final boolean isInitialized() {
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (hasRequestId()) {
output.writeInt64(1, getRequestId());
}
if (hasException()) {
output.writeMessage(3, getException());
}
if (hasVersion()) {
output.writeInt32(4, getVersion());
}
if (hasReturnVal()) {
output.writeBytes(5, getReturnVal());
}
if (hasMethodName()) {
output.writeString(6, getMethodName());
}
getUnknownFields().writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasRequestId()) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, getRequestId());
}
if (hasException()) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getException());
}
if (hasVersion()) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, getVersion());
}
if (hasReturnVal()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, getReturnVal());
}
if (hasMethodName()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(6, getMethodName());
}
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.ManagementResponseProtocol.ManagementResponse result;
// Construct using com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol.ManagementResponse.newBuilder()
private Builder() {
}
private static Builder create() {
Builder builder = new Builder();
builder.result = new com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol.ManagementResponse();
return builder;
}
public Object get_returnValue() {
return result._returnValue;
}
public void set_returnValue(Object _returnValue) {
result._returnValue = _returnValue;
}
protected com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol.ManagementResponse internalGetResult() {
return result;
}
public Builder clear() {
if (result == null) {
throw new IllegalStateException(
"Cannot call clear() after build().");
}
result = new com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol.ManagementResponse();
return this;
}
public Builder clone() {
return create().mergeFrom(result);
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol.ManagementResponse.getDescriptor();
}
public com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol.ManagementResponse getDefaultInstanceForType() {
return com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol.ManagementResponse.getDefaultInstance();
}
public boolean isInitialized() {
return result.isInitialized();
}
public com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol.ManagementResponse build() {
if (result != null && !isInitialized()) {
throw newUninitializedMessageException(result);
}
return buildPartial();
}
private com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol.ManagementResponse buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol.ManagementResponse buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder.");
}
com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol.ManagementResponse returnMe = result;
result = null;
return returnMe;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol.ManagementResponse) {
return mergeFrom((com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol.ManagementResponse) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol.ManagementResponse other) {
if (other == com.alachisoft.ncache.common.protobuf.ManagementResponseProtocol.ManagementResponse.getDefaultInstance())
return this;
if (other.hasRequestId()) {
setRequestId(other.getRequestId());
}
if (other.hasException()) {
mergeException(other.getException());
}
if (other.hasVersion()) {
setVersion(other.getVersion());
}
if (other.hasReturnVal()) {
setReturnVal(other.getReturnVal());
}
if (other.hasMethodName()) {
setMethodName(other.getMethodName());
}
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 8: {
setRequestId(input.readInt64());
break;
}
case 26: {
com.alachisoft.ncache.common.protobuf.ExceptionProtocol.Exception.Builder subBuilder = com.alachisoft.ncache.common.protobuf.ExceptionProtocol.Exception.newBuilder();
if (hasException()) {
subBuilder.mergeFrom(getException());
}
input.readMessage(subBuilder, extensionRegistry);
setException(subBuilder.buildPartial());
break;
}
case 32: {
setVersion(input.readInt32());
break;
}
case 42: {
setReturnVal(input.readBytes());
break;
}
case 50: {
setMethodName(input.readString());
break;
}
}
}
}
// optional int64 requestId = 1;
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 .com.alachisoft.ncache.common.protobuf.Exception exception = 3;
public boolean hasException() {
return result.hasException();
}
public com.alachisoft.ncache.common.protobuf.ExceptionProtocol.Exception getException() {
return result.getException();
}
public Builder setException(com.alachisoft.ncache.common.protobuf.ExceptionProtocol.Exception value) {
if (value == null) {
throw new NullPointerException();
}
result.hasException = true;
result.exception_ = value;
return this;
}
public Builder setException(com.alachisoft.ncache.common.protobuf.ExceptionProtocol.Exception.Builder builderForValue) {
result.hasException = true;
result.exception_ = builderForValue.build();
return this;
}
public Builder mergeException(com.alachisoft.ncache.common.protobuf.ExceptionProtocol.Exception value) {
if (result.hasException() &&
result.exception_ != com.alachisoft.ncache.common.protobuf.ExceptionProtocol.Exception.getDefaultInstance()) {
result.exception_ =
com.alachisoft.ncache.common.protobuf.ExceptionProtocol.Exception.newBuilder(result.exception_).mergeFrom(value).buildPartial();
} else {
result.exception_ = value;
}
result.hasException = true;
return this;
}
public Builder clearException() {
result.hasException = false;
result.exception_ = com.alachisoft.ncache.common.protobuf.ExceptionProtocol.Exception.getDefaultInstance();
return this;
}
// optional int32 version = 4;
public boolean hasVersion() {
return result.hasVersion();
}
public int getVersion() {
return result.getVersion();
}
public Builder setVersion(int value) {
result.hasVersion = true;
result.version_ = value;
return this;
}
public Builder clearVersion() {
result.hasVersion = false;
result.version_ = 0;
return this;
}
// optional bytes returnVal = 5;
public boolean hasReturnVal() {
return result.hasReturnVal();
}
public com.google.protobuf.ByteString getReturnVal() {
return result.getReturnVal();
}
public Builder setReturnVal(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
result.hasReturnVal = true;
result.returnVal_ = value;
return this;
}
public Builder clearReturnVal() {
result.hasReturnVal = false;
result.returnVal_ = getDefaultInstance().getReturnVal();
return this;
}
// optional string methodName = 6;
public boolean hasMethodName() {
return result.hasMethodName();
}
public java.lang.String getMethodName() {
return result.getMethodName();
}
public Builder setMethodName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasMethodName = true;
result.methodName_ = value;
return this;
}
public Builder clearMethodName() {
result.hasMethodName = false;
result.methodName_ = getDefaultInstance().getMethodName();
return this;
}
// @@protoc_insertion_point(builder_scope:com.alachisoft.ncache.common.protobuf.ManagementResponse)
}
// @@protoc_insertion_point(class_scope:com.alachisoft.ncache.common.protobuf.ManagementResponse)
}
// @@protoc_insertion_point(outer_class_scope)
}