Interface Version.LeaseQueryResponseOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Version.LeaseQueryResponse, Version.LeaseQueryResponse.Builder
Enclosing class:
Version

public static interface Version.LeaseQueryResponseOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    .dingodb.pb.error.Error error = 2;
    .dingodb.pb.error.Error error = 2;
    long
    GrantedTTL is the initial granted time in seconds upon lease creation/renewal.
    .dingodb.pb.version.ResponseHeader header = 3;
    .dingodb.pb.version.ResponseHeader header = 3;
    long
    ID is the lease ID from the keep alive request.
    com.google.protobuf.ByteString
    getKeys(int index)
    Keys is the list of keys attached to this lease.
    int
    Keys is the list of keys attached to this lease.
    List<com.google.protobuf.ByteString>
    Keys is the list of keys attached to this lease.
    .dingodb.pb.common.ResponseInfo response_info = 1;
    .dingodb.pb.common.ResponseInfo response_info = 1;
    long
    TTL is the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds.
    boolean
    .dingodb.pb.error.Error error = 2;
    boolean
    .dingodb.pb.version.ResponseHeader header = 3;
    boolean
    .dingodb.pb.common.ResponseInfo response_info = 1;

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasResponseInfo

      boolean hasResponseInfo()
      .dingodb.pb.common.ResponseInfo response_info = 1;
      Returns:
      Whether the responseInfo field is set.
    • getResponseInfo

      Common.ResponseInfo getResponseInfo()
      .dingodb.pb.common.ResponseInfo response_info = 1;
      Returns:
      The responseInfo.
    • getResponseInfoOrBuilder

      Common.ResponseInfoOrBuilder getResponseInfoOrBuilder()
      .dingodb.pb.common.ResponseInfo response_info = 1;
    • hasError

      boolean hasError()
      .dingodb.pb.error.Error error = 2;
      Returns:
      Whether the error field is set.
    • getError

      .dingodb.pb.error.Error error = 2;
      Returns:
      The error.
    • getErrorOrBuilder

      ErrorOuterClass.ErrorOrBuilder getErrorOrBuilder()
      .dingodb.pb.error.Error error = 2;
    • hasHeader

      boolean hasHeader()
      .dingodb.pb.version.ResponseHeader header = 3;
      Returns:
      Whether the header field is set.
    • getHeader

      .dingodb.pb.version.ResponseHeader header = 3;
      Returns:
      The header.
    • getHeaderOrBuilder

      Version.ResponseHeaderOrBuilder getHeaderOrBuilder()
      .dingodb.pb.version.ResponseHeader header = 3;
    • getID

      long getID()
       ID is the lease ID from the keep alive request.
       
      int64 ID = 4;
      Returns:
      The iD.
    • getTTL

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

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

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

      int getKeysCount()
       Keys is the list of keys attached to this lease.
       
      repeated bytes keys = 7;
      Returns:
      The count of keys.
    • getKeys

      com.google.protobuf.ByteString getKeys(int index)
       Keys is the list of keys attached to this lease.
       
      repeated bytes keys = 7;
      Parameters:
      index - The index of the element to return.
      Returns:
      The keys at the given index.