Class WrapsMessageDetails.Builder

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

public static final class WrapsMessageDetails.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<WrapsMessageDetails,WrapsMessageDetails.Builder> implements WrapsMessageDetailsOrBuilder
 *
 A message published by a node during a WRAPS proof construction.
 
Protobuf type com.hedera.hapi.node.state.history.WrapsMessageDetails
  • Method Details

    • hasPublicationTime

      public boolean hasPublicationTime()
       *
       The time at which the message was published.
       
      .proto.Timestamp publication_time = 1;
      Specified by:
      hasPublicationTime in interface WrapsMessageDetailsOrBuilder
      Returns:
      Whether the publicationTime field is set.
    • getPublicationTime

      public Timestamp getPublicationTime()
       *
       The time at which the message was published.
       
      .proto.Timestamp publication_time = 1;
      Specified by:
      getPublicationTime in interface WrapsMessageDetailsOrBuilder
      Returns:
      The publicationTime.
    • setPublicationTime

      public WrapsMessageDetails.Builder setPublicationTime(Timestamp value)
       *
       The time at which the message was published.
       
      .proto.Timestamp publication_time = 1;
    • setPublicationTime

      public WrapsMessageDetails.Builder setPublicationTime(Timestamp.Builder builderForValue)
       *
       The time at which the message was published.
       
      .proto.Timestamp publication_time = 1;
    • mergePublicationTime

      public WrapsMessageDetails.Builder mergePublicationTime(Timestamp value)
       *
       The time at which the message was published.
       
      .proto.Timestamp publication_time = 1;
    • clearPublicationTime

      public WrapsMessageDetails.Builder clearPublicationTime()
       *
       The time at which the message was published.
       
      .proto.Timestamp publication_time = 1;
    • getPhaseValue

      public int getPhaseValue()
       *
       The phase of the construction the message applies to.
       
      .com.hedera.hapi.node.state.history.WrapsPhase phase = 2;
      Specified by:
      getPhaseValue in interface WrapsMessageDetailsOrBuilder
      Returns:
      The enum numeric value on the wire for phase.
    • setPhaseValue

      public WrapsMessageDetails.Builder setPhaseValue(int value)
       *
       The phase of the construction the message applies to.
       
      .com.hedera.hapi.node.state.history.WrapsPhase phase = 2;
      Parameters:
      value - The phase to set.
      Returns:
      This builder for chaining.
      Throws:
      IllegalArgumentException - if UNRECOGNIZED is provided.
    • getPhase

      public WrapsPhase getPhase()
       *
       The phase of the construction the message applies to.
       
      .com.hedera.hapi.node.state.history.WrapsPhase phase = 2;
      Specified by:
      getPhase in interface WrapsMessageDetailsOrBuilder
      Returns:
      The phase.
    • setPhase

      public WrapsMessageDetails.Builder setPhase(WrapsPhase value)
       *
       The phase of the construction the message applies to.
       
      .com.hedera.hapi.node.state.history.WrapsPhase phase = 2;
      Parameters:
      value - The enum numeric value on the wire for phase to set.
      Returns:
      This builder for chaining.
    • clearPhase

      public WrapsMessageDetails.Builder clearPhase()
       *
       The phase of the construction the message applies to.
       
      .com.hedera.hapi.node.state.history.WrapsPhase phase = 2;
      Returns:
      This builder for chaining.
    • getMessage

      public com.google.protobuf.ByteString getMessage()
       *
       The message itself.
       
      bytes message = 3;
      Specified by:
      getMessage in interface WrapsMessageDetailsOrBuilder
      Returns:
      The message.
    • setMessage

      public WrapsMessageDetails.Builder setMessage(com.google.protobuf.ByteString value)
       *
       The message itself.
       
      bytes message = 3;
      Parameters:
      value - The message to set.
      Returns:
      This builder for chaining.
    • clearMessage

      public WrapsMessageDetails.Builder clearMessage()
       *
       The message itself.
       
      bytes message = 3;
      Returns:
      This builder for chaining.