Account Options

  1. Sign in
Google Groups Home
« Groups Home
Using Other Message Types using import - "message" is not defined
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tai  
View profile  
 More options Aug 4 2009, 6:14 am
From: Tai <maitai.tru...@gmail.com>
Date: Tue, 4 Aug 2009 03:14:24 -0700 (PDT)
Local: Tues, Aug 4 2009 6:14 am
Subject: Using Other Message Types using import - "message" is not defined
Hi,

I have to proto files ADMObjectHandleMessage.proto and
AbstractADMAdapterMessage.proto:

ADMObjectHandleMessage.proto
==================================
package com.qnamic.base.agent;

message ADMObjectHandle {
    optional string host = 1;
    optional string agent = 2;
    optional string path = 3;
    required int64 admTopCreationTime = 4;

}

AbstractADMAdapterMessage.proto
==================================
package com.qnamic.planopt.base.query.adapter;
import "ADMObjectHandleMessage.proto";

message AbstractADMAdapter {
    repeated ADMObjectHandle objectHandle = 1;
    required bool adaptAll = 2;
    required bool fillObjectHandle = 3;

}

But when trying to compile the last file I get this:
Buildfile: D:\development\workspace\Platform\dev\config\protocolbuffers
\build.xml
generate:
     [exec] AbstractADMAdapterMessage.proto:5:14: "ADMObjectHandle" is
not defined.
     [exec] Result: 1
BUILD SUCCESSFUL
Total time: 172 milliseconds

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tai  
View profile  
 More options Aug 4 2009, 10:31 am
From: Tai <maitai.tru...@gmail.com>
Date: Tue, 4 Aug 2009 07:31:34 -0700 (PDT)
Local: Tues, Aug 4 2009 10:31 am
Subject: Re: Using Other Message Types using import - "message" is not defined
Ok. I forgot to the type the full qualified name including package:
    required com.qnamic.base.agent.ADMObjectHandle objectHandle = 1;

Tai

On 4 Aug., 12:14, Tai <maitai.tru...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kenton Varda  
View profile  
 More options Aug 4 2009, 12:39 pm
From: Kenton Varda <ken...@google.com>
Date: Tue, 4 Aug 2009 09:39:43 -0700
Local: Tues, Aug 4 2009 12:39 pm
Subject: Re: Using Other Message Types using import - "message" is not defined

BTW, the proto package name is meant to correspond to C++ namespaces, not
Java packages.  I recommend using the java_package option to specify the
Java package, then set the proto package to something shorter, like:
  package qnamic.base.agent;
  option java_package = "com.qnamic.base.agent";

But I suppose if you only use Java it won't make a big difference.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »