Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7574425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:26:00+00:00 2026-05-30T16:26:00+00:00

I am new to protocol buffer from google so I tried the Java tutorial

  • 0

I am new to protocol buffer from google so I tried the Java tutorial and everything goes well until I am trying to make an instance of the protocol class. So I tried to make my own proto file but I had the same problem. The problem lies in this piece of code:

 AddressBook.Builder address = new AddressBook.newBuilder();

On the newBuilder() part I am getting a cannot find symbol error. In the comments in the file generated by protoc it says to use the newBuilder() to make an instance of the class and I can’t find the problem. Does anyone know the problem and is there a solution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T16:26:02+00:00Added an answer on May 30, 2026 at 4:26 pm

    This is the problem:

    new AddressBook.newBuilder();
    

    That syntax is half way between a method call and a constructor call. newBuilder() is just a static method. You just need:

    AddressBook.Builder builder = AddressBook.newBuilder();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Google protocol buffer/java I am new to maven and Google Protocol Buffer. I followed
I'm trying to upload an image to Picasa from a Google Chrome Extension and
I'm designing a new protocol called DITP. It is a connection oriented protocol that
New to Linux programming in general. I am trying to communicate with a kernel
I am trying to read a Network Stream from a socket. I know that
I'm trying to send a UDP datagram (containing a protocol buffers message) and getting
I am new to Protocol Buffers and seeing this as good approach to go.
If I do something like this: byte[] buffer = new byte[1024]; Socket sock =
We're introducing protocol buffers as the new transport for some back end RPC services.
I'm trying to send a Java UUID to C++, where it will be used

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.