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

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

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

Timestamp.hashCode介绍

暂无

代码示例

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

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 switch (consistencySelectorCase_) {
  case 2:
   hash = (37 * hash) + READ_TIME_FIELD_NUMBER;
   hash = (53 * hash) + getReadTime().hashCode();
   break;
  case 0:
  default:
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

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

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 if (hasCommitTimestamp()) {
  hash = (37 * hash) + COMMIT_TIMESTAMP_FIELD_NUMBER;
  hash = (53 * hash) + getCommitTimestamp().hashCode();
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

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

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 if (hasSnapshotTime()) {
  hash = (37 * hash) + SNAPSHOT_TIME_FIELD_NUMBER;
  hash = (53 * hash) + getSnapshotTime().hashCode();
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

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

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + ACCESS_TOKEN_FIELD_NUMBER;
 hash = (53 * hash) + getAccessToken().hashCode();
 if (hasExpireTime()) {
  hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER;
  hash = (53 * hash) + getExpireTime().hashCode();
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

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

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + NAME_FIELD_NUMBER;
 hash = (53 * hash) + getName().hashCode();
 if (hasScheduleTime()) {
  hash = (37 * hash) + SCHEDULE_TIME_FIELD_NUMBER;
  hash = (53 * hash) + getScheduleTime().hashCode();
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

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

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + CODE_FIELD_NUMBER;
 hash = (53 * hash) + getCode().hashCode();
 if (hasExpireTime()) {
  hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER;
  hash = (53 * hash) + getExpireTime().hashCode();
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

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

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + ID_FIELD_NUMBER;
 hash = (53 * hash) + getId().hashCode();
 if (hasReadTimestamp()) {
  hash = (37 * hash) + READ_TIMESTAMP_FIELD_NUMBER;
  hash = (53 * hash) + getReadTimestamp().hashCode();
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

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

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + ACCESS_TOKEN_FIELD_NUMBER;
 hash = (53 * hash) + getAccessToken().hashCode();
 if (hasExpireTime()) {
  hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER;
  hash = (53 * hash) + getExpireTime().hashCode();
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

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

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + NAME_FIELD_NUMBER;
 hash = (53 * hash) + getName().hashCode();
 if (hasCreateTime()) {
  hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
  hash = (53 * hash) + getCreateTime().hashCode();
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

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

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + NAME_FIELD_NUMBER;
 hash = (53 * hash) + getName().hashCode();
 if (hasCreateTime()) {
  hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
  hash = (53 * hash) + getCreateTime().hashCode();
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

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

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 if (hasMutateTime()) {
  hash = (37 * hash) + MUTATE_TIME_FIELD_NUMBER;
  hash = (53 * hash) + getMutateTime().hashCode();
 }
 hash = (37 * hash) + MUTATED_BY_FIELD_NUMBER;
 hash = (53 * hash) + getMutatedBy().hashCode();
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

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

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 if (hasUpdateTime()) {
  hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
  hash = (53 * hash) + getUpdateTime().hashCode();
 }
 hash = (37 * hash) + BINARY_DATA_FIELD_NUMBER;
 hash = (53 * hash) + getBinaryData().hashCode();
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

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

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + NAME_FIELD_NUMBER;
 hash = (53 * hash) + getName().hashCode();
 if (hasExpireTime()) {
  hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER;
  hash = (53 * hash) + getExpireTime().hashCode();
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

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

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + NAME_FIELD_NUMBER;
 hash = (53 * hash) + getName().hashCode();
 hash = (37 * hash) + STATE_FIELD_NUMBER;
 hash = (53 * hash) + state_;
 if (hasStartTime()) {
  hash = (37 * hash) + START_TIME_FIELD_NUMBER;
  hash = (53 * hash) + getStartTime().hashCode();
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

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

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + NAME_FIELD_NUMBER;
 hash = (53 * hash) + getName().hashCode();
 if (hasScheduleTime()) {
  hash = (37 * hash) + SCHEDULE_TIME_FIELD_NUMBER;
  hash = (53 * hash) + getScheduleTime().hashCode();
 }
 hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER;
 hash = (53 * hash) + responseView_;
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

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

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 if (hasMessageTime()) {
  hash = (37 * hash) + MESSAGE_TIME_FIELD_NUMBER;
  hash = (53 * hash) + getMessageTime().hashCode();
 }
 hash = (37 * hash) + SEVERITY_FIELD_NUMBER;
 hash = (53 * hash) + severity_;
 hash = (37 * hash) + MESSAGE_TEXT_FIELD_NUMBER;
 hash = (53 * hash) + getMessageText().hashCode();
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

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

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 if (hasScheduleTime()) {
  hash = (37 * hash) + SCHEDULE_TIME_FIELD_NUMBER;
  hash = (53 * hash) + getScheduleTime().hashCode();
 }
 hash = (37 * hash) + INTERVAL_DURATION_DAYS_FIELD_NUMBER;
 hash = (53 * hash) + getIntervalDurationDays();
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

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

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 if (getWriteResultsCount() > 0) {
  hash = (37 * hash) + WRITE_RESULTS_FIELD_NUMBER;
  hash = (53 * hash) + getWriteResultsList().hashCode();
 }
 if (hasCommitTime()) {
  hash = (37 * hash) + COMMIT_TIME_FIELD_NUMBER;
  hash = (53 * hash) + getCommitTime().hashCode();
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

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

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 if (getWriteResultsCount() > 0) {
  hash = (37 * hash) + WRITE_RESULTS_FIELD_NUMBER;
  hash = (53 * hash) + getWriteResultsList().hashCode();
 }
 if (hasCommitTime()) {
  hash = (37 * hash) + COMMIT_TIME_FIELD_NUMBER;
  hash = (53 * hash) + getCommitTime().hashCode();
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

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

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 if (hasUpdateTime()) {
  hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
  hash = (53 * hash) + getUpdateTime().hashCode();
 }
 if (getTransformResultsCount() > 0) {
  hash = (37 * hash) + TRANSFORM_RESULTS_FIELD_NUMBER;
  hash = (53 * hash) + getTransformResultsList().hashCode();
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

相关文章