com.google.protobuf.gwt.shared
Interface Message

All Known Implementing Classes:
AbstractMessage, GeneratedMessage, RequestResponse.ClientConfiguration, RequestResponse.GraphDataRequest, RequestResponse.LoadMainPanelResponse, RequestResponse.Request, RequestResponse.Response, RequestResponse.TierLatencyObj, RequestResponse.TierLatencyResponse, RequestResponse.TimeLineGraphResponse, RequestResponse.TopologyDataResponse

public interface Message

Abstract interface implemented by Protocol Message GWT objects.

Author:
vkulikov@alum.mit.edu Vitaliy Kulikov Based on the original non-GWT Java implementation by kenton@google.com Kenton Varda

Nested Class Summary
static interface Message.Builder
          Abstract interface implemented by Protocol Message builders.
 
Method Summary
 Message getDefaultInstanceForType()
          Get an instance of the type with all fields set to their default values.
 boolean isInitialized()
          Returns true if all required fields in the message and all embedded messages are set, false otherwise.
 Message.Builder newBuilderForType()
          Constructs a new builder for a message of the same type as this message.
 Message.Builder toBuilder()
          Constructs a builder initialized with the current message.
 void writeTo(JsonStream output)
          Serializes the message and writes it to output.
 

Method Detail

getDefaultInstanceForType

Message getDefaultInstanceForType()
Get an instance of the type with all fields set to their default values. This may or may not be a singleton. This differs from the getDefaultInstance() method of generated message classes in that this method is an abstract method of the MessageLite interface whereas getDefaultInstance() is a static method of a specific class. They return the same thing.


isInitialized

boolean isInitialized()
Returns true if all required fields in the message and all embedded messages are set, false otherwise.


writeTo

void writeTo(JsonStream output)
             throws IOException
Serializes the message and writes it to output.

Throws:
IOException

newBuilderForType

Message.Builder newBuilderForType()
Constructs a new builder for a message of the same type as this message.


toBuilder

Message.Builder toBuilder()
Constructs a builder initialized with the current message. Use this to derive a new message from the current one.



Copyright © 2014 InMobi. All rights reserved.