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.
org.pipservices4.grpc.commandable.InvokeReply Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: commandable.proto
package org.pipservices4.grpc.commandable;
/**
*
* The response message containing the invocation response
*
*
* Protobuf type {@code commandable.InvokeReply}
*/
public final class InvokeReply extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:commandable.InvokeReply)
InvokeReplyOrBuilder {
// Use InvokeReply.newBuilder() to construct.
private InvokeReply(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InvokeReply() {
resultEmpty_ = false;
resultJson_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private InvokeReply(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
org.pipservices4.grpc.commandable.ErrorDescription.Builder subBuilder = null;
if (error_ != null) {
subBuilder = error_.toBuilder();
}
error_ = input.readMessage(org.pipservices4.grpc.commandable.ErrorDescription.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(error_);
error_ = subBuilder.buildPartial();
}
break;
}
case 16: {
resultEmpty_ = input.readBool();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
resultJson_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.pipservices4.grpc.commandable.CommandableProto.internal_static_commandable_InvokeReply_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.pipservices4.grpc.commandable.CommandableProto.internal_static_commandable_InvokeReply_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.pipservices4.grpc.commandable.InvokeReply.class, org.pipservices4.grpc.commandable.InvokeReply.Builder.class);
}
public static final int ERROR_FIELD_NUMBER = 1;
private org.pipservices4.grpc.commandable.ErrorDescription error_;
/**
* .commandable.ErrorDescription error = 1;
*/
public boolean hasError() {
return error_ != null;
}
/**
* .commandable.ErrorDescription error = 1;
*/
public org.pipservices4.grpc.commandable.ErrorDescription getError() {
return error_ == null ? org.pipservices4.grpc.commandable.ErrorDescription.getDefaultInstance() : error_;
}
/**
* .commandable.ErrorDescription error = 1;
*/
public org.pipservices4.grpc.commandable.ErrorDescriptionOrBuilder getErrorOrBuilder() {
return getError();
}
public static final int RESULT_EMPTY_FIELD_NUMBER = 2;
private boolean resultEmpty_;
/**
* bool result_empty = 2;
*/
public boolean getResultEmpty() {
return resultEmpty_;
}
public static final int RESULT_JSON_FIELD_NUMBER = 3;
private volatile java.lang.Object resultJson_;
/**
* string result_json = 3;
*/
public java.lang.String getResultJson() {
java.lang.Object ref = resultJson_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resultJson_ = s;
return s;
}
}
/**
* string result_json = 3;
*/
public com.google.protobuf.ByteString
getResultJsonBytes() {
java.lang.Object ref = resultJson_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resultJson_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (error_ != null) {
output.writeMessage(1, getError());
}
if (resultEmpty_ != false) {
output.writeBool(2, resultEmpty_);
}
if (!getResultJsonBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resultJson_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (error_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getError());
}
if (resultEmpty_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, resultEmpty_);
}
if (!getResultJsonBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resultJson_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.pipservices4.grpc.commandable.InvokeReply)) {
return super.equals(obj);
}
org.pipservices4.grpc.commandable.InvokeReply other = (org.pipservices4.grpc.commandable.InvokeReply) obj;
boolean result = true;
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError()
.equals(other.getError());
}
result = result && (getResultEmpty()
== other.getResultEmpty());
result = result && getResultJson()
.equals(other.getResultJson());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasError()) {
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
}
hash = (37 * hash) + RESULT_EMPTY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getResultEmpty());
hash = (37 * hash) + RESULT_JSON_FIELD_NUMBER;
hash = (53 * hash) + getResultJson().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.pipservices4.grpc.commandable.InvokeReply parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.pipservices4.grpc.commandable.InvokeReply parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.pipservices4.grpc.commandable.InvokeReply parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.pipservices4.grpc.commandable.InvokeReply parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.pipservices4.grpc.commandable.InvokeReply parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.pipservices4.grpc.commandable.InvokeReply parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.pipservices4.grpc.commandable.InvokeReply parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.pipservices4.grpc.commandable.InvokeReply parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.pipservices4.grpc.commandable.InvokeReply parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.pipservices4.grpc.commandable.InvokeReply parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.pipservices4.grpc.commandable.InvokeReply parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.pipservices4.grpc.commandable.InvokeReply parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.pipservices4.grpc.commandable.InvokeReply prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* The response message containing the invocation response
*
*
* Protobuf type {@code commandable.InvokeReply}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:commandable.InvokeReply)
org.pipservices4.grpc.commandable.InvokeReplyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.pipservices4.grpc.commandable.CommandableProto.internal_static_commandable_InvokeReply_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.pipservices4.grpc.commandable.CommandableProto.internal_static_commandable_InvokeReply_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.pipservices4.grpc.commandable.InvokeReply.class, org.pipservices4.grpc.commandable.InvokeReply.Builder.class);
}
// Construct using org.pipservices4.grpc.commandable.InvokeReply.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (errorBuilder_ == null) {
error_ = null;
} else {
error_ = null;
errorBuilder_ = null;
}
resultEmpty_ = false;
resultJson_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.pipservices4.grpc.commandable.CommandableProto.internal_static_commandable_InvokeReply_descriptor;
}
public org.pipservices4.grpc.commandable.InvokeReply getDefaultInstanceForType() {
return org.pipservices4.grpc.commandable.InvokeReply.getDefaultInstance();
}
public org.pipservices4.grpc.commandable.InvokeReply build() {
org.pipservices4.grpc.commandable.InvokeReply result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.pipservices4.grpc.commandable.InvokeReply buildPartial() {
org.pipservices4.grpc.commandable.InvokeReply result = new org.pipservices4.grpc.commandable.InvokeReply(this);
if (errorBuilder_ == null) {
result.error_ = error_;
} else {
result.error_ = errorBuilder_.build();
}
result.resultEmpty_ = resultEmpty_;
result.resultJson_ = resultJson_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.pipservices4.grpc.commandable.InvokeReply) {
return mergeFrom((org.pipservices4.grpc.commandable.InvokeReply)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.pipservices4.grpc.commandable.InvokeReply other) {
if (other == org.pipservices4.grpc.commandable.InvokeReply.getDefaultInstance()) return this;
if (other.hasError()) {
mergeError(other.getError());
}
if (other.getResultEmpty() != false) {
setResultEmpty(other.getResultEmpty());
}
if (!other.getResultJson().isEmpty()) {
resultJson_ = other.resultJson_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.pipservices4.grpc.commandable.InvokeReply parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.pipservices4.grpc.commandable.InvokeReply) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.pipservices4.grpc.commandable.ErrorDescription error_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.pipservices4.grpc.commandable.ErrorDescription, org.pipservices4.grpc.commandable.ErrorDescription.Builder, org.pipservices4.grpc.commandable.ErrorDescriptionOrBuilder> errorBuilder_;
/**
* .commandable.ErrorDescription error = 1;
*/
public boolean hasError() {
return errorBuilder_ != null || error_ != null;
}
/**
* .commandable.ErrorDescription error = 1;
*/
public org.pipservices4.grpc.commandable.ErrorDescription getError() {
if (errorBuilder_ == null) {
return error_ == null ? org.pipservices4.grpc.commandable.ErrorDescription.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
}
/**
* .commandable.ErrorDescription error = 1;
*/
public Builder setError(org.pipservices4.grpc.commandable.ErrorDescription value) {
if (errorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
} else {
errorBuilder_.setMessage(value);
}
return this;
}
/**
* .commandable.ErrorDescription error = 1;
*/
public Builder setError(
org.pipservices4.grpc.commandable.ErrorDescription.Builder builderForValue) {
if (errorBuilder_ == null) {
error_ = builderForValue.build();
onChanged();
} else {
errorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .commandable.ErrorDescription error = 1;
*/
public Builder mergeError(org.pipservices4.grpc.commandable.ErrorDescription value) {
if (errorBuilder_ == null) {
if (error_ != null) {
error_ =
org.pipservices4.grpc.commandable.ErrorDescription.newBuilder(error_).mergeFrom(value).buildPartial();
} else {
error_ = value;
}
onChanged();
} else {
errorBuilder_.mergeFrom(value);
}
return this;
}
/**
* .commandable.ErrorDescription error = 1;
*/
public Builder clearError() {
if (errorBuilder_ == null) {
error_ = null;
onChanged();
} else {
error_ = null;
errorBuilder_ = null;
}
return this;
}
/**
* .commandable.ErrorDescription error = 1;
*/
public org.pipservices4.grpc.commandable.ErrorDescription.Builder getErrorBuilder() {
onChanged();
return getErrorFieldBuilder().getBuilder();
}
/**
* .commandable.ErrorDescription error = 1;
*/
public org.pipservices4.grpc.commandable.ErrorDescriptionOrBuilder getErrorOrBuilder() {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
return error_ == null ?
org.pipservices4.grpc.commandable.ErrorDescription.getDefaultInstance() : error_;
}
}
/**
* .commandable.ErrorDescription error = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.pipservices4.grpc.commandable.ErrorDescription, org.pipservices4.grpc.commandable.ErrorDescription.Builder, org.pipservices4.grpc.commandable.ErrorDescriptionOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.pipservices4.grpc.commandable.ErrorDescription, org.pipservices4.grpc.commandable.ErrorDescription.Builder, org.pipservices4.grpc.commandable.ErrorDescriptionOrBuilder>(
getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
private boolean resultEmpty_ ;
/**
* bool result_empty = 2;
*/
public boolean getResultEmpty() {
return resultEmpty_;
}
/**
* bool result_empty = 2;
*/
public Builder setResultEmpty(boolean value) {
resultEmpty_ = value;
onChanged();
return this;
}
/**
* bool result_empty = 2;
*/
public Builder clearResultEmpty() {
resultEmpty_ = false;
onChanged();
return this;
}
private java.lang.Object resultJson_ = "";
/**
* string result_json = 3;
*/
public java.lang.String getResultJson() {
java.lang.Object ref = resultJson_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resultJson_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string result_json = 3;
*/
public com.google.protobuf.ByteString
getResultJsonBytes() {
java.lang.Object ref = resultJson_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resultJson_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string result_json = 3;
*/
public Builder setResultJson(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
resultJson_ = value;
onChanged();
return this;
}
/**
* string result_json = 3;
*/
public Builder clearResultJson() {
resultJson_ = getDefaultInstance().getResultJson();
onChanged();
return this;
}
/**
* string result_json = 3;
*/
public Builder setResultJsonBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
resultJson_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:commandable.InvokeReply)
}
// @@protoc_insertion_point(class_scope:commandable.InvokeReply)
private static final org.pipservices4.grpc.commandable.InvokeReply DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.pipservices4.grpc.commandable.InvokeReply();
}
public static org.pipservices4.grpc.commandable.InvokeReply getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public InvokeReply parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new InvokeReply(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.pipservices4.grpc.commandable.InvokeReply getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}