com.google.protobuf.Timestamp.equals()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(13.7k)|赞(0)|评价(0)|浏览(141)

本文整理了Java中com.google.protobuf.Timestamp.equals()方法的一些代码示例,展示了Timestamp.equals()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Timestamp.equals()方法的具体详情如下:
包路径:com.google.protobuf.Timestamp
类名称:Timestamp
方法名:equals

Timestamp.equals介绍

暂无

代码示例

代码示例来源:origin: googleapis/google-cloud-java

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof com.google.spanner.v1.CommitResponse)) {
  return super.equals(obj);
 }
 com.google.spanner.v1.CommitResponse other = (com.google.spanner.v1.CommitResponse) obj;
 boolean result = true;
 result = result && (hasCommitTimestamp() == other.hasCommitTimestamp());
 if (hasCommitTimestamp()) {
  result = result && getCommitTimestamp().equals(other.getCommitTimestamp());
 }
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}

代码示例来源:origin: googleapis/google-cloud-java

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj
   instanceof
   com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers)) {
  return super.equals(obj);
 }
 com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers other =
   (com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers) obj;
 boolean result = true;
 result = result && (hasSnapshotTime() == other.hasSnapshotTime());
 if (hasSnapshotTime()) {
  result = result && getSnapshotTime().equals(other.getSnapshotTime());
 }
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}

代码示例来源:origin: googleapis/google-cloud-java

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof com.google.monitoring.v3.MutationRecord)) {
  return super.equals(obj);
 }
 com.google.monitoring.v3.MutationRecord other = (com.google.monitoring.v3.MutationRecord) obj;
 boolean result = true;
 result = result && (hasMutateTime() == other.hasMutateTime());
 if (hasMutateTime()) {
  result = result && getMutateTime().equals(other.getMutateTime());
 }
 result = result && getMutatedBy().equals(other.getMutatedBy());
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}

代码示例来源:origin: googleapis/google-cloud-java

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof com.google.spanner.v1.Transaction)) {
  return super.equals(obj);
 }
 com.google.spanner.v1.Transaction other = (com.google.spanner.v1.Transaction) obj;
 boolean result = true;
 result = result && getId().equals(other.getId());
 result = result && (hasReadTimestamp() == other.hasReadTimestamp());
 if (hasReadTimestamp()) {
  result = result && getReadTimestamp().equals(other.getReadTimestamp());
 }
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}

代码示例来源:origin: googleapis/google-cloud-java

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof com.google.cloud.kms.v1.KeyRing)) {
  return super.equals(obj);
 }
 com.google.cloud.kms.v1.KeyRing other = (com.google.cloud.kms.v1.KeyRing) obj;
 boolean result = true;
 result = result && getName().equals(other.getName());
 result = result && (hasCreateTime() == other.hasCreateTime());
 if (hasCreateTime()) {
  result = result && getCreateTime().equals(other.getCreateTime());
 }
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}

代码示例来源:origin: googleapis/google-cloud-java

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof com.google.cloud.iot.v1.DeviceState)) {
  return super.equals(obj);
 }
 com.google.cloud.iot.v1.DeviceState other = (com.google.cloud.iot.v1.DeviceState) obj;
 boolean result = true;
 result = result && (hasUpdateTime() == other.hasUpdateTime());
 if (hasUpdateTime()) {
  result = result && getUpdateTime().equals(other.getUpdateTime());
 }
 result = result && getBinaryData().equals(other.getBinaryData());
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}

代码示例来源:origin: googleapis/google-cloud-java

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof com.google.firestore.v1.CommitResponse)) {
  return super.equals(obj);
 }
 com.google.firestore.v1.CommitResponse other = (com.google.firestore.v1.CommitResponse) obj;
 boolean result = true;
 result = result && getWriteResultsList().equals(other.getWriteResultsList());
 result = result && (hasCommitTime() == other.hasCommitTime());
 if (hasCommitTime()) {
  result = result && getCommitTime().equals(other.getCommitTime());
 }
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}

代码示例来源:origin: googleapis/google-cloud-java

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof com.google.firestore.v1.WriteResult)) {
  return super.equals(obj);
 }
 com.google.firestore.v1.WriteResult other = (com.google.firestore.v1.WriteResult) obj;
 boolean result = true;
 result = result && (hasUpdateTime() == other.hasUpdateTime());
 if (hasUpdateTime()) {
  result = result && getUpdateTime().equals(other.getUpdateTime());
 }
 result = result && getTransformResultsList().equals(other.getTransformResultsList());
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}

代码示例来源:origin: googleapis/google-cloud-java

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof com.google.privacy.dlp.v2.StoredType)) {
  return super.equals(obj);
 }
 com.google.privacy.dlp.v2.StoredType other = (com.google.privacy.dlp.v2.StoredType) obj;
 boolean result = true;
 result = result && getName().equals(other.getName());
 result = result && (hasCreateTime() == other.hasCreateTime());
 if (hasCreateTime()) {
  result = result && getCreateTime().equals(other.getCreateTime());
 }
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}

代码示例来源:origin: googleapis/google-cloud-java

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof com.google.firestore.v1beta1.WriteResult)) {
  return super.equals(obj);
 }
 com.google.firestore.v1beta1.WriteResult other = (com.google.firestore.v1beta1.WriteResult) obj;
 boolean result = true;
 result = result && (hasUpdateTime() == other.hasUpdateTime());
 if (hasUpdateTime()) {
  result = result && getUpdateTime().equals(other.getUpdateTime());
 }
 result = result && getTransformResultsList().equals(other.getTransformResultsList());
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}

代码示例来源:origin: googleapis/google-cloud-java

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof com.google.firestore.v1beta1.CommitResponse)) {
  return super.equals(obj);
 }
 com.google.firestore.v1beta1.CommitResponse other =
   (com.google.firestore.v1beta1.CommitResponse) obj;
 boolean result = true;
 result = result && getWriteResultsList().equals(other.getWriteResultsList());
 result = result && (hasCommitTime() == other.hasCommitTime());
 if (hasCommitTime()) {
  result = result && getCommitTime().equals(other.getCommitTime());
 }
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}

代码示例来源:origin: googleapis/google-cloud-java

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof com.google.cloud.iam.credentials.v1.GenerateAccessTokenResponse)) {
  return super.equals(obj);
 }
 com.google.cloud.iam.credentials.v1.GenerateAccessTokenResponse other =
   (com.google.cloud.iam.credentials.v1.GenerateAccessTokenResponse) obj;
 boolean result = true;
 result = result && getAccessToken().equals(other.getAccessToken());
 result = result && (hasExpireTime() == other.hasExpireTime());
 if (hasExpireTime()) {
  result = result && getExpireTime().equals(other.getExpireTime());
 }
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}

代码示例来源:origin: googleapis/google-cloud-java

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest)) {
  return super.equals(obj);
 }
 com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest other =
   (com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest) obj;
 boolean result = true;
 result = result && getName().equals(other.getName());
 result = result && (hasExpireTime() == other.hasExpireTime());
 if (hasExpireTime()) {
  result = result && getExpireTime().equals(other.getExpireTime());
 }
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}

代码示例来源:origin: googleapis/google-cloud-java

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest)) {
  return super.equals(obj);
 }
 com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest other =
   (com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest) obj;
 boolean result = true;
 result = result && getName().equals(other.getName());
 result = result && (hasScheduleTime() == other.hasScheduleTime());
 if (hasScheduleTime()) {
  result = result && getScheduleTime().equals(other.getScheduleTime());
 }
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}

代码示例来源:origin: googleapis/google-cloud-java

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse)) {
  return super.equals(obj);
 }
 com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse other =
   (com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse) obj;
 boolean result = true;
 result = result && getCode().equals(other.getCode());
 result = result && (hasExpireTime() == other.hasExpireTime());
 if (hasExpireTime()) {
  result = result && getExpireTime().equals(other.getExpireTime());
 }
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}

代码示例来源:origin: googleapis/google-cloud-java

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof com.google.firestore.v1.DocumentRemove)) {
  return super.equals(obj);
 }
 com.google.firestore.v1.DocumentRemove other = (com.google.firestore.v1.DocumentRemove) obj;
 boolean result = true;
 result = result && getDocument().equals(other.getDocument());
 result = result && getRemovedTargetIdsList().equals(other.getRemovedTargetIdsList());
 result = result && (hasReadTime() == other.hasReadTime());
 if (hasReadTime()) {
  result = result && getReadTime().equals(other.getReadTime());
 }
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}

代码示例来源:origin: googleapis/google-cloud-java

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof com.google.firestore.v1.DocumentDelete)) {
  return super.equals(obj);
 }
 com.google.firestore.v1.DocumentDelete other = (com.google.firestore.v1.DocumentDelete) obj;
 boolean result = true;
 result = result && getDocument().equals(other.getDocument());
 result = result && getRemovedTargetIdsList().equals(other.getRemovedTargetIdsList());
 result = result && (hasReadTime() == other.hasReadTime());
 if (hasReadTime()) {
  result = result && getReadTime().equals(other.getReadTime());
 }
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}

代码示例来源:origin: googleapis/google-cloud-java

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof com.google.devtools.clouderrorreporting.v1beta1.ListEventsResponse)) {
  return super.equals(obj);
 }
 com.google.devtools.clouderrorreporting.v1beta1.ListEventsResponse other =
   (com.google.devtools.clouderrorreporting.v1beta1.ListEventsResponse) obj;
 boolean result = true;
 result = result && getErrorEventsList().equals(other.getErrorEventsList());
 result = result && getNextPageToken().equals(other.getNextPageToken());
 result = result && (hasTimeRangeBegin() == other.hasTimeRangeBegin());
 if (hasTimeRangeBegin()) {
  result = result && getTimeRangeBegin().equals(other.getTimeRangeBegin());
 }
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}

代码示例来源:origin: googleapis/google-cloud-java

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule)) {
  return super.equals(obj);
 }
 com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule other =
   (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) obj;
 boolean result = true;
 result = result && (hasScheduleTime() == other.hasScheduleTime());
 if (hasScheduleTime()) {
  result = result && getScheduleTime().equals(other.getScheduleTime());
 }
 result = result && (getIntervalDurationDays() == other.getIntervalDurationDays());
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}

代码示例来源:origin: googleapis/google-cloud-java

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof com.google.pubsub.v1.PubsubMessage)) {
  return super.equals(obj);
 }
 com.google.pubsub.v1.PubsubMessage other = (com.google.pubsub.v1.PubsubMessage) obj;
 boolean result = true;
 result = result && getData().equals(other.getData());
 result = result && internalGetAttributes().equals(other.internalGetAttributes());
 result = result && getMessageId().equals(other.getMessageId());
 result = result && (hasPublishTime() == other.hasPublishTime());
 if (hasPublishTime()) {
  result = result && getPublishTime().equals(other.getPublishTime());
 }
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}

相关文章