Class Version.LeaseQueryResponse

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.dingodb.version.Version.LeaseQueryResponse
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Version.LeaseQueryResponseOrBuilder, Serializable
Enclosing class:
Version

public static final class Version.LeaseQueryResponse extends com.google.protobuf.GeneratedMessageV3 implements Version.LeaseQueryResponseOrBuilder
Protobuf type dingodb.pb.version.LeaseQueryResponse
See Also:
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasResponseInfo

      public boolean hasResponseInfo()
      .dingodb.pb.common.ResponseInfo response_info = 1;
      Specified by:
      hasResponseInfo in interface Version.LeaseQueryResponseOrBuilder
      Returns:
      Whether the responseInfo field is set.
    • getResponseInfo

      public Common.ResponseInfo getResponseInfo()
      .dingodb.pb.common.ResponseInfo response_info = 1;
      Specified by:
      getResponseInfo in interface Version.LeaseQueryResponseOrBuilder
      Returns:
      The responseInfo.
    • getResponseInfoOrBuilder

      public Common.ResponseInfoOrBuilder getResponseInfoOrBuilder()
      .dingodb.pb.common.ResponseInfo response_info = 1;
      Specified by:
      getResponseInfoOrBuilder in interface Version.LeaseQueryResponseOrBuilder
    • hasError

      public boolean hasError()
      .dingodb.pb.error.Error error = 2;
      Specified by:
      hasError in interface Version.LeaseQueryResponseOrBuilder
      Returns:
      Whether the error field is set.
    • getError

      public ErrorOuterClass.Error getError()
      .dingodb.pb.error.Error error = 2;
      Specified by:
      getError in interface Version.LeaseQueryResponseOrBuilder
      Returns:
      The error.
    • getErrorOrBuilder

      public ErrorOuterClass.ErrorOrBuilder getErrorOrBuilder()
      .dingodb.pb.error.Error error = 2;
      Specified by:
      getErrorOrBuilder in interface Version.LeaseQueryResponseOrBuilder
    • hasHeader

      public boolean hasHeader()
      .dingodb.pb.version.ResponseHeader header = 3;
      Specified by:
      hasHeader in interface Version.LeaseQueryResponseOrBuilder
      Returns:
      Whether the header field is set.
    • getHeader

      public Version.ResponseHeader getHeader()
      .dingodb.pb.version.ResponseHeader header = 3;
      Specified by:
      getHeader in interface Version.LeaseQueryResponseOrBuilder
      Returns:
      The header.
    • getHeaderOrBuilder

      public Version.ResponseHeaderOrBuilder getHeaderOrBuilder()
      .dingodb.pb.version.ResponseHeader header = 3;
      Specified by:
      getHeaderOrBuilder in interface Version.LeaseQueryResponseOrBuilder
    • getID

      public long getID()
       ID is the lease ID from the keep alive request.
       
      int64 ID = 4;
      Specified by:
      getID in interface Version.LeaseQueryResponseOrBuilder
      Returns:
      The iD.
    • getTTL

      public long getTTL()
       TTL is the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds.
       
      int64 TTL = 5;
      Specified by:
      getTTL in interface Version.LeaseQueryResponseOrBuilder
      Returns:
      The tTL.
    • getGrantedTTL

      public long getGrantedTTL()
       GrantedTTL is the initial granted time in seconds upon lease creation/renewal.
       
      int64 grantedTTL = 6;
      Specified by:
      getGrantedTTL in interface Version.LeaseQueryResponseOrBuilder
      Returns:
      The grantedTTL.
    • getKeysList

      public List<com.google.protobuf.ByteString> getKeysList()
       Keys is the list of keys attached to this lease.
       
      repeated bytes keys = 7;
      Specified by:
      getKeysList in interface Version.LeaseQueryResponseOrBuilder
      Returns:
      A list containing the keys.
    • getKeysCount

      public int getKeysCount()
       Keys is the list of keys attached to this lease.
       
      repeated bytes keys = 7;
      Specified by:
      getKeysCount in interface Version.LeaseQueryResponseOrBuilder
      Returns:
      The count of keys.
    • getKeys

      public com.google.protobuf.ByteString getKeys(int index)
       Keys is the list of keys attached to this lease.
       
      repeated bytes keys = 7;
      Specified by:
      getKeys in interface Version.LeaseQueryResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The keys at the given index.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • 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.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • 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 Version.LeaseQueryResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static Version.LeaseQueryResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Version.LeaseQueryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

      public static Version.LeaseQueryResponse parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static Version.LeaseQueryResponse parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static Version.LeaseQueryResponse.Builder newBuilder()
    • newBuilder

      public static Version.LeaseQueryResponse.Builder newBuilder(Version.LeaseQueryResponse prototype)
    • toBuilder

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

      protected Version.LeaseQueryResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Version.LeaseQueryResponse getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Version.LeaseQueryResponse> parser()
    • getParserForType

      public com.google.protobuf.Parser<Version.LeaseQueryResponse> 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.GeneratedMessageV3
    • getDefaultInstanceForType

      public Version.LeaseQueryResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder