Package org.apache.bookkeeper.proto
Class BookkeeperProtocol.Response
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
org.apache.bookkeeper.proto.BookkeeperProtocol.Response
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,BookkeeperProtocol.ResponseOrBuilder
- Enclosing class:
- BookkeeperProtocol
public static final class BookkeeperProtocol.Response
extends com.google.protobuf.GeneratedMessage
implements BookkeeperProtocol.ResponseOrBuilder
Protobuf type
Response- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typeResponseNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanoptional .AddResponse addResponse = 101;optional .AddResponse addResponse = 101;optional .AuthMessage authResponse = 102;optional .AuthMessage authResponse = 102;static BookkeeperProtocol.Responsestatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptoroptional .ForceLedgerResponse forceLedgerResponse = 107;optional .ForceLedgerResponse forceLedgerResponse = 107;optional .GetBookieInfoResponse getBookieInfoResponse = 105;optional .GetBookieInfoResponse getBookieInfoResponse = 105;optional .GetListOfEntriesOfLedgerResponse getListOfEntriesOfLedgerResponse = 108;optional .GetListOfEntriesOfLedgerResponse getListOfEntriesOfLedgerResponse = 108;required .BKPacketHeader header = 1;required .BKPacketHeader header = 1;com.google.protobuf.Parser<BookkeeperProtocol.Response>optional .ReadLacResponse readLacResponse = 104;optional .ReadLacResponse readLacResponse = 104;ResponseResponseintoptional .StartTLSResponse startTLSResponse = 106;optional .StartTLSResponse startTLSResponse = 106;EOK if the underlying request succeeded.optional .WriteLacResponse writeLacResponse = 103;optional .WriteLacResponse writeLacResponse = 103;booleanoptional .AddResponse addResponse = 101;booleanoptional .AuthMessage authResponse = 102;booleanoptional .ForceLedgerResponse forceLedgerResponse = 107;booleanoptional .GetBookieInfoResponse getBookieInfoResponse = 105;booleanoptional .GetListOfEntriesOfLedgerResponse getListOfEntriesOfLedgerResponse = 108;inthashCode()booleanrequired .BKPacketHeader header = 1;booleanoptional .ReadLacResponse readLacResponse = 104;booleanResponsebooleanoptional .StartTLSResponse startTLSResponse = 106;booleanEOK if the underlying request succeeded.booleanoptional .WriteLacResponse writeLacResponse = 103;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(BookkeeperProtocol.Response prototype) protected BookkeeperProtocol.Response.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static BookkeeperProtocol.ResponseparseDelimitedFrom(InputStream input) static BookkeeperProtocol.ResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BookkeeperProtocol.ResponseparseFrom(byte[] data) static BookkeeperProtocol.ResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BookkeeperProtocol.ResponseparseFrom(com.google.protobuf.ByteString data) static BookkeeperProtocol.ResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BookkeeperProtocol.ResponseparseFrom(com.google.protobuf.CodedInputStream input) static BookkeeperProtocol.ResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BookkeeperProtocol.ResponseparseFrom(InputStream input) static BookkeeperProtocol.ResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BookkeeperProtocol.ResponseparseFrom(ByteBuffer data) static BookkeeperProtocol.ResponseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<BookkeeperProtocol.Response>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
HEADER_FIELD_NUMBER
public static final int HEADER_FIELD_NUMBER- See Also:
-
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER- See Also:
-
READRESPONSE_FIELD_NUMBER
public static final int READRESPONSE_FIELD_NUMBER- See Also:
-
ADDRESPONSE_FIELD_NUMBER
public static final int ADDRESPONSE_FIELD_NUMBER- See Also:
-
AUTHRESPONSE_FIELD_NUMBER
public static final int AUTHRESPONSE_FIELD_NUMBER- See Also:
-
WRITELACRESPONSE_FIELD_NUMBER
public static final int WRITELACRESPONSE_FIELD_NUMBER- See Also:
-
READLACRESPONSE_FIELD_NUMBER
public static final int READLACRESPONSE_FIELD_NUMBER- See Also:
-
GETBOOKIEINFORESPONSE_FIELD_NUMBER
public static final int GETBOOKIEINFORESPONSE_FIELD_NUMBER- See Also:
-
STARTTLSRESPONSE_FIELD_NUMBER
public static final int STARTTLSRESPONSE_FIELD_NUMBER- See Also:
-
FORCELEDGERRESPONSE_FIELD_NUMBER
public static final int FORCELEDGERRESPONSE_FIELD_NUMBER- See Also:
-
GETLISTOFENTRIESOFLEDGERRESPONSE_FIELD_NUMBER
public static final int GETLISTOFENTRIESOFLEDGERRESPONSE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasHeader
public boolean hasHeader()required .BKPacketHeader header = 1;- Specified by:
hasHeaderin interfaceBookkeeperProtocol.ResponseOrBuilder- Returns:
- Whether the header field is set.
-
getHeader
required .BKPacketHeader header = 1;- Specified by:
getHeaderin interfaceBookkeeperProtocol.ResponseOrBuilder- Returns:
- The header.
-
getHeaderOrBuilder
required .BKPacketHeader header = 1;- Specified by:
getHeaderOrBuilderin interfaceBookkeeperProtocol.ResponseOrBuilder
-
hasStatus
public boolean hasStatus()EOK if the underlying request succeeded. Each individual response has a more meaningful status. EBADREQ if we have an unsupported request.
required .StatusCode status = 2;- Specified by:
hasStatusin interfaceBookkeeperProtocol.ResponseOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
EOK if the underlying request succeeded. Each individual response has a more meaningful status. EBADREQ if we have an unsupported request.
required .StatusCode status = 2;- Specified by:
getStatusin interfaceBookkeeperProtocol.ResponseOrBuilder- Returns:
- The status.
-
hasReadResponse
public boolean hasReadResponse()Response
optional .ReadResponse readResponse = 100;- Specified by:
hasReadResponsein interfaceBookkeeperProtocol.ResponseOrBuilder- Returns:
- Whether the readResponse field is set.
-
getReadResponse
Response
optional .ReadResponse readResponse = 100;- Specified by:
getReadResponsein interfaceBookkeeperProtocol.ResponseOrBuilder- Returns:
- The readResponse.
-
getReadResponseOrBuilder
Response
optional .ReadResponse readResponse = 100;- Specified by:
getReadResponseOrBuilderin interfaceBookkeeperProtocol.ResponseOrBuilder
-
hasAddResponse
public boolean hasAddResponse()optional .AddResponse addResponse = 101;- Specified by:
hasAddResponsein interfaceBookkeeperProtocol.ResponseOrBuilder- Returns:
- Whether the addResponse field is set.
-
getAddResponse
optional .AddResponse addResponse = 101;- Specified by:
getAddResponsein interfaceBookkeeperProtocol.ResponseOrBuilder- Returns:
- The addResponse.
-
getAddResponseOrBuilder
optional .AddResponse addResponse = 101;- Specified by:
getAddResponseOrBuilderin interfaceBookkeeperProtocol.ResponseOrBuilder
-
hasAuthResponse
public boolean hasAuthResponse()optional .AuthMessage authResponse = 102;- Specified by:
hasAuthResponsein interfaceBookkeeperProtocol.ResponseOrBuilder- Returns:
- Whether the authResponse field is set.
-
getAuthResponse
optional .AuthMessage authResponse = 102;- Specified by:
getAuthResponsein interfaceBookkeeperProtocol.ResponseOrBuilder- Returns:
- The authResponse.
-
getAuthResponseOrBuilder
optional .AuthMessage authResponse = 102;- Specified by:
getAuthResponseOrBuilderin interfaceBookkeeperProtocol.ResponseOrBuilder
-
hasWriteLacResponse
public boolean hasWriteLacResponse()optional .WriteLacResponse writeLacResponse = 103;- Specified by:
hasWriteLacResponsein interfaceBookkeeperProtocol.ResponseOrBuilder- Returns:
- Whether the writeLacResponse field is set.
-
getWriteLacResponse
optional .WriteLacResponse writeLacResponse = 103;- Specified by:
getWriteLacResponsein interfaceBookkeeperProtocol.ResponseOrBuilder- Returns:
- The writeLacResponse.
-
getWriteLacResponseOrBuilder
optional .WriteLacResponse writeLacResponse = 103;- Specified by:
getWriteLacResponseOrBuilderin interfaceBookkeeperProtocol.ResponseOrBuilder
-
hasReadLacResponse
public boolean hasReadLacResponse()optional .ReadLacResponse readLacResponse = 104;- Specified by:
hasReadLacResponsein interfaceBookkeeperProtocol.ResponseOrBuilder- Returns:
- Whether the readLacResponse field is set.
-
getReadLacResponse
optional .ReadLacResponse readLacResponse = 104;- Specified by:
getReadLacResponsein interfaceBookkeeperProtocol.ResponseOrBuilder- Returns:
- The readLacResponse.
-
getReadLacResponseOrBuilder
optional .ReadLacResponse readLacResponse = 104;- Specified by:
getReadLacResponseOrBuilderin interfaceBookkeeperProtocol.ResponseOrBuilder
-
hasGetBookieInfoResponse
public boolean hasGetBookieInfoResponse()optional .GetBookieInfoResponse getBookieInfoResponse = 105;- Specified by:
hasGetBookieInfoResponsein interfaceBookkeeperProtocol.ResponseOrBuilder- Returns:
- Whether the getBookieInfoResponse field is set.
-
getGetBookieInfoResponse
optional .GetBookieInfoResponse getBookieInfoResponse = 105;- Specified by:
getGetBookieInfoResponsein interfaceBookkeeperProtocol.ResponseOrBuilder- Returns:
- The getBookieInfoResponse.
-
getGetBookieInfoResponseOrBuilder
optional .GetBookieInfoResponse getBookieInfoResponse = 105;- Specified by:
getGetBookieInfoResponseOrBuilderin interfaceBookkeeperProtocol.ResponseOrBuilder
-
hasStartTLSResponse
public boolean hasStartTLSResponse()optional .StartTLSResponse startTLSResponse = 106;- Specified by:
hasStartTLSResponsein interfaceBookkeeperProtocol.ResponseOrBuilder- Returns:
- Whether the startTLSResponse field is set.
-
getStartTLSResponse
optional .StartTLSResponse startTLSResponse = 106;- Specified by:
getStartTLSResponsein interfaceBookkeeperProtocol.ResponseOrBuilder- Returns:
- The startTLSResponse.
-
getStartTLSResponseOrBuilder
optional .StartTLSResponse startTLSResponse = 106;- Specified by:
getStartTLSResponseOrBuilderin interfaceBookkeeperProtocol.ResponseOrBuilder
-
hasForceLedgerResponse
public boolean hasForceLedgerResponse()optional .ForceLedgerResponse forceLedgerResponse = 107;- Specified by:
hasForceLedgerResponsein interfaceBookkeeperProtocol.ResponseOrBuilder- Returns:
- Whether the forceLedgerResponse field is set.
-
getForceLedgerResponse
optional .ForceLedgerResponse forceLedgerResponse = 107;- Specified by:
getForceLedgerResponsein interfaceBookkeeperProtocol.ResponseOrBuilder- Returns:
- The forceLedgerResponse.
-
getForceLedgerResponseOrBuilder
optional .ForceLedgerResponse forceLedgerResponse = 107;- Specified by:
getForceLedgerResponseOrBuilderin interfaceBookkeeperProtocol.ResponseOrBuilder
-
hasGetListOfEntriesOfLedgerResponse
public boolean hasGetListOfEntriesOfLedgerResponse()optional .GetListOfEntriesOfLedgerResponse getListOfEntriesOfLedgerResponse = 108;- Specified by:
hasGetListOfEntriesOfLedgerResponsein interfaceBookkeeperProtocol.ResponseOrBuilder- Returns:
- Whether the getListOfEntriesOfLedgerResponse field is set.
-
getGetListOfEntriesOfLedgerResponse
optional .GetListOfEntriesOfLedgerResponse getListOfEntriesOfLedgerResponse = 108;- Specified by:
getGetListOfEntriesOfLedgerResponsein interfaceBookkeeperProtocol.ResponseOrBuilder- Returns:
- The getListOfEntriesOfLedgerResponse.
-
getGetListOfEntriesOfLedgerResponseOrBuilder
public BookkeeperProtocol.GetListOfEntriesOfLedgerResponseOrBuilder getGetListOfEntriesOfLedgerResponseOrBuilder()optional .GetListOfEntriesOfLedgerResponse getListOfEntriesOfLedgerResponse = 108;- Specified by:
getGetListOfEntriesOfLedgerResponseOrBuilderin interfaceBookkeeperProtocol.ResponseOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static BookkeeperProtocol.Response parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BookkeeperProtocol.Response parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BookkeeperProtocol.Response parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BookkeeperProtocol.Response parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BookkeeperProtocol.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BookkeeperProtocol.Response parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static BookkeeperProtocol.Response parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static BookkeeperProtocol.Response parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static BookkeeperProtocol.Response parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static BookkeeperProtocol.Response parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BookkeeperProtocol.Response.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-