com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: message_execution_request.proto
package com.googlecode.mobilityrpc.protocol.protobuf;
public final class MessageExecutionRequest {
private MessageExecutionRequest() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface ExecutionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.googlecode.mobilityrpc.protocol.protobuf.ExecutionRequest)
com.google.protobuf.MessageOrBuilder {
/**
* required bytes serialized_executable_object = 1;
*
*
* A serialized Runnable or Callable object
*
*/
boolean hasSerializedExecutableObject();
/**
* required bytes serialized_executable_object = 1;
*
*
* A serialized Runnable or Callable object
*
*/
com.google.protobuf.ByteString getSerializedExecutableObject();
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.SerializationFormat serialization_format = 2;
*
*
* The serialized format of the executable object e.g. whether Kryo or Java serialization was used
*
*/
boolean hasSerializationFormat();
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.SerializationFormat serialization_format = 2;
*
*
* The serialized format of the executable object e.g. whether Kryo or Java serialization was used
*
*/
com.googlecode.mobilityrpc.protocol.protobuf.ComponentSerializationFormat.SerializationFormat getSerializationFormat();
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.ExecutionRequest.ExecutionMode execution_mode = 3 [default = RETURN_RESPONSE];
*
*
* Whether the remote host needs to return a response to the client when the execution completes
*
*/
boolean hasExecutionMode();
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.ExecutionRequest.ExecutionMode execution_mode = 3 [default = RETURN_RESPONSE];
*
*
* Whether the remote host needs to return a response to the client when the execution completes
*
*/
com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest.ExecutionMode getExecutionMode();
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 4;
*
*
* Request identifier, indicates relevant session and identifies the relevant request to the client when
* response messages are returned
*
*/
boolean hasRequestIdentifier();
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 4;
*
*
* Request identifier, indicates relevant session and identifies the relevant request to the client when
* response messages are returned
*
*/
com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier getRequestIdentifier();
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 4;
*
*
* Request identifier, indicates relevant session and identifies the relevant request to the client when
* response messages are returned
*
*/
com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifierOrBuilder getRequestIdentifierOrBuilder();
}
/**
* Protobuf type {@code com.googlecode.mobilityrpc.protocol.protobuf.ExecutionRequest}
*/
public static final class ExecutionRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:com.googlecode.mobilityrpc.protocol.protobuf.ExecutionRequest)
ExecutionRequestOrBuilder {
// Use ExecutionRequest.newBuilder() to construct.
private ExecutionRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ExecutionRequest() {
serializedExecutableObject_ = com.google.protobuf.ByteString.EMPTY;
serializationFormat_ = 0;
executionMode_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExecutionRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
serializedExecutableObject_ = input.readBytes();
break;
}
case 16: {
int rawValue = input.readEnum();
com.googlecode.mobilityrpc.protocol.protobuf.ComponentSerializationFormat.SerializationFormat value = com.googlecode.mobilityrpc.protocol.protobuf.ComponentSerializationFormat.SerializationFormat.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
serializationFormat_ = rawValue;
}
break;
}
case 24: {
int rawValue = input.readEnum();
com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest.ExecutionMode value = com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest.ExecutionMode.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(3, rawValue);
} else {
bitField0_ |= 0x00000004;
executionMode_ = rawValue;
}
break;
}
case 34: {
com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = requestIdentifier_.toBuilder();
}
requestIdentifier_ = input.readMessage(com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(requestIdentifier_);
requestIdentifier_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ExecutionRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ExecutionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest.class, com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest.Builder.class);
}
/**
* Protobuf enum {@code com.googlecode.mobilityrpc.protocol.protobuf.ExecutionRequest.ExecutionMode}
*/
public enum ExecutionMode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* RETURN_RESPONSE = 0;
*/
RETURN_RESPONSE(0, 0),
/**
* FIRE_AND_FORGET = 1;
*/
FIRE_AND_FORGET(1, 1),
;
/**
* RETURN_RESPONSE = 0;
*/
public static final int RETURN_RESPONSE_VALUE = 0;
/**
* FIRE_AND_FORGET = 1;
*/
public static final int FIRE_AND_FORGET_VALUE = 1;
public final int getNumber() {
return value;
}
public static ExecutionMode valueOf(int value) {
switch (value) {
case 0: return RETURN_RESPONSE;
case 1: return FIRE_AND_FORGET;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ExecutionMode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ExecutionMode findValueByNumber(int number) {
return ExecutionMode.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest.getDescriptor().getEnumTypes().get(0);
}
private static final ExecutionMode[] VALUES = values();
public static ExecutionMode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private ExecutionMode(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.googlecode.mobilityrpc.protocol.protobuf.ExecutionRequest.ExecutionMode)
}
private int bitField0_;
public static final int SERIALIZED_EXECUTABLE_OBJECT_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString serializedExecutableObject_;
/**
* required bytes serialized_executable_object = 1;
*
*
* A serialized Runnable or Callable object
*
*/
public boolean hasSerializedExecutableObject() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required bytes serialized_executable_object = 1;
*
*
* A serialized Runnable or Callable object
*
*/
public com.google.protobuf.ByteString getSerializedExecutableObject() {
return serializedExecutableObject_;
}
public static final int SERIALIZATION_FORMAT_FIELD_NUMBER = 2;
private int serializationFormat_;
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.SerializationFormat serialization_format = 2;
*
*
* The serialized format of the executable object e.g. whether Kryo or Java serialization was used
*
*/
public boolean hasSerializationFormat() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.SerializationFormat serialization_format = 2;
*
*
* The serialized format of the executable object e.g. whether Kryo or Java serialization was used
*
*/
public com.googlecode.mobilityrpc.protocol.protobuf.ComponentSerializationFormat.SerializationFormat getSerializationFormat() {
com.googlecode.mobilityrpc.protocol.protobuf.ComponentSerializationFormat.SerializationFormat result = com.googlecode.mobilityrpc.protocol.protobuf.ComponentSerializationFormat.SerializationFormat.valueOf(serializationFormat_);
return result == null ? com.googlecode.mobilityrpc.protocol.protobuf.ComponentSerializationFormat.SerializationFormat.JAVA : result;
}
public static final int EXECUTION_MODE_FIELD_NUMBER = 3;
private int executionMode_;
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.ExecutionRequest.ExecutionMode execution_mode = 3 [default = RETURN_RESPONSE];
*
*
* Whether the remote host needs to return a response to the client when the execution completes
*
*/
public boolean hasExecutionMode() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.ExecutionRequest.ExecutionMode execution_mode = 3 [default = RETURN_RESPONSE];
*
*
* Whether the remote host needs to return a response to the client when the execution completes
*
*/
public com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest.ExecutionMode getExecutionMode() {
com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest.ExecutionMode result = com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest.ExecutionMode.valueOf(executionMode_);
return result == null ? com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest.ExecutionMode.RETURN_RESPONSE : result;
}
public static final int REQUEST_IDENTIFIER_FIELD_NUMBER = 4;
private com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier requestIdentifier_;
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 4;
*
*
* Request identifier, indicates relevant session and identifies the relevant request to the client when
* response messages are returned
*
*/
public boolean hasRequestIdentifier() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 4;
*
*
* Request identifier, indicates relevant session and identifies the relevant request to the client when
* response messages are returned
*
*/
public com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier getRequestIdentifier() {
return requestIdentifier_ == null ? com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier.getDefaultInstance() : requestIdentifier_;
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 4;
*
*
* Request identifier, indicates relevant session and identifies the relevant request to the client when
* response messages are returned
*
*/
public com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifierOrBuilder getRequestIdentifierOrBuilder() {
return requestIdentifier_ == null ? com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier.getDefaultInstance() : requestIdentifier_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasSerializedExecutableObject()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasSerializationFormat()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasExecutionMode()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasRequestIdentifier()) {
memoizedIsInitialized = 0;
return false;
}
if (!getRequestIdentifier().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, serializedExecutableObject_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeEnum(2, serializationFormat_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeEnum(3, executionMode_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, getRequestIdentifier());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, serializedExecutableObject_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, serializationFormat_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, executionMode_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getRequestIdentifier());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.googlecode.mobilityrpc.protocol.protobuf.ExecutionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:com.googlecode.mobilityrpc.protocol.protobuf.ExecutionRequest)
com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ExecutionRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ExecutionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest.class, com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest.Builder.class);
}
// Construct using com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getRequestIdentifierFieldBuilder();
}
}
public Builder clear() {
super.clear();
serializedExecutableObject_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
serializationFormat_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
executionMode_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
if (requestIdentifierBuilder_ == null) {
requestIdentifier_ = null;
} else {
requestIdentifierBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ExecutionRequest_descriptor;
}
public com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest getDefaultInstanceForType() {
return com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest.getDefaultInstance();
}
public com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest build() {
com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest buildPartial() {
com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest result = new com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.serializedExecutableObject_ = serializedExecutableObject_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.serializationFormat_ = serializationFormat_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.executionMode_ = executionMode_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
if (requestIdentifierBuilder_ == null) {
result.requestIdentifier_ = requestIdentifier_;
} else {
result.requestIdentifier_ = requestIdentifierBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest) {
return mergeFrom((com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest other) {
if (other == com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest.getDefaultInstance()) return this;
if (other.hasSerializedExecutableObject()) {
setSerializedExecutableObject(other.getSerializedExecutableObject());
}
if (other.hasSerializationFormat()) {
setSerializationFormat(other.getSerializationFormat());
}
if (other.hasExecutionMode()) {
setExecutionMode(other.getExecutionMode());
}
if (other.hasRequestIdentifier()) {
mergeRequestIdentifier(other.getRequestIdentifier());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasSerializedExecutableObject()) {
return false;
}
if (!hasSerializationFormat()) {
return false;
}
if (!hasExecutionMode()) {
return false;
}
if (!hasRequestIdentifier()) {
return false;
}
if (!getRequestIdentifier().isInitialized()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString serializedExecutableObject_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes serialized_executable_object = 1;
*
*
* A serialized Runnable or Callable object
*
*/
public boolean hasSerializedExecutableObject() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required bytes serialized_executable_object = 1;
*
*
* A serialized Runnable or Callable object
*
*/
public com.google.protobuf.ByteString getSerializedExecutableObject() {
return serializedExecutableObject_;
}
/**
* required bytes serialized_executable_object = 1;
*
*
* A serialized Runnable or Callable object
*
*/
public Builder setSerializedExecutableObject(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
serializedExecutableObject_ = value;
onChanged();
return this;
}
/**
* required bytes serialized_executable_object = 1;
*
*
* A serialized Runnable or Callable object
*
*/
public Builder clearSerializedExecutableObject() {
bitField0_ = (bitField0_ & ~0x00000001);
serializedExecutableObject_ = getDefaultInstance().getSerializedExecutableObject();
onChanged();
return this;
}
private int serializationFormat_ = 0;
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.SerializationFormat serialization_format = 2;
*
*
* The serialized format of the executable object e.g. whether Kryo or Java serialization was used
*
*/
public boolean hasSerializationFormat() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.SerializationFormat serialization_format = 2;
*
*
* The serialized format of the executable object e.g. whether Kryo or Java serialization was used
*
*/
public com.googlecode.mobilityrpc.protocol.protobuf.ComponentSerializationFormat.SerializationFormat getSerializationFormat() {
com.googlecode.mobilityrpc.protocol.protobuf.ComponentSerializationFormat.SerializationFormat result = com.googlecode.mobilityrpc.protocol.protobuf.ComponentSerializationFormat.SerializationFormat.valueOf(serializationFormat_);
return result == null ? com.googlecode.mobilityrpc.protocol.protobuf.ComponentSerializationFormat.SerializationFormat.JAVA : result;
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.SerializationFormat serialization_format = 2;
*
*
* The serialized format of the executable object e.g. whether Kryo or Java serialization was used
*
*/
public Builder setSerializationFormat(com.googlecode.mobilityrpc.protocol.protobuf.ComponentSerializationFormat.SerializationFormat value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
serializationFormat_ = value.getNumber();
onChanged();
return this;
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.SerializationFormat serialization_format = 2;
*
*
* The serialized format of the executable object e.g. whether Kryo or Java serialization was used
*
*/
public Builder clearSerializationFormat() {
bitField0_ = (bitField0_ & ~0x00000002);
serializationFormat_ = 0;
onChanged();
return this;
}
private int executionMode_ = 0;
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.ExecutionRequest.ExecutionMode execution_mode = 3 [default = RETURN_RESPONSE];
*
*
* Whether the remote host needs to return a response to the client when the execution completes
*
*/
public boolean hasExecutionMode() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.ExecutionRequest.ExecutionMode execution_mode = 3 [default = RETURN_RESPONSE];
*
*
* Whether the remote host needs to return a response to the client when the execution completes
*
*/
public com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest.ExecutionMode getExecutionMode() {
com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest.ExecutionMode result = com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest.ExecutionMode.valueOf(executionMode_);
return result == null ? com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest.ExecutionMode.RETURN_RESPONSE : result;
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.ExecutionRequest.ExecutionMode execution_mode = 3 [default = RETURN_RESPONSE];
*
*
* Whether the remote host needs to return a response to the client when the execution completes
*
*/
public Builder setExecutionMode(com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest.ExecutionMode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
executionMode_ = value.getNumber();
onChanged();
return this;
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.ExecutionRequest.ExecutionMode execution_mode = 3 [default = RETURN_RESPONSE];
*
*
* Whether the remote host needs to return a response to the client when the execution completes
*
*/
public Builder clearExecutionMode() {
bitField0_ = (bitField0_ & ~0x00000004);
executionMode_ = 0;
onChanged();
return this;
}
private com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier requestIdentifier_ = null;
private com.google.protobuf.SingleFieldBuilder<
com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier, com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier.Builder, com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifierOrBuilder> requestIdentifierBuilder_;
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 4;
*
*
* Request identifier, indicates relevant session and identifies the relevant request to the client when
* response messages are returned
*
*/
public boolean hasRequestIdentifier() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 4;
*
*
* Request identifier, indicates relevant session and identifies the relevant request to the client when
* response messages are returned
*
*/
public com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier getRequestIdentifier() {
if (requestIdentifierBuilder_ == null) {
return requestIdentifier_ == null ? com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier.getDefaultInstance() : requestIdentifier_;
} else {
return requestIdentifierBuilder_.getMessage();
}
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 4;
*
*
* Request identifier, indicates relevant session and identifies the relevant request to the client when
* response messages are returned
*
*/
public Builder setRequestIdentifier(com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier value) {
if (requestIdentifierBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
requestIdentifier_ = value;
onChanged();
} else {
requestIdentifierBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 4;
*
*
* Request identifier, indicates relevant session and identifies the relevant request to the client when
* response messages are returned
*
*/
public Builder setRequestIdentifier(
com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier.Builder builderForValue) {
if (requestIdentifierBuilder_ == null) {
requestIdentifier_ = builderForValue.build();
onChanged();
} else {
requestIdentifierBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 4;
*
*
* Request identifier, indicates relevant session and identifies the relevant request to the client when
* response messages are returned
*
*/
public Builder mergeRequestIdentifier(com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier value) {
if (requestIdentifierBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
requestIdentifier_ != null &&
requestIdentifier_ != com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier.getDefaultInstance()) {
requestIdentifier_ =
com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier.newBuilder(requestIdentifier_).mergeFrom(value).buildPartial();
} else {
requestIdentifier_ = value;
}
onChanged();
} else {
requestIdentifierBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 4;
*
*
* Request identifier, indicates relevant session and identifies the relevant request to the client when
* response messages are returned
*
*/
public Builder clearRequestIdentifier() {
if (requestIdentifierBuilder_ == null) {
requestIdentifier_ = null;
onChanged();
} else {
requestIdentifierBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 4;
*
*
* Request identifier, indicates relevant session and identifies the relevant request to the client when
* response messages are returned
*
*/
public com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier.Builder getRequestIdentifierBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getRequestIdentifierFieldBuilder().getBuilder();
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 4;
*
*
* Request identifier, indicates relevant session and identifies the relevant request to the client when
* response messages are returned
*
*/
public com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifierOrBuilder getRequestIdentifierOrBuilder() {
if (requestIdentifierBuilder_ != null) {
return requestIdentifierBuilder_.getMessageOrBuilder();
} else {
return requestIdentifier_ == null ?
com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier.getDefaultInstance() : requestIdentifier_;
}
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 4;
*
*
* Request identifier, indicates relevant session and identifies the relevant request to the client when
* response messages are returned
*
*/
private com.google.protobuf.SingleFieldBuilder<
com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier, com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier.Builder, com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifierOrBuilder>
getRequestIdentifierFieldBuilder() {
if (requestIdentifierBuilder_ == null) {
requestIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier, com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier.Builder, com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifierOrBuilder>(
getRequestIdentifier(),
getParentForChildren(),
isClean());
requestIdentifier_ = null;
}
return requestIdentifierBuilder_;
}
// @@protoc_insertion_point(builder_scope:com.googlecode.mobilityrpc.protocol.protobuf.ExecutionRequest)
}
// @@protoc_insertion_point(class_scope:com.googlecode.mobilityrpc.protocol.protobuf.ExecutionRequest)
private static final com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest();
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ExecutionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new ExecutionRequest(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.googlecode.mobilityrpc.protocol.protobuf.MessageExecutionRequest.ExecutionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ExecutionRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ExecutionRequest_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\037message_execution_request.proto\022,com.g" +
"ooglecode.mobilityrpc.protocol.protobuf\032" +
"$component_serialization_format.proto\032\"c" +
"omponent_request_identifier.proto\"\250\003\n\020Ex" +
"ecutionRequest\022$\n\034serialized_executable_" +
"object\030\001 \002(\014\022_\n\024serialization_format\030\002 \002" +
"(\0162A.com.googlecode.mobilityrpc.protocol" +
".protobuf.SerializationFormat\022u\n\016executi" +
"on_mode\030\003 \002(\0162L.com.googlecode.mobilityr" +
"pc.protocol.protobuf.ExecutionRequest.Ex",
"ecutionMode:\017RETURN_RESPONSE\022[\n\022request_" +
"identifier\030\004 \002(\0132?.com.googlecode.mobili" +
"tyrpc.protocol.protobuf.RequestIdentifie" +
"r\"9\n\rExecutionMode\022\023\n\017RETURN_RESPONSE\020\000\022" +
"\023\n\017FIRE_AND_FORGET\020\001"
};
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;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.googlecode.mobilityrpc.protocol.protobuf.ComponentSerializationFormat.getDescriptor(),
com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.getDescriptor(),
}, assigner);
internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ExecutionRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ExecutionRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ExecutionRequest_descriptor,
new java.lang.String[] { "SerializedExecutableObject", "SerializationFormat", "ExecutionMode", "RequestIdentifier", });
com.googlecode.mobilityrpc.protocol.protobuf.ComponentSerializationFormat.getDescriptor();
com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy