Class TimestampSeconds.Builder

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

public static final class TimestampSeconds.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<TimestampSeconds,TimestampSeconds.Builder> implements TimestampSecondsOrBuilder
 *
 An exact date and time, with a resolution of one second.
 
Protobuf type proto.TimestampSeconds
  • Field Summary

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

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    * The number of complete seconds since the start of the epoch.
    long
    * The number of complete seconds since the start of the epoch.
    setSeconds(long value)
    * The number of complete seconds since the start of the epoch.

    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

    • getSeconds

      public long getSeconds()
       *
       The number of complete seconds since the start of the epoch.
       <p>
       For this purpose, `epoch` SHALL be the UNIX epoch with 0
       at `1970-01-01T00:00:00.000Z`.<br/>
       This value MUST be greater than 0.<br/>
       This value SHOULD be strictly greater than `946684800`.
       
      int64 seconds = 1;
      Specified by:
      getSeconds in interface TimestampSecondsOrBuilder
      Returns:
      The seconds.
    • setSeconds

      public TimestampSeconds.Builder setSeconds(long value)
       *
       The number of complete seconds since the start of the epoch.
       <p>
       For this purpose, `epoch` SHALL be the UNIX epoch with 0
       at `1970-01-01T00:00:00.000Z`.<br/>
       This value MUST be greater than 0.<br/>
       This value SHOULD be strictly greater than `946684800`.
       
      int64 seconds = 1;
      Parameters:
      value - The seconds to set.
      Returns:
      This builder for chaining.
    • clearSeconds

      public TimestampSeconds.Builder clearSeconds()
       *
       The number of complete seconds since the start of the epoch.
       <p>
       For this purpose, `epoch` SHALL be the UNIX epoch with 0
       at `1970-01-01T00:00:00.000Z`.<br/>
       This value MUST be greater than 0.<br/>
       This value SHOULD be strictly greater than `946684800`.
       
      int64 seconds = 1;
      Returns:
      This builder for chaining.