public final class ResponseMeta extends com.google.protobuf.GeneratedMessage implements ResponseMetaOrBuilder
ResponseMeta
The common meta message for all response
| Modifier and Type | Class and Description |
|---|---|
static class |
ResponseMeta.Builder
Protobuf type
ResponseMeta |
static class |
ResponseMeta.ResponseType
Protobuf enum
ResponseMeta.ResponseType |
| Modifier and Type | Field and Description |
|---|---|
static int |
ID_FIELD_NUMBER |
static int |
IS_REQUEST_FIELD_NUMBER |
static int |
MESSAGE_TYPE_FIELD_NUMBER |
static <any> |
PARSER |
static int |
RESPONSE_TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
static ResponseMeta |
getDefaultInstance() |
ResponseMeta |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getId()
required string id = 1; |
com.google.protobuf.ByteString |
getIdBytes()
required string id = 1; |
boolean |
getIsRequest()
optional bool is_request = 3 [default = false]; |
MessageType |
getMessageType()
optional .MessageType message_type = 2 [default = RESPONSE]; |
<any> |
getParserForType() |
ResponseMeta.ResponseType |
getResponseType()
required .ResponseMeta.ResponseType response_type = 4; |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasId()
required string id = 1; |
boolean |
hasIsRequest()
optional bool is_request = 3 [default = false]; |
boolean |
hasMessageType()
optional .MessageType message_type = 2 [default = RESPONSE]; |
boolean |
hasResponseType()
required .ResponseMeta.ResponseType response_type = 4; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ResponseMeta.Builder |
newBuilder() |
static ResponseMeta.Builder |
newBuilder(ResponseMeta prototype) |
ResponseMeta.Builder |
newBuilderForType() |
protected ResponseMeta.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static ResponseMeta |
parseDelimitedFrom(java.io.InputStream input) |
static ResponseMeta |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResponseMeta |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResponseMeta |
parseFrom(com.google.protobuf.ByteString data) |
static ResponseMeta |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResponseMeta |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ResponseMeta |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResponseMeta |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ResponseMeta.Builder |
toBuilder() |
protected java.lang.Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static <any> PARSER
public static final int ID_FIELD_NUMBER
public static final int MESSAGE_TYPE_FIELD_NUMBER
public static final int IS_REQUEST_FIELD_NUMBER
public static final int RESPONSE_TYPE_FIELD_NUMBER
public static ResponseMeta getDefaultInstance()
public ResponseMeta getDefaultInstanceForType()
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
public <any> getParserForType()
public boolean hasId()
required string id = 1;hasId in interface ResponseMetaOrBuilderpublic java.lang.String getId()
required string id = 1;getId in interface ResponseMetaOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
required string id = 1;getIdBytes in interface ResponseMetaOrBuilderpublic boolean hasMessageType()
optional .MessageType message_type = 2 [default = RESPONSE];hasMessageType in interface ResponseMetaOrBuilderpublic MessageType getMessageType()
optional .MessageType message_type = 2 [default = RESPONSE];getMessageType in interface ResponseMetaOrBuilderpublic boolean hasIsRequest()
optional bool is_request = 3 [default = false];hasIsRequest in interface ResponseMetaOrBuilderpublic boolean getIsRequest()
optional bool is_request = 3 [default = false];getIsRequest in interface ResponseMetaOrBuilderpublic boolean hasResponseType()
required .ResponseMeta.ResponseType response_type = 4;hasResponseType in interface ResponseMetaOrBuilderpublic ResponseMeta.ResponseType getResponseType()
required .ResponseMeta.ResponseType response_type = 4;getResponseType in interface ResponseMetaOrBuilderpublic final boolean isInitialized()
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
java.io.IOExceptionpublic int getSerializedSize()
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException
java.io.ObjectStreamExceptionpublic static ResponseMeta parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResponseMeta parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResponseMeta parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResponseMeta parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ResponseMeta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ResponseMeta parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ResponseMeta parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ResponseMeta parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ResponseMeta.Builder newBuilder()
public ResponseMeta.Builder newBuilderForType()
public static ResponseMeta.Builder newBuilder(ResponseMeta prototype)
public ResponseMeta.Builder toBuilder()
protected ResponseMeta.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)