コード例 #1
0
 public com.google.protobuf.Timestamp buildPartial() {
   com.google.protobuf.Timestamp result = new com.google.protobuf.Timestamp(this);
   result.seconds_ = seconds_;
   result.nanos_ = nanos_;
   onBuilt();
   return result;
 }
コード例 #2
0
 public com.google.protobuf.Timestamp build() {
   com.google.protobuf.Timestamp result = buildPartial();
   if (!result.isInitialized()) {
     throw newUninitializedMessageException(result);
   }
   return result;
 }
コード例 #3
0
 public Builder mergeFrom(com.google.protobuf.Timestamp other) {
   if (other == com.google.protobuf.Timestamp.getDefaultInstance()) return this;
   if (other.getSeconds() != 0L) {
     setSeconds(other.getSeconds());
   }
   if (other.getNanos() != 0) {
     setNanos(other.getNanos());
   }
   onChanged();
   return this;
 }
コード例 #4
0
  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.protobuf.Timestamp)) {
      return super.equals(obj);
    }
    com.google.protobuf.Timestamp other = (com.google.protobuf.Timestamp) obj;

    boolean result = true;
    result = result && (getSeconds() == other.getSeconds());
    result = result && (getNanos() == other.getNanos());
    return result;
  }
コード例 #5
0
 public com.google.protobuf.Timestamp getDefaultInstanceForType() {
   return com.google.protobuf.Timestamp.getDefaultInstance();
 }