Class BookkeeperProtocol.AddRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
org.apache.bookkeeper.proto.BookkeeperProtocol.AddRequest
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, BookkeeperProtocol.AddRequestOrBuilder
Enclosing class:
BookkeeperProtocol

public static final class BookkeeperProtocol.AddRequest extends com.google.protobuf.GeneratedMessage implements BookkeeperProtocol.AddRequestOrBuilder
Protobuf type AddRequest
See Also:
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • hasFlag

      public boolean hasFlag()
      optional .AddRequest.Flag flag = 100;
      Specified by:
      hasFlag in interface BookkeeperProtocol.AddRequestOrBuilder
      Returns:
      Whether the flag field is set.
    • getFlag

      optional .AddRequest.Flag flag = 100;
      Specified by:
      getFlag in interface BookkeeperProtocol.AddRequestOrBuilder
      Returns:
      The flag.
    • hasLedgerId

      public boolean hasLedgerId()
      required int64 ledgerId = 1;
      Specified by:
      hasLedgerId in interface BookkeeperProtocol.AddRequestOrBuilder
      Returns:
      Whether the ledgerId field is set.
    • getLedgerId

      public long getLedgerId()
      required int64 ledgerId = 1;
      Specified by:
      getLedgerId in interface BookkeeperProtocol.AddRequestOrBuilder
      Returns:
      The ledgerId.
    • hasEntryId

      public boolean hasEntryId()
      required int64 entryId = 2;
      Specified by:
      hasEntryId in interface BookkeeperProtocol.AddRequestOrBuilder
      Returns:
      Whether the entryId field is set.
    • getEntryId

      public long getEntryId()
      required int64 entryId = 2;
      Specified by:
      getEntryId in interface BookkeeperProtocol.AddRequestOrBuilder
      Returns:
      The entryId.
    • hasMasterKey

      public boolean hasMasterKey()
      required bytes masterKey = 3;
      Specified by:
      hasMasterKey in interface BookkeeperProtocol.AddRequestOrBuilder
      Returns:
      Whether the masterKey field is set.
    • getMasterKey

      public com.google.protobuf.ByteString getMasterKey()
      required bytes masterKey = 3;
      Specified by:
      getMasterKey in interface BookkeeperProtocol.AddRequestOrBuilder
      Returns:
      The masterKey.
    • hasBody

      public boolean hasBody()
      required bytes body = 4;
      Specified by:
      hasBody in interface BookkeeperProtocol.AddRequestOrBuilder
      Returns:
      Whether the body field is set.
    • getBody

      public com.google.protobuf.ByteString getBody()
      required bytes body = 4;
      Specified by:
      getBody in interface BookkeeperProtocol.AddRequestOrBuilder
      Returns:
      The body.
    • hasWriteFlags

      public boolean hasWriteFlags()
      optional int32 writeFlags = 5;
      Specified by:
      hasWriteFlags in interface BookkeeperProtocol.AddRequestOrBuilder
      Returns:
      Whether the writeFlags field is set.
    • getWriteFlags

      public int getWriteFlags()
      optional int32 writeFlags = 5;
      Specified by:
      getWriteFlags in interface BookkeeperProtocol.AddRequestOrBuilder
      Returns:
      The writeFlags.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static BookkeeperProtocol.AddRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BookkeeperProtocol.AddRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BookkeeperProtocol.AddRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BookkeeperProtocol.AddRequest 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.AddRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BookkeeperProtocol.AddRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BookkeeperProtocol.AddRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BookkeeperProtocol.AddRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static BookkeeperProtocol.AddRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static BookkeeperProtocol.AddRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BookkeeperProtocol.AddRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BookkeeperProtocol.AddRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public BookkeeperProtocol.AddRequest.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static BookkeeperProtocol.AddRequest.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected BookkeeperProtocol.AddRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static BookkeeperProtocol.AddRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<BookkeeperProtocol.AddRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<BookkeeperProtocol.AddRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public BookkeeperProtocol.AddRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder