Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class ContractGetBytecodeResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<ContractGetBytecodeResponse,ContractGetBytecodeResponse.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<ContractGetBytecodeResponse,ContractGetBytecodeResponse.Builder>
com.hedera.hashgraph.sdk.proto.ContractGetBytecodeResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,ContractGetBytecodeResponseOrBuilder,Cloneable
- Enclosing class:
ContractGetBytecodeResponse
public static final class ContractGetBytecodeResponse.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<ContractGetBytecodeResponse,ContractGetBytecodeResponse.Builder>
implements ContractGetBytecodeResponseOrBuilder
* Information returned in response to a "get bytecode" query for a smart contract.Protobuf type
proto.ContractGetBytecodeResponse-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* The current bytecode of the requested smart contract.* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).com.google.protobuf.ByteString* The current bytecode of the requested smart contract.* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).boolean* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).mergeHeader(ResponseHeader value) * The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).setBytecode(com.google.protobuf.ByteString value) * The current bytecode of the requested smart contract.setHeader(ResponseHeader value) * The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).setHeader(ResponseHeader.Builder builderForValue) * The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasHeader
public boolean hasHeader()* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).
.proto.ResponseHeader header = 1;- Specified by:
hasHeaderin interfaceContractGetBytecodeResponseOrBuilder- Returns:
- Whether the header field is set.
-
getHeader
* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).
.proto.ResponseHeader header = 1;- Specified by:
getHeaderin interfaceContractGetBytecodeResponseOrBuilder- Returns:
- The header.
-
setHeader
* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).
.proto.ResponseHeader header = 1; -
setHeader
* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).
.proto.ResponseHeader header = 1; -
mergeHeader
* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).
.proto.ResponseHeader header = 1; -
clearHeader
* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).
.proto.ResponseHeader header = 1; -
getBytecode
public com.google.protobuf.ByteString getBytecode()* The current bytecode of the requested smart contract.
bytes bytecode = 6;- Specified by:
getBytecodein interfaceContractGetBytecodeResponseOrBuilder- Returns:
- The bytecode.
-
setBytecode
* The current bytecode of the requested smart contract.
bytes bytecode = 6;- Parameters:
value- The bytecode to set.- Returns:
- This builder for chaining.
-
clearBytecode
* The current bytecode of the requested smart contract.
bytes bytecode = 6;- Returns:
- This builder for chaining.
-