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

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

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

Timestamp.getDefaultInstance介绍

暂无

代码示例

代码示例来源:origin: com.google.protobuf/protobuf-java

@java.lang.Override
public com.google.protobuf.Timestamp getDefaultInstanceForType() {
 return com.google.protobuf.Timestamp.getDefaultInstance();
}

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

/** <code>.google.protobuf.Timestamp timestamp_value = 5;</code> */
public com.google.protobuf.Timestamp getTimestampValue() {
 if (typeCase_ == 5) {
  return (com.google.protobuf.Timestamp) type_;
 }
 return com.google.protobuf.Timestamp.getDefaultInstance();
}
/** <code>.google.protobuf.Timestamp timestamp_value = 5;</code> */

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

/** <code>.google.protobuf.Timestamp timestamp_value = 5;</code> */
public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() {
 if (typeCase_ == 5) {
  return (com.google.protobuf.Timestamp) type_;
 }
 return com.google.protobuf.Timestamp.getDefaultInstance();
}

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

/**
 *
 *
 * <pre>
 * The time at which this operation failed or was completed successfully.
 * </pre>
 *
 * <code>.google.protobuf.Timestamp end_time = 4;</code>
 */
public com.google.protobuf.Timestamp getEndTime() {
 return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
}
/**

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

/**
 *
 *
 * <pre>
 * The time at which the commit occurred.
 * </pre>
 *
 * <code>.google.protobuf.Timestamp commit_time = 2;</code>
 */
public com.google.protobuf.Timestamp getCommitTime() {
 return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_;
}
/**

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

/**
 *
 *
 * <pre>
 * Beginning of the lifetime of this deployment.
 * </pre>
 *
 * <code>.google.protobuf.Timestamp deploy_time = 2;</code>
 */
public com.google.protobuf.Timestamp getDeployTime() {
 return deployTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deployTime_;
}
/**

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

/**
 *
 *
 * <pre>
 * Time when the request was received.
 * </pre>
 *
 * <code>.google.protobuf.Timestamp start_time = 3;</code>
 */
public com.google.protobuf.Timestamp getStartTime() {
 return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
/**

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

/**
 *
 *
 * <pre>
 * Output only. The time the instance was created.
 * </pre>
 *
 * <code>.google.protobuf.Timestamp create_time = 13;</code>
 */
public com.google.protobuf.Timestamp getCreateTime() {
 return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
/**

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

/**
 *
 *
 * <pre>
 * When the change occurred.
 * </pre>
 *
 * <code>.google.protobuf.Timestamp mutate_time = 1;</code>
 */
public com.google.protobuf.Timestamp getMutateTime() {
 return mutateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : mutateTime_;
}
/**

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

/**
 *
 *
 * <pre>
 * End time of the span in nanoseconds from the UNIX epoch.
 * </pre>
 *
 * <code>.google.protobuf.Timestamp end_time = 5;</code>
 */
public com.google.protobuf.Timestamp getEndTime() {
 return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
}
/**

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

/**
 *
 *
 * <pre>
 * Time when the request was received.
 * </pre>
 *
 * <code>.google.protobuf.Timestamp start_time = 3;</code>
 */
public com.google.protobuf.Timestamp getStartTime() {
 return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
/**

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

/**
 *
 *
 * <pre>
 * Time used for executing the groupBy request.
 * </pre>
 *
 * <code>.google.protobuf.Timestamp read_time = 2;</code>
 */
public com.google.protobuf.Timestamp getReadTime() {
 return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
}
/**

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

/**
 *
 *
 * <pre>
 * The time when the batch request was submitted to the server.
 * </pre>
 *
 * <code>.google.protobuf.Timestamp submit_time = 2;</code>
 */
public com.google.protobuf.Timestamp getSubmitTime() {
 return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_;
}
/**

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

/**
 *
 *
 * <pre>
 * The time at which the asset was created in Cloud SCC.
 * </pre>
 *
 * <code>.google.protobuf.Timestamp create_time = 9;</code>
 */
public com.google.protobuf.Timestamp getCreateTime() {
 return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
/**

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

/** <code>.google.protobuf.Timestamp timestamp_value = 5;</code> */
public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() {
 if ((typeCase_ == 5) && (timestampValueBuilder_ != null)) {
  return timestampValueBuilder_.getMessageOrBuilder();
 } else {
  if (typeCase_ == 5) {
   return (com.google.protobuf.Timestamp) type_;
  }
  return com.google.protobuf.Timestamp.getDefaultInstance();
 }
}
/** <code>.google.protobuf.Timestamp timestamp_value = 5;</code> */

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

/** <code>.google.protobuf.Timestamp read_time = 3;</code> */
public com.google.protobuf.Timestamp getReadTime() {
 return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
}
/** <code>.google.protobuf.Timestamp read_time = 3;</code> */

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

/** <code>.google.protobuf.Timestamp read_time = 3;</code> */
public com.google.protobuf.Timestamp getReadTime() {
 if (readTimeBuilder_ == null) {
  return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
 } else {
  return readTimeBuilder_.getMessage();
 }
}
/** <code>.google.protobuf.Timestamp read_time = 3;</code> */

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

/** <code>.google.protobuf.Timestamp read_time = 3;</code> */
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
 if (readTimeBuilder_ != null) {
  return readTimeBuilder_.getMessageOrBuilder();
 } else {
  return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
 }
}
/** <code>.google.protobuf.Timestamp read_time = 3;</code> */

代码示例来源:origin: com.google.protobuf/protobuf-java

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());
 }
 this.mergeUnknownFields(other.unknownFields);
 onChanged();
 return this;
}

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

private ListenResponse snapshot() {
 ListenResponse.Builder response = ListenResponse.newBuilder();
 response.setTargetChange(
   TargetChange.newBuilder()
     .setTargetChangeType(TargetChangeType.NO_CHANGE)
     .setReadTime(Timestamp.getDefaultInstance())
     .setResumeToken(RESUME_TOKEN));
 return response.build();
}

相关文章