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.InvokeRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: commandable.proto
package org.pipservices4.grpc.commandable;
/**
*
* The request message containing the invocation request.
*
*
* Protobuf type {@code commandable.InvokeRequest}
*/
public final class InvokeRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:commandable.InvokeRequest)
InvokeRequestOrBuilder {
// Use InvokeRequest.newBuilder() to construct.
private InvokeRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InvokeRequest() {
method_ = "";
traceId_ = "";
argsEmpty_ = false;
argsJson_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private InvokeRequest(
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: {
java.lang.String s = input.readStringRequireUtf8();
method_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
traceId_ = s;
break;
}
case 24: {
argsEmpty_ = input.readBool();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
argsJson_ = 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_InvokeRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.pipservices4.grpc.commandable.CommandableProto.internal_static_commandable_InvokeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.pipservices4.grpc.commandable.InvokeRequest.class, org.pipservices4.grpc.commandable.InvokeRequest.Builder.class);
}
public static final int METHOD_FIELD_NUMBER = 1;
private volatile java.lang.Object method_;
/**
* string method = 1;
*/
public java.lang.String getMethod() {
java.lang.Object ref = method_;
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();
method_ = s;
return s;
}
}
/**
* string method = 1;
*/
public com.google.protobuf.ByteString
getMethodBytes() {
java.lang.Object ref = method_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
method_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TRACE_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object traceId_;
/**
* string trace_id = 2;
*/
public java.lang.String getTraceId() {
java.lang.Object ref = traceId_;
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();
traceId_ = s;
return s;
}
}
/**
* string trace_id = 2;
*/
public com.google.protobuf.ByteString
getTraceIdBytes() {
java.lang.Object ref = traceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
traceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ARGS_EMPTY_FIELD_NUMBER = 3;
private boolean argsEmpty_;
/**
* bool args_empty = 3;
*/
public boolean getArgsEmpty() {
return argsEmpty_;
}
public static final int ARGS_JSON_FIELD_NUMBER = 4;
private volatile java.lang.Object argsJson_;
/**
* string args_json = 4;
*/
public java.lang.String getArgsJson() {
java.lang.Object ref = argsJson_;
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();
argsJson_ = s;
return s;
}
}
/**
* string args_json = 4;
*/
public com.google.protobuf.ByteString
getArgsJsonBytes() {
java.lang.Object ref = argsJson_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
argsJson_ = 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 (!getMethodBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, method_);
}
if (!getTraceIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, traceId_);
}
if (argsEmpty_ != false) {
output.writeBool(3, argsEmpty_);
}
if (!getArgsJsonBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, argsJson_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getMethodBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, method_);
}
if (!getTraceIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, traceId_);
}
if (argsEmpty_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, argsEmpty_);
}
if (!getArgsJsonBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, argsJson_);
}
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.InvokeRequest)) {
return super.equals(obj);
}
org.pipservices4.grpc.commandable.InvokeRequest other = (org.pipservices4.grpc.commandable.InvokeRequest) obj;
boolean result = true;
result = result && getMethod()
.equals(other.getMethod());
result = result && getTraceId()
.equals(other.getTraceId());
result = result && (getArgsEmpty()
== other.getArgsEmpty());
result = result && getArgsJson()
.equals(other.getArgsJson());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + METHOD_FIELD_NUMBER;
hash = (53 * hash) + getMethod().hashCode();
hash = (37 * hash) + TRACE_ID_FIELD_NUMBER;
hash = (53 * hash) + getTraceId().hashCode();
hash = (37 * hash) + ARGS_EMPTY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getArgsEmpty());
hash = (37 * hash) + ARGS_JSON_FIELD_NUMBER;
hash = (53 * hash) + getArgsJson().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.pipservices4.grpc.commandable.InvokeRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.pipservices4.grpc.commandable.InvokeRequest 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.InvokeRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.pipservices4.grpc.commandable.InvokeRequest 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.InvokeRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.pipservices4.grpc.commandable.InvokeRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.pipservices4.grpc.commandable.InvokeRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.pipservices4.grpc.commandable.InvokeRequest 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.InvokeRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.pipservices4.grpc.commandable.InvokeRequest 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.InvokeRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.pipservices4.grpc.commandable.InvokeRequest 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.InvokeRequest 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 request message containing the invocation request.
*
*
* Protobuf type {@code commandable.InvokeRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:commandable.InvokeRequest)
org.pipservices4.grpc.commandable.InvokeRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.pipservices4.grpc.commandable.CommandableProto.internal_static_commandable_InvokeRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.pipservices4.grpc.commandable.CommandableProto.internal_static_commandable_InvokeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.pipservices4.grpc.commandable.InvokeRequest.class, org.pipservices4.grpc.commandable.InvokeRequest.Builder.class);
}
// Construct using org.pipservices4.grpc.commandable.InvokeRequest.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();
method_ = "";
traceId_ = "";
argsEmpty_ = false;
argsJson_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.pipservices4.grpc.commandable.CommandableProto.internal_static_commandable_InvokeRequest_descriptor;
}
public org.pipservices4.grpc.commandable.InvokeRequest getDefaultInstanceForType() {
return org.pipservices4.grpc.commandable.InvokeRequest.getDefaultInstance();
}
public org.pipservices4.grpc.commandable.InvokeRequest build() {
org.pipservices4.grpc.commandable.InvokeRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.pipservices4.grpc.commandable.InvokeRequest buildPartial() {
org.pipservices4.grpc.commandable.InvokeRequest result = new org.pipservices4.grpc.commandable.InvokeRequest(this);
result.method_ = method_;
result.traceId_ = traceId_;
result.argsEmpty_ = argsEmpty_;
result.argsJson_ = argsJson_;
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.InvokeRequest) {
return mergeFrom((org.pipservices4.grpc.commandable.InvokeRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.pipservices4.grpc.commandable.InvokeRequest other) {
if (other == org.pipservices4.grpc.commandable.InvokeRequest.getDefaultInstance()) return this;
if (!other.getMethod().isEmpty()) {
method_ = other.method_;
onChanged();
}
if (!other.getTraceId().isEmpty()) {
traceId_ = other.traceId_;
onChanged();
}
if (other.getArgsEmpty() != false) {
setArgsEmpty(other.getArgsEmpty());
}
if (!other.getArgsJson().isEmpty()) {
argsJson_ = other.argsJson_;
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.InvokeRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.pipservices4.grpc.commandable.InvokeRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object method_ = "";
/**
* string method = 1;
*/
public java.lang.String getMethod() {
java.lang.Object ref = method_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
method_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string method = 1;
*/
public com.google.protobuf.ByteString
getMethodBytes() {
java.lang.Object ref = method_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
method_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string method = 1;
*/
public Builder setMethod(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
method_ = value;
onChanged();
return this;
}
/**
* string method = 1;
*/
public Builder clearMethod() {
method_ = getDefaultInstance().getMethod();
onChanged();
return this;
}
/**
* string method = 1;
*/
public Builder setMethodBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
method_ = value;
onChanged();
return this;
}
private java.lang.Object traceId_ = "";
/**
* string trace_id = 2;
*/
public java.lang.String getTraceId() {
java.lang.Object ref = traceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
traceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string trace_id = 2;
*/
public com.google.protobuf.ByteString
getTraceIdBytes() {
java.lang.Object ref = traceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
traceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string trace_id = 2;
*/
public Builder setTraceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
traceId_ = value;
onChanged();
return this;
}
/**
* string trace_id = 2;
*/
public Builder clearTraceId() {
traceId_ = getDefaultInstance().getTraceId();
onChanged();
return this;
}
/**
* string trace_id = 2;
*/
public Builder setTraceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
traceId_ = value;
onChanged();
return this;
}
private boolean argsEmpty_ ;
/**
* bool args_empty = 3;
*/
public boolean getArgsEmpty() {
return argsEmpty_;
}
/**
* bool args_empty = 3;
*/
public Builder setArgsEmpty(boolean value) {
argsEmpty_ = value;
onChanged();
return this;
}
/**
* bool args_empty = 3;
*/
public Builder clearArgsEmpty() {
argsEmpty_ = false;
onChanged();
return this;
}
private java.lang.Object argsJson_ = "";
/**
* string args_json = 4;
*/
public java.lang.String getArgsJson() {
java.lang.Object ref = argsJson_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
argsJson_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string args_json = 4;
*/
public com.google.protobuf.ByteString
getArgsJsonBytes() {
java.lang.Object ref = argsJson_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
argsJson_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string args_json = 4;
*/
public Builder setArgsJson(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
argsJson_ = value;
onChanged();
return this;
}
/**
* string args_json = 4;
*/
public Builder clearArgsJson() {
argsJson_ = getDefaultInstance().getArgsJson();
onChanged();
return this;
}
/**
* string args_json = 4;
*/
public Builder setArgsJsonBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
argsJson_ = 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.InvokeRequest)
}
// @@protoc_insertion_point(class_scope:commandable.InvokeRequest)
private static final org.pipservices4.grpc.commandable.InvokeRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.pipservices4.grpc.commandable.InvokeRequest();
}
public static org.pipservices4.grpc.commandable.InvokeRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public InvokeRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new InvokeRequest(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.InvokeRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}