Class ContractLoginfo.Builder

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

public static final class ContractLoginfo.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<ContractLoginfo,ContractLoginfo.Builder> implements ContractLoginfoOrBuilder
 *
 EVM log data for a contract call.<br/>
 The EVM log information produced by a smart contract function call.

 Each contract function call MAY return zero or more log events.
 
Protobuf type proto.ContractLoginfo
  • Field Summary

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

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    addAllTopic(Iterable<? extends com.google.protobuf.ByteString> values)
    * A list of the "topics" in this log entry.<br/> The EVM permits up to 4 topics, each of which is 32 bytes (one EVM word).
    addTopic(com.google.protobuf.ByteString value)
    * A list of the "topics" in this log entry.<br/> The EVM permits up to 4 topics, each of which is 32 bytes (one EVM word).
    * A bloom filter.<br/> This filter applies to this log entry and indexes the contract log data in the full data of the Ethereum block.<br/> EIP-7668 proposes to remove bloom filters as they are quite low value in practice and separate indexing services are more effective.
    * A contract identifier.<br/> This refers to the contract that generated this log entry.
    * Event data for this log entry.<br/> This is binary data consisting of an arbitrary number of 256 bit (32 byte) words.
    * A list of the "topics" in this log entry.<br/> The EVM permits up to 4 topics, each of which is 32 bytes (one EVM word).
    com.google.protobuf.ByteString
    * A bloom filter.<br/> This filter applies to this log entry and indexes the contract log data in the full data of the Ethereum block.<br/> EIP-7668 proposes to remove bloom filters as they are quite low value in practice and separate indexing services are more effective.
    * A contract identifier.<br/> This refers to the contract that generated this log entry.
    com.google.protobuf.ByteString
    * Event data for this log entry.<br/> This is binary data consisting of an arbitrary number of 256 bit (32 byte) words.
    com.google.protobuf.ByteString
    getTopic(int index)
    * A list of the "topics" in this log entry.<br/> The EVM permits up to 4 topics, each of which is 32 bytes (one EVM word).
    int
    * A list of the "topics" in this log entry.<br/> The EVM permits up to 4 topics, each of which is 32 bytes (one EVM word).
    List<com.google.protobuf.ByteString>
    * A list of the "topics" in this log entry.<br/> The EVM permits up to 4 topics, each of which is 32 bytes (one EVM word).
    boolean
    * A contract identifier.<br/> This refers to the contract that generated this log entry.
    * A contract identifier.<br/> This refers to the contract that generated this log entry.
    setBloom(com.google.protobuf.ByteString value)
    * A bloom filter.<br/> This filter applies to this log entry and indexes the contract log data in the full data of the Ethereum block.<br/> EIP-7668 proposes to remove bloom filters as they are quite low value in practice and separate indexing services are more effective.
    * A contract identifier.<br/> This refers to the contract that generated this log entry.
    * A contract identifier.<br/> This refers to the contract that generated this log entry.
    setData(com.google.protobuf.ByteString value)
    * Event data for this log entry.<br/> This is binary data consisting of an arbitrary number of 256 bit (32 byte) words.
    setTopic(int index, com.google.protobuf.ByteString value)
    * A list of the "topics" in this log entry.<br/> The EVM permits up to 4 topics, each of which is 32 bytes (one EVM word).

    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

    • hasContractID

      public boolean hasContractID()
       *
       A contract identifier.<br/>
       This refers to the contract that generated this log entry.
       
      .proto.ContractID contractID = 1;
      Specified by:
      hasContractID in interface ContractLoginfoOrBuilder
      Returns:
      Whether the contractID field is set.
    • getContractID

      public ContractID getContractID()
       *
       A contract identifier.<br/>
       This refers to the contract that generated this log entry.
       
      .proto.ContractID contractID = 1;
      Specified by:
      getContractID in interface ContractLoginfoOrBuilder
      Returns:
      The contractID.
    • setContractID

      public ContractLoginfo.Builder setContractID(ContractID value)
       *
       A contract identifier.<br/>
       This refers to the contract that generated this log entry.
       
      .proto.ContractID contractID = 1;
    • setContractID

      public ContractLoginfo.Builder setContractID(ContractID.Builder builderForValue)
       *
       A contract identifier.<br/>
       This refers to the contract that generated this log entry.
       
      .proto.ContractID contractID = 1;
    • mergeContractID

      public ContractLoginfo.Builder mergeContractID(ContractID value)
       *
       A contract identifier.<br/>
       This refers to the contract that generated this log entry.
       
      .proto.ContractID contractID = 1;
    • clearContractID

      public ContractLoginfo.Builder clearContractID()
       *
       A contract identifier.<br/>
       This refers to the contract that generated this log entry.
       
      .proto.ContractID contractID = 1;
    • getBloom

      public com.google.protobuf.ByteString getBloom()
       *
       A bloom filter.<br/>
       This filter applies to this log entry and indexes the contract log data
       in the full data of the Ethereum block.<br/>
       EIP-7668 proposes to remove bloom filters as they are quite low value
       in practice and separate indexing services are more effective.
       
      bytes bloom = 2;
      Specified by:
      getBloom in interface ContractLoginfoOrBuilder
      Returns:
      The bloom.
    • setBloom

      public ContractLoginfo.Builder setBloom(com.google.protobuf.ByteString value)
       *
       A bloom filter.<br/>
       This filter applies to this log entry and indexes the contract log data
       in the full data of the Ethereum block.<br/>
       EIP-7668 proposes to remove bloom filters as they are quite low value
       in practice and separate indexing services are more effective.
       
      bytes bloom = 2;
      Parameters:
      value - The bloom to set.
      Returns:
      This builder for chaining.
    • clearBloom

      public ContractLoginfo.Builder clearBloom()
       *
       A bloom filter.<br/>
       This filter applies to this log entry and indexes the contract log data
       in the full data of the Ethereum block.<br/>
       EIP-7668 proposes to remove bloom filters as they are quite low value
       in practice and separate indexing services are more effective.
       
      bytes bloom = 2;
      Returns:
      This builder for chaining.
    • getTopicList

      public List<com.google.protobuf.ByteString> getTopicList()
       *
       A list of the "topics" in this log entry.<br/>
       The EVM permits up to 4 topics, each of which is 32 bytes (one EVM word).
       <p>
       The first "topic" is special, and MUST contain the keccak256 hash of the
       event signature, if the event is not anonymous.
       
      repeated bytes topic = 3;
      Specified by:
      getTopicList in interface ContractLoginfoOrBuilder
      Returns:
      A list containing the topic.
    • getTopicCount

      public int getTopicCount()
       *
       A list of the "topics" in this log entry.<br/>
       The EVM permits up to 4 topics, each of which is 32 bytes (one EVM word).
       <p>
       The first "topic" is special, and MUST contain the keccak256 hash of the
       event signature, if the event is not anonymous.
       
      repeated bytes topic = 3;
      Specified by:
      getTopicCount in interface ContractLoginfoOrBuilder
      Returns:
      The count of topic.
    • getTopic

      public com.google.protobuf.ByteString getTopic(int index)
       *
       A list of the "topics" in this log entry.<br/>
       The EVM permits up to 4 topics, each of which is 32 bytes (one EVM word).
       <p>
       The first "topic" is special, and MUST contain the keccak256 hash of the
       event signature, if the event is not anonymous.
       
      repeated bytes topic = 3;
      Specified by:
      getTopic in interface ContractLoginfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The topic at the given index.
    • setTopic

      public ContractLoginfo.Builder setTopic(int index, com.google.protobuf.ByteString value)
       *
       A list of the "topics" in this log entry.<br/>
       The EVM permits up to 4 topics, each of which is 32 bytes (one EVM word).
       <p>
       The first "topic" is special, and MUST contain the keccak256 hash of the
       event signature, if the event is not anonymous.
       
      repeated bytes topic = 3;
      Parameters:
      value - The topic to set.
      Returns:
      This builder for chaining.
    • addTopic

      public ContractLoginfo.Builder addTopic(com.google.protobuf.ByteString value)
       *
       A list of the "topics" in this log entry.<br/>
       The EVM permits up to 4 topics, each of which is 32 bytes (one EVM word).
       <p>
       The first "topic" is special, and MUST contain the keccak256 hash of the
       event signature, if the event is not anonymous.
       
      repeated bytes topic = 3;
      Parameters:
      value - The topic to add.
      Returns:
      This builder for chaining.
    • addAllTopic

      public ContractLoginfo.Builder addAllTopic(Iterable<? extends com.google.protobuf.ByteString> values)
       *
       A list of the "topics" in this log entry.<br/>
       The EVM permits up to 4 topics, each of which is 32 bytes (one EVM word).
       <p>
       The first "topic" is special, and MUST contain the keccak256 hash of the
       event signature, if the event is not anonymous.
       
      repeated bytes topic = 3;
      Parameters:
      values - The topic to add.
      Returns:
      This builder for chaining.
    • clearTopic

      public ContractLoginfo.Builder clearTopic()
       *
       A list of the "topics" in this log entry.<br/>
       The EVM permits up to 4 topics, each of which is 32 bytes (one EVM word).
       <p>
       The first "topic" is special, and MUST contain the keccak256 hash of the
       event signature, if the event is not anonymous.
       
      repeated bytes topic = 3;
      Returns:
      This builder for chaining.
    • getData

      public com.google.protobuf.ByteString getData()
       *
       Event data for this log entry.<br/>
       This is binary data consisting of an arbitrary number of 256 bit
       (32 byte) words. The content of that data is determined by the smart
       contract code.<br/>
       
      bytes data = 4;
      Specified by:
      getData in interface ContractLoginfoOrBuilder
      Returns:
      The data.
    • setData

      public ContractLoginfo.Builder setData(com.google.protobuf.ByteString value)
       *
       Event data for this log entry.<br/>
       This is binary data consisting of an arbitrary number of 256 bit
       (32 byte) words. The content of that data is determined by the smart
       contract code.<br/>
       
      bytes data = 4;
      Parameters:
      value - The data to set.
      Returns:
      This builder for chaining.
    • clearData

      public ContractLoginfo.Builder clearData()
       *
       Event data for this log entry.<br/>
       This is binary data consisting of an arbitrary number of 256 bit
       (32 byte) words. The content of that data is determined by the smart
       contract code.<br/>
       
      bytes data = 4;
      Returns:
      This builder for chaining.