Class GetByKeyQuery.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<GetByKeyQuery,GetByKeyQuery.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<GetByKeyQuery,GetByKeyQuery.Builder>
com.hedera.hashgraph.sdk.proto.GetByKeyQuery.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, GetByKeyQueryOrBuilder, Cloneable
Enclosing class:
GetByKeyQuery

public static final class GetByKeyQuery.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<GetByKeyQuery,GetByKeyQuery.Builder> implements GetByKeyQueryOrBuilder
 *
 Query all accounts, claims, files, and smart contract instances whose
 associated keys include the given Key.

 > This query is no longer supported.
 
Protobuf type proto.GetByKeyQuery
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    * Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).
    * The key to search for.
    * Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).
    * The key to search for.
    boolean
    * Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).
    boolean
    * The key to search for.
    * Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).
    mergeKey(Key value)
    * The key to search for.
    * Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).
    setHeader(QueryHeader.Builder builderForValue)
    * Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).
    setKey(Key value)
    * The key to search for.
    setKey(Key.Builder builderForValue)
    * The key to search for.

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • hasHeader

      public boolean hasHeader()
       *
       Standard information sent with every query operation.<br/>
       This includes the signed payment and what kind of response is requested
       (cost, state proof, both, or neither).
       
      .proto.QueryHeader header = 1;
      Specified by:
      hasHeader in interface GetByKeyQueryOrBuilder
      Returns:
      Whether the header field is set.
    • getHeader

      public QueryHeader getHeader()
       *
       Standard information sent with every query operation.<br/>
       This includes the signed payment and what kind of response is requested
       (cost, state proof, both, or neither).
       
      .proto.QueryHeader header = 1;
      Specified by:
      getHeader in interface GetByKeyQueryOrBuilder
      Returns:
      The header.
    • setHeader

      public GetByKeyQuery.Builder setHeader(QueryHeader value)
       *
       Standard information sent with every query operation.<br/>
       This includes the signed payment and what kind of response is requested
       (cost, state proof, both, or neither).
       
      .proto.QueryHeader header = 1;
    • setHeader

      public GetByKeyQuery.Builder setHeader(QueryHeader.Builder builderForValue)
       *
       Standard information sent with every query operation.<br/>
       This includes the signed payment and what kind of response is requested
       (cost, state proof, both, or neither).
       
      .proto.QueryHeader header = 1;
    • mergeHeader

      public GetByKeyQuery.Builder mergeHeader(QueryHeader value)
       *
       Standard information sent with every query operation.<br/>
       This includes the signed payment and what kind of response is requested
       (cost, state proof, both, or neither).
       
      .proto.QueryHeader header = 1;
    • clearHeader

      public GetByKeyQuery.Builder clearHeader()
       *
       Standard information sent with every query operation.<br/>
       This includes the signed payment and what kind of response is requested
       (cost, state proof, both, or neither).
       
      .proto.QueryHeader header = 1;
    • hasKey

      public boolean hasKey()
       *
       The key to search for. It MUST NOT contain a contractID nor
       a ThresholdKey.
       
      .proto.Key key = 2;
      Specified by:
      hasKey in interface GetByKeyQueryOrBuilder
      Returns:
      Whether the key field is set.
    • getKey

      public Key getKey()
       *
       The key to search for. It MUST NOT contain a contractID nor
       a ThresholdKey.
       
      .proto.Key key = 2;
      Specified by:
      getKey in interface GetByKeyQueryOrBuilder
      Returns:
      The key.
    • setKey

      public GetByKeyQuery.Builder setKey(Key value)
       *
       The key to search for. It MUST NOT contain a contractID nor
       a ThresholdKey.
       
      .proto.Key key = 2;
    • setKey

      public GetByKeyQuery.Builder setKey(Key.Builder builderForValue)
       *
       The key to search for. It MUST NOT contain a contractID nor
       a ThresholdKey.
       
      .proto.Key key = 2;
    • mergeKey

      public GetByKeyQuery.Builder mergeKey(Key value)
       *
       The key to search for. It MUST NOT contain a contractID nor
       a ThresholdKey.
       
      .proto.Key key = 2;
    • clearKey

      public GetByKeyQuery.Builder clearKey()
       *
       The key to search for. It MUST NOT contain a contractID nor
       a ThresholdKey.
       
      .proto.Key key = 2;