com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mobility-rpc Show documentation
Show all versions of mobility-rpc Show documentation
A high performance and easy to use library for Code Mobility and RPC on the Java platform.
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: message_resource_response.proto
package com.googlecode.mobilityrpc.protocol.protobuf;
public final class MessageResourceResponse {
private MessageResourceResponse() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface ResourceDataOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.googlecode.mobilityrpc.protocol.protobuf.ResourceData)
com.google.protobuf.MessageOrBuilder {
/**
* required string resource_name = 1;
*
*
* The name of the class or resource requested, as provided by the SessionClassLoader on the local machine
*
*/
boolean hasResourceName();
/**
* required string resource_name = 1;
*
*
* The name of the class or resource requested, as provided by the SessionClassLoader on the local machine
*
*/
java.lang.String getResourceName();
/**
* required string resource_name = 1;
*
*
* The name of the class or resource requested, as provided by the SessionClassLoader on the local machine
*
*/
com.google.protobuf.ByteString
getResourceNameBytes();
/**
* required bytes resource_data = 2;
*
*
* The bytecode of the class or binary data of the resource requested
*
*/
boolean hasResourceData();
/**
* required bytes resource_data = 2;
*
*
* The bytecode of the class or binary data of the resource requested
*
*/
com.google.protobuf.ByteString getResourceData();
}
/**
* Protobuf type {@code com.googlecode.mobilityrpc.protocol.protobuf.ResourceData}
*/
public static final class ResourceData extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:com.googlecode.mobilityrpc.protocol.protobuf.ResourceData)
ResourceDataOrBuilder {
// Use ResourceData.newBuilder() to construct.
private ResourceData(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ResourceData() {
resourceName_ = "";
resourceData_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResourceData(
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: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
resourceName_ = bs;
break;
}
case 18: {
bitField0_ |= 0x00000002;
resourceData_ = input.readBytes();
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.MessageResourceResponse.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceData_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData.class, com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData.Builder.class);
}
private int bitField0_;
public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object resourceName_;
/**
* required string resource_name = 1;
*
*
* The name of the class or resource requested, as provided by the SessionClassLoader on the local machine
*
*/
public boolean hasResourceName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string resource_name = 1;
*
*
* The name of the class or resource requested, as provided by the SessionClassLoader on the local machine
*
*/
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
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();
if (bs.isValidUtf8()) {
resourceName_ = s;
}
return s;
}
}
/**
* required string resource_name = 1;
*
*
* The name of the class or resource requested, as provided by the SessionClassLoader on the local machine
*
*/
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESOURCE_DATA_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString resourceData_;
/**
* required bytes resource_data = 2;
*
*
* The bytecode of the class or binary data of the resource requested
*
*/
public boolean hasResourceData() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required bytes resource_data = 2;
*
*
* The bytecode of the class or binary data of the resource requested
*
*/
public com.google.protobuf.ByteString getResourceData() {
return resourceData_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasResourceName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasResourceData()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, resourceName_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, resourceData_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, resourceName_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, resourceData_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData 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.MessageResourceResponse.ResourceData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData 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.MessageResourceResponse.ResourceData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData 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.MessageResourceResponse.ResourceData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData 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.MessageResourceResponse.ResourceData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData 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.MessageResourceResponse.ResourceData 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.ResourceData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:com.googlecode.mobilityrpc.protocol.protobuf.ResourceData)
com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceData_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData.class, com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData.Builder.class);
}
// Construct using com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
resourceName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
resourceData_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceData_descriptor;
}
public com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData getDefaultInstanceForType() {
return com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData.getDefaultInstance();
}
public com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData build() {
com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData buildPartial() {
com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData result = new com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.resourceName_ = resourceName_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.resourceData_ = resourceData_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData) {
return mergeFrom((com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData other) {
if (other == com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData.getDefaultInstance()) return this;
if (other.hasResourceName()) {
bitField0_ |= 0x00000001;
resourceName_ = other.resourceName_;
onChanged();
}
if (other.hasResourceData()) {
setResourceData(other.getResourceData());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasResourceName()) {
return false;
}
if (!hasResourceData()) {
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.MessageResourceResponse.ResourceData parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object resourceName_ = "";
/**
* required string resource_name = 1;
*
*
* The name of the class or resource requested, as provided by the SessionClassLoader on the local machine
*
*/
public boolean hasResourceName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string resource_name = 1;
*
*
* The name of the class or resource requested, as provided by the SessionClassLoader on the local machine
*
*/
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
resourceName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string resource_name = 1;
*
*
* The name of the class or resource requested, as provided by the SessionClassLoader on the local machine
*
*/
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string resource_name = 1;
*
*
* The name of the class or resource requested, as provided by the SessionClassLoader on the local machine
*
*/
public Builder setResourceName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
resourceName_ = value;
onChanged();
return this;
}
/**
* required string resource_name = 1;
*
*
* The name of the class or resource requested, as provided by the SessionClassLoader on the local machine
*
*/
public Builder clearResourceName() {
bitField0_ = (bitField0_ & ~0x00000001);
resourceName_ = getDefaultInstance().getResourceName();
onChanged();
return this;
}
/**
* required string resource_name = 1;
*
*
* The name of the class or resource requested, as provided by the SessionClassLoader on the local machine
*
*/
public Builder setResourceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
resourceName_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString resourceData_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes resource_data = 2;
*
*
* The bytecode of the class or binary data of the resource requested
*
*/
public boolean hasResourceData() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required bytes resource_data = 2;
*
*
* The bytecode of the class or binary data of the resource requested
*
*/
public com.google.protobuf.ByteString getResourceData() {
return resourceData_;
}
/**
* required bytes resource_data = 2;
*
*
* The bytecode of the class or binary data of the resource requested
*
*/
public Builder setResourceData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
resourceData_ = value;
onChanged();
return this;
}
/**
* required bytes resource_data = 2;
*
*
* The bytecode of the class or binary data of the resource requested
*
*/
public Builder clearResourceData() {
bitField0_ = (bitField0_ & ~0x00000002);
resourceData_ = getDefaultInstance().getResourceData();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.googlecode.mobilityrpc.protocol.protobuf.ResourceData)
}
// @@protoc_insertion_point(class_scope:com.googlecode.mobilityrpc.protocol.protobuf.ResourceData)
private static final com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData();
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ResourceData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new ResourceData(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.MessageResourceResponse.ResourceData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResourceResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.googlecode.mobilityrpc.protocol.protobuf.ResourceResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
java.util.List
getResourceDataList();
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData getResourceData(int index);
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
int getResourceDataCount();
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
java.util.List extends com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceDataOrBuilder>
getResourceDataOrBuilderList();
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceDataOrBuilder getResourceDataOrBuilder(
int index);
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 4;
*
*
* The request identifier, copied from the corresponding resource request originally sent by the client
*
*/
boolean hasRequestIdentifier();
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 4;
*
*
* The request identifier, copied from the corresponding resource request originally sent by the client
*
*/
com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier getRequestIdentifier();
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 4;
*
*
* The request identifier, copied from the corresponding resource request originally sent by the client
*
*/
com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifierOrBuilder getRequestIdentifierOrBuilder();
}
/**
* Protobuf type {@code com.googlecode.mobilityrpc.protocol.protobuf.ResourceResponse}
*/
public static final class ResourceResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:com.googlecode.mobilityrpc.protocol.protobuf.ResourceResponse)
ResourceResponseOrBuilder {
// Use ResourceResponse.newBuilder() to construct.
private ResourceResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ResourceResponse() {
resourceData_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResourceResponse(
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: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
resourceData_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
resourceData_.add(input.readMessage(com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData.parser(), extensionRegistry));
break;
}
case 34: {
com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
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_ |= 0x00000001;
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 {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
resourceData_ = java.util.Collections.unmodifiableList(resourceData_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceResponse.class, com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceResponse.Builder.class);
}
private int bitField0_;
public static final int RESOURCE_DATA_FIELD_NUMBER = 1;
private java.util.List resourceData_;
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
public java.util.List getResourceDataList() {
return resourceData_;
}
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
public java.util.List extends com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceDataOrBuilder>
getResourceDataOrBuilderList() {
return resourceData_;
}
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
public int getResourceDataCount() {
return resourceData_.size();
}
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
public com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData getResourceData(int index) {
return resourceData_.get(index);
}
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
public com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceDataOrBuilder getResourceDataOrBuilder(
int index) {
return resourceData_.get(index);
}
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;
*
*
* The request identifier, copied from the corresponding resource request originally sent by the client
*
*/
public boolean hasRequestIdentifier() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 4;
*
*
* The request identifier, copied from the corresponding resource request originally sent by the client
*
*/
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;
*
*
* The request identifier, copied from the corresponding resource request originally sent by the client
*
*/
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 (!hasRequestIdentifier()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getResourceDataCount(); i++) {
if (!getResourceData(i).isInitialized()) {
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 {
for (int i = 0; i < resourceData_.size(); i++) {
output.writeMessage(1, resourceData_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(4, getRequestIdentifier());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < resourceData_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, resourceData_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
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.MessageResourceResponse.ResourceResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceResponse 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.MessageResourceResponse.ResourceResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceResponse 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.MessageResourceResponse.ResourceResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceResponse 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.MessageResourceResponse.ResourceResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceResponse 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.MessageResourceResponse.ResourceResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceResponse 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.MessageResourceResponse.ResourceResponse 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.ResourceResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:com.googlecode.mobilityrpc.protocol.protobuf.ResourceResponse)
com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceResponse.class, com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceResponse.Builder.class);
}
// Construct using com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getResourceDataFieldBuilder();
getRequestIdentifierFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (resourceDataBuilder_ == null) {
resourceData_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
resourceDataBuilder_.clear();
}
if (requestIdentifierBuilder_ == null) {
requestIdentifier_ = null;
} else {
requestIdentifierBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceResponse_descriptor;
}
public com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceResponse getDefaultInstanceForType() {
return com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceResponse.getDefaultInstance();
}
public com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceResponse build() {
com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceResponse buildPartial() {
com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceResponse result = new com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (resourceDataBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
resourceData_ = java.util.Collections.unmodifiableList(resourceData_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.resourceData_ = resourceData_;
} else {
result.resourceData_ = resourceDataBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
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.MessageResourceResponse.ResourceResponse) {
return mergeFrom((com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceResponse other) {
if (other == com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceResponse.getDefaultInstance()) return this;
if (resourceDataBuilder_ == null) {
if (!other.resourceData_.isEmpty()) {
if (resourceData_.isEmpty()) {
resourceData_ = other.resourceData_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureResourceDataIsMutable();
resourceData_.addAll(other.resourceData_);
}
onChanged();
}
} else {
if (!other.resourceData_.isEmpty()) {
if (resourceDataBuilder_.isEmpty()) {
resourceDataBuilder_.dispose();
resourceDataBuilder_ = null;
resourceData_ = other.resourceData_;
bitField0_ = (bitField0_ & ~0x00000001);
resourceDataBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getResourceDataFieldBuilder() : null;
} else {
resourceDataBuilder_.addAllMessages(other.resourceData_);
}
}
}
if (other.hasRequestIdentifier()) {
mergeRequestIdentifier(other.getRequestIdentifier());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasRequestIdentifier()) {
return false;
}
for (int i = 0; i < getResourceDataCount(); i++) {
if (!getResourceData(i).isInitialized()) {
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.MessageResourceResponse.ResourceResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List resourceData_ =
java.util.Collections.emptyList();
private void ensureResourceDataIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
resourceData_ = new java.util.ArrayList(resourceData_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData, com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData.Builder, com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceDataOrBuilder> resourceDataBuilder_;
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
public java.util.List getResourceDataList() {
if (resourceDataBuilder_ == null) {
return java.util.Collections.unmodifiableList(resourceData_);
} else {
return resourceDataBuilder_.getMessageList();
}
}
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
public int getResourceDataCount() {
if (resourceDataBuilder_ == null) {
return resourceData_.size();
} else {
return resourceDataBuilder_.getCount();
}
}
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
public com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData getResourceData(int index) {
if (resourceDataBuilder_ == null) {
return resourceData_.get(index);
} else {
return resourceDataBuilder_.getMessage(index);
}
}
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
public Builder setResourceData(
int index, com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData value) {
if (resourceDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceDataIsMutable();
resourceData_.set(index, value);
onChanged();
} else {
resourceDataBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
public Builder setResourceData(
int index, com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData.Builder builderForValue) {
if (resourceDataBuilder_ == null) {
ensureResourceDataIsMutable();
resourceData_.set(index, builderForValue.build());
onChanged();
} else {
resourceDataBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
public Builder addResourceData(com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData value) {
if (resourceDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceDataIsMutable();
resourceData_.add(value);
onChanged();
} else {
resourceDataBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
public Builder addResourceData(
int index, com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData value) {
if (resourceDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceDataIsMutable();
resourceData_.add(index, value);
onChanged();
} else {
resourceDataBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
public Builder addResourceData(
com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData.Builder builderForValue) {
if (resourceDataBuilder_ == null) {
ensureResourceDataIsMutable();
resourceData_.add(builderForValue.build());
onChanged();
} else {
resourceDataBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
public Builder addResourceData(
int index, com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData.Builder builderForValue) {
if (resourceDataBuilder_ == null) {
ensureResourceDataIsMutable();
resourceData_.add(index, builderForValue.build());
onChanged();
} else {
resourceDataBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
public Builder addAllResourceData(
java.lang.Iterable extends com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData> values) {
if (resourceDataBuilder_ == null) {
ensureResourceDataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, resourceData_);
onChanged();
} else {
resourceDataBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
public Builder clearResourceData() {
if (resourceDataBuilder_ == null) {
resourceData_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
resourceDataBuilder_.clear();
}
return this;
}
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
public Builder removeResourceData(int index) {
if (resourceDataBuilder_ == null) {
ensureResourceDataIsMutable();
resourceData_.remove(index);
onChanged();
} else {
resourceDataBuilder_.remove(index);
}
return this;
}
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
public com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData.Builder getResourceDataBuilder(
int index) {
return getResourceDataFieldBuilder().getBuilder(index);
}
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
public com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceDataOrBuilder getResourceDataOrBuilder(
int index) {
if (resourceDataBuilder_ == null) {
return resourceData_.get(index); } else {
return resourceDataBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
public java.util.List extends com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceDataOrBuilder>
getResourceDataOrBuilderList() {
if (resourceDataBuilder_ != null) {
return resourceDataBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(resourceData_);
}
}
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
public com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData.Builder addResourceDataBuilder() {
return getResourceDataFieldBuilder().addBuilder(
com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData.getDefaultInstance());
}
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
public com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData.Builder addResourceDataBuilder(
int index) {
return getResourceDataFieldBuilder().addBuilder(
index, com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData.getDefaultInstance());
}
/**
* repeated .com.googlecode.mobilityrpc.protocol.protobuf.ResourceData resource_data = 1;
*
*
* The requested bytecode or binary resource data
*
*/
public java.util.List
getResourceDataBuilderList() {
return getResourceDataFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData, com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData.Builder, com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceDataOrBuilder>
getResourceDataFieldBuilder() {
if (resourceDataBuilder_ == null) {
resourceDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData, com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceData.Builder, com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceDataOrBuilder>(
resourceData_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
resourceData_ = null;
}
return resourceDataBuilder_;
}
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;
*
*
* The request identifier, copied from the corresponding resource request originally sent by the client
*
*/
public boolean hasRequestIdentifier() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 4;
*
*
* The request identifier, copied from the corresponding resource request originally sent by the client
*
*/
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;
*
*
* The request identifier, copied from the corresponding resource request originally sent by the client
*
*/
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_ |= 0x00000002;
return this;
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 4;
*
*
* The request identifier, copied from the corresponding resource request originally sent by the client
*
*/
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_ |= 0x00000002;
return this;
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 4;
*
*
* The request identifier, copied from the corresponding resource request originally sent by the client
*
*/
public Builder mergeRequestIdentifier(com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier value) {
if (requestIdentifierBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
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_ |= 0x00000002;
return this;
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 4;
*
*
* The request identifier, copied from the corresponding resource request originally sent by the client
*
*/
public Builder clearRequestIdentifier() {
if (requestIdentifierBuilder_ == null) {
requestIdentifier_ = null;
onChanged();
} else {
requestIdentifierBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 4;
*
*
* The request identifier, copied from the corresponding resource request originally sent by the client
*
*/
public com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier.Builder getRequestIdentifierBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getRequestIdentifierFieldBuilder().getBuilder();
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 4;
*
*
* The request identifier, copied from the corresponding resource request originally sent by the client
*
*/
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;
*
*
* The request identifier, copied from the corresponding resource request originally sent by the client
*
*/
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.ResourceResponse)
}
// @@protoc_insertion_point(class_scope:com.googlecode.mobilityrpc.protocol.protobuf.ResourceResponse)
private static final com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceResponse();
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceResponse.ResourceResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ResourceResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new ResourceResponse(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.MessageResourceResponse.ResourceResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceData_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceData_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceResponse_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_resource_response.proto\022,com.g" +
"ooglecode.mobilityrpc.protocol.protobuf\032" +
"\"component_request_identifier.proto\"<\n\014R" +
"esourceData\022\025\n\rresource_name\030\001 \002(\t\022\025\n\rre" +
"source_data\030\002 \002(\014\"\302\001\n\020ResourceResponse\022Q" +
"\n\rresource_data\030\001 \003(\0132:.com.googlecode.m" +
"obilityrpc.protocol.protobuf.ResourceDat" +
"a\022[\n\022request_identifier\030\004 \002(\0132?.com.goog" +
"lecode.mobilityrpc.protocol.protobuf.Req" +
"uestIdentifier"
};
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.ComponentRequestIdentifier.getDescriptor(),
}, assigner);
internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceData_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceData_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceData_descriptor,
new java.lang.String[] { "ResourceName", "ResourceData", });
internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceResponse_descriptor,
new java.lang.String[] { "ResourceData", "RequestIdentifier", });
com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy