All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest Maven / Gradle / Ivy

Go to download

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_request.proto

package com.googlecode.mobilityrpc.protocol.protobuf;

public final class MessageResourceRequest {
  private MessageResourceRequest() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface ResourceRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:com.googlecode.mobilityrpc.protocol.protobuf.ResourceRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated string resource_name = 1;
     *
     * 
     * The name of the class or resource required from the class loader on the remote machine.
     * This name will be supplied to sessionClassLoader.getResourceAsStream(String name) on the remote machine.
     * In the case of requesting bytecode for a class, this name should be the binary name of the class
     * with '/'-separated path name and '.class' appended. E.g. class com.foo.Bar -> com/foo/Bar.class
     * 
*/ com.google.protobuf.ProtocolStringList getResourceNameList(); /** * repeated string resource_name = 1; * *
     * The name of the class or resource required from the class loader on the remote machine.
     * This name will be supplied to sessionClassLoader.getResourceAsStream(String name) on the remote machine.
     * In the case of requesting bytecode for a class, this name should be the binary name of the class
     * with '/'-separated path name and '.class' appended. E.g. class com.foo.Bar -> com/foo/Bar.class
     * 
*/ int getResourceNameCount(); /** * repeated string resource_name = 1; * *
     * The name of the class or resource required from the class loader on the remote machine.
     * This name will be supplied to sessionClassLoader.getResourceAsStream(String name) on the remote machine.
     * In the case of requesting bytecode for a class, this name should be the binary name of the class
     * with '/'-separated path name and '.class' appended. E.g. class com.foo.Bar -> com/foo/Bar.class
     * 
*/ java.lang.String getResourceName(int index); /** * repeated string resource_name = 1; * *
     * The name of the class or resource required from the class loader on the remote machine.
     * This name will be supplied to sessionClassLoader.getResourceAsStream(String name) on the remote machine.
     * In the case of requesting bytecode for a class, this name should be the binary name of the class
     * with '/'-separated path name and '.class' appended. E.g. class com.foo.Bar -> com/foo/Bar.class
     * 
*/ com.google.protobuf.ByteString getResourceNameBytes(int index); /** * required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 2; * *
     * Request identifier which will be echoed back to the client by the server, identifies the session and
     * request on the client to which the response will be addressed
     * 
*/ boolean hasRequestIdentifier(); /** * required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 2; * *
     * Request identifier which will be echoed back to the client by the server, identifies the session and
     * request on the client to which the response will be addressed
     * 
*/ com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier getRequestIdentifier(); /** * required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 2; * *
     * Request identifier which will be echoed back to the client by the server, identifies the session and
     * request on the client to which the response will be addressed
     * 
*/ com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifierOrBuilder getRequestIdentifierOrBuilder(); } /** * Protobuf type {@code com.googlecode.mobilityrpc.protocol.protobuf.ResourceRequest} */ public static final class ResourceRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:com.googlecode.mobilityrpc.protocol.protobuf.ResourceRequest) ResourceRequestOrBuilder { // Use ResourceRequest.newBuilder() to construct. private ResourceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ResourceRequest() { resourceName_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResourceRequest( 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(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { resourceName_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } resourceName_.add(bs); break; } case 18: { 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)) { resourceName_ = resourceName_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequest.class, com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequest.Builder.class); } private int bitField0_; public static final int RESOURCE_NAME_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList resourceName_; /** * repeated string resource_name = 1; * *
     * The name of the class or resource required from the class loader on the remote machine.
     * This name will be supplied to sessionClassLoader.getResourceAsStream(String name) on the remote machine.
     * In the case of requesting bytecode for a class, this name should be the binary name of the class
     * with '/'-separated path name and '.class' appended. E.g. class com.foo.Bar -> com/foo/Bar.class
     * 
*/ public com.google.protobuf.ProtocolStringList getResourceNameList() { return resourceName_; } /** * repeated string resource_name = 1; * *
     * The name of the class or resource required from the class loader on the remote machine.
     * This name will be supplied to sessionClassLoader.getResourceAsStream(String name) on the remote machine.
     * In the case of requesting bytecode for a class, this name should be the binary name of the class
     * with '/'-separated path name and '.class' appended. E.g. class com.foo.Bar -> com/foo/Bar.class
     * 
*/ public int getResourceNameCount() { return resourceName_.size(); } /** * repeated string resource_name = 1; * *
     * The name of the class or resource required from the class loader on the remote machine.
     * This name will be supplied to sessionClassLoader.getResourceAsStream(String name) on the remote machine.
     * In the case of requesting bytecode for a class, this name should be the binary name of the class
     * with '/'-separated path name and '.class' appended. E.g. class com.foo.Bar -> com/foo/Bar.class
     * 
*/ public java.lang.String getResourceName(int index) { return resourceName_.get(index); } /** * repeated string resource_name = 1; * *
     * The name of the class or resource required from the class loader on the remote machine.
     * This name will be supplied to sessionClassLoader.getResourceAsStream(String name) on the remote machine.
     * In the case of requesting bytecode for a class, this name should be the binary name of the class
     * with '/'-separated path name and '.class' appended. E.g. class com.foo.Bar -> com/foo/Bar.class
     * 
*/ public com.google.protobuf.ByteString getResourceNameBytes(int index) { return resourceName_.getByteString(index); } public static final int REQUEST_IDENTIFIER_FIELD_NUMBER = 2; private com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.RequestIdentifier requestIdentifier_; /** * required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 2; * *
     * Request identifier which will be echoed back to the client by the server, identifies the session and
     * request on the client to which the response will be addressed
     * 
*/ public boolean hasRequestIdentifier() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 2; * *
     * Request identifier which will be echoed back to the client by the server, identifies the session and
     * request on the client to which the response will be addressed
     * 
*/ 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 = 2; * *
     * Request identifier which will be echoed back to the client by the server, identifies the session and
     * request on the client to which the response will be addressed
     * 
*/ 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; } 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 < resourceName_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 1, resourceName_.getRaw(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(2, getRequestIdentifier()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < resourceName_.size(); i++) { dataSize += computeStringSizeNoTag(resourceName_.getRaw(i)); } size += dataSize; size += 1 * getResourceNameList().size(); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRequestIdentifier()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequest 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.MessageResourceRequest.ResourceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequest 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.MessageResourceRequest.ResourceRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequest 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.MessageResourceRequest.ResourceRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequest 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.MessageResourceRequest.ResourceRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequest 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.MessageResourceRequest.ResourceRequest 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.ResourceRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:com.googlecode.mobilityrpc.protocol.protobuf.ResourceRequest) com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequest.class, com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequest.Builder.class); } // Construct using com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequest.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(); resourceName_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); 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.MessageResourceRequest.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceRequest_descriptor; } public com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequest getDefaultInstanceForType() { return com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequest.getDefaultInstance(); } public com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequest build() { com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequest buildPartial() { com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequest result = new com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { resourceName_ = resourceName_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.resourceName_ = resourceName_; 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.MessageResourceRequest.ResourceRequest) { return mergeFrom((com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequest other) { if (other == com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequest.getDefaultInstance()) return this; if (!other.resourceName_.isEmpty()) { if (resourceName_.isEmpty()) { resourceName_ = other.resourceName_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResourceNameIsMutable(); resourceName_.addAll(other.resourceName_); } onChanged(); } if (other.hasRequestIdentifier()) { mergeRequestIdentifier(other.getRequestIdentifier()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { 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.MessageResourceRequest.ResourceRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList resourceName_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureResourceNameIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { resourceName_ = new com.google.protobuf.LazyStringArrayList(resourceName_); bitField0_ |= 0x00000001; } } /** * repeated string resource_name = 1; * *
       * The name of the class or resource required from the class loader on the remote machine.
       * This name will be supplied to sessionClassLoader.getResourceAsStream(String name) on the remote machine.
       * In the case of requesting bytecode for a class, this name should be the binary name of the class
       * with '/'-separated path name and '.class' appended. E.g. class com.foo.Bar -> com/foo/Bar.class
       * 
*/ public com.google.protobuf.ProtocolStringList getResourceNameList() { return resourceName_.getUnmodifiableView(); } /** * repeated string resource_name = 1; * *
       * The name of the class or resource required from the class loader on the remote machine.
       * This name will be supplied to sessionClassLoader.getResourceAsStream(String name) on the remote machine.
       * In the case of requesting bytecode for a class, this name should be the binary name of the class
       * with '/'-separated path name and '.class' appended. E.g. class com.foo.Bar -> com/foo/Bar.class
       * 
*/ public int getResourceNameCount() { return resourceName_.size(); } /** * repeated string resource_name = 1; * *
       * The name of the class or resource required from the class loader on the remote machine.
       * This name will be supplied to sessionClassLoader.getResourceAsStream(String name) on the remote machine.
       * In the case of requesting bytecode for a class, this name should be the binary name of the class
       * with '/'-separated path name and '.class' appended. E.g. class com.foo.Bar -> com/foo/Bar.class
       * 
*/ public java.lang.String getResourceName(int index) { return resourceName_.get(index); } /** * repeated string resource_name = 1; * *
       * The name of the class or resource required from the class loader on the remote machine.
       * This name will be supplied to sessionClassLoader.getResourceAsStream(String name) on the remote machine.
       * In the case of requesting bytecode for a class, this name should be the binary name of the class
       * with '/'-separated path name and '.class' appended. E.g. class com.foo.Bar -> com/foo/Bar.class
       * 
*/ public com.google.protobuf.ByteString getResourceNameBytes(int index) { return resourceName_.getByteString(index); } /** * repeated string resource_name = 1; * *
       * The name of the class or resource required from the class loader on the remote machine.
       * This name will be supplied to sessionClassLoader.getResourceAsStream(String name) on the remote machine.
       * In the case of requesting bytecode for a class, this name should be the binary name of the class
       * with '/'-separated path name and '.class' appended. E.g. class com.foo.Bar -> com/foo/Bar.class
       * 
*/ public Builder setResourceName( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureResourceNameIsMutable(); resourceName_.set(index, value); onChanged(); return this; } /** * repeated string resource_name = 1; * *
       * The name of the class or resource required from the class loader on the remote machine.
       * This name will be supplied to sessionClassLoader.getResourceAsStream(String name) on the remote machine.
       * In the case of requesting bytecode for a class, this name should be the binary name of the class
       * with '/'-separated path name and '.class' appended. E.g. class com.foo.Bar -> com/foo/Bar.class
       * 
*/ public Builder addResourceName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureResourceNameIsMutable(); resourceName_.add(value); onChanged(); return this; } /** * repeated string resource_name = 1; * *
       * The name of the class or resource required from the class loader on the remote machine.
       * This name will be supplied to sessionClassLoader.getResourceAsStream(String name) on the remote machine.
       * In the case of requesting bytecode for a class, this name should be the binary name of the class
       * with '/'-separated path name and '.class' appended. E.g. class com.foo.Bar -> com/foo/Bar.class
       * 
*/ public Builder addAllResourceName( java.lang.Iterable values) { ensureResourceNameIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resourceName_); onChanged(); return this; } /** * repeated string resource_name = 1; * *
       * The name of the class or resource required from the class loader on the remote machine.
       * This name will be supplied to sessionClassLoader.getResourceAsStream(String name) on the remote machine.
       * In the case of requesting bytecode for a class, this name should be the binary name of the class
       * with '/'-separated path name and '.class' appended. E.g. class com.foo.Bar -> com/foo/Bar.class
       * 
*/ public Builder clearResourceName() { resourceName_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string resource_name = 1; * *
       * The name of the class or resource required from the class loader on the remote machine.
       * This name will be supplied to sessionClassLoader.getResourceAsStream(String name) on the remote machine.
       * In the case of requesting bytecode for a class, this name should be the binary name of the class
       * with '/'-separated path name and '.class' appended. E.g. class com.foo.Bar -> com/foo/Bar.class
       * 
*/ public Builder addResourceNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureResourceNameIsMutable(); resourceName_.add(value); 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 = 2; * *
       * Request identifier which will be echoed back to the client by the server, identifies the session and
       * request on the client to which the response will be addressed
       * 
*/ public boolean hasRequestIdentifier() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .com.googlecode.mobilityrpc.protocol.protobuf.RequestIdentifier request_identifier = 2; * *
       * Request identifier which will be echoed back to the client by the server, identifies the session and
       * request on the client to which the response will be addressed
       * 
*/ 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 = 2; * *
       * Request identifier which will be echoed back to the client by the server, identifies the session and
       * request on the client to which the response will be addressed
       * 
*/ 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 = 2; * *
       * Request identifier which will be echoed back to the client by the server, identifies the session and
       * request on the client to which the response will be addressed
       * 
*/ 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 = 2; * *
       * Request identifier which will be echoed back to the client by the server, identifies the session and
       * request on the client to which the response will be addressed
       * 
*/ 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 = 2; * *
       * Request identifier which will be echoed back to the client by the server, identifies the session and
       * request on the client to which the response will be addressed
       * 
*/ 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 = 2; * *
       * Request identifier which will be echoed back to the client by the server, identifies the session and
       * request on the client to which the response will be addressed
       * 
*/ 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 = 2; * *
       * Request identifier which will be echoed back to the client by the server, identifies the session and
       * request on the client to which the response will be addressed
       * 
*/ 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 = 2; * *
       * Request identifier which will be echoed back to the client by the server, identifies the session and
       * request on the client to which the response will be addressed
       * 
*/ 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.ResourceRequest) } // @@protoc_insertion_point(class_scope:com.googlecode.mobilityrpc.protocol.protobuf.ResourceRequest) private static final com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequest(); } public static com.googlecode.mobilityrpc.protocol.protobuf.MessageResourceRequest.ResourceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ResourceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new ResourceRequest(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.MessageResourceRequest.ResourceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static com.google.protobuf.Descriptors.Descriptor internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceRequest_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\036message_resource_request.proto\022,com.go" + "oglecode.mobilityrpc.protocol.protobuf\032\"" + "component_request_identifier.proto\"\205\001\n\017R" + "esourceRequest\022\025\n\rresource_name\030\001 \003(\t\022[\n" + "\022request_identifier\030\002 \002(\0132?.com.googleco" + "de.mobilityrpc.protocol.protobuf.Request" + "Identifier" }; 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_ResourceRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_googlecode_mobilityrpc_protocol_protobuf_ResourceRequest_descriptor, new java.lang.String[] { "ResourceName", "RequestIdentifier", }); com.googlecode.mobilityrpc.protocol.protobuf.ComponentRequestIdentifier.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy