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

x33g5p2x  于2022-01-30 转载在 其他  
字(6.8k)|赞(0)|评价(0)|浏览(128)

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

Status.getDefaultInstance介绍

暂无

代码示例

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

/** <code>.google.rpc.Status details = 1;</code> */
public com.google.rpc.Status getDetails() {
 return details_ == null ? com.google.rpc.Status.getDefaultInstance() : details_;
}
/** <code>.google.rpc.Status details = 1;</code> */

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

/**
 *
 *
 * <pre>
 * The error that resulted in this change, if applicable.
 * </pre>
 *
 * <code>.google.rpc.Status cause = 3;</code>
 */
public com.google.rpc.Status getCause() {
 return cause_ == null ? com.google.rpc.Status.getDefaultInstance() : cause_;
}
/**

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

/**
 *
 *
 * <pre>
 * Specifies the status of the webhook request.
 * </pre>
 *
 * <code>.google.rpc.Status webhook_status = 4;</code>
 */
public com.google.rpc.Status getWebhookStatus() {
 return webhookStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : webhookStatus_;
}
/**

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

/**
 *
 *
 * <pre>
 * The error that resulted in this change, if applicable.
 * </pre>
 *
 * <code>.google.rpc.Status cause = 3;</code>
 */
public com.google.rpc.Status getCause() {
 return cause_ == null ? com.google.rpc.Status.getDefaultInstance() : cause_;
}
/**

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

/**
 *
 *
 * <pre>
 * The status of the requested write operation.
 * </pre>
 *
 * <code>.google.rpc.Status status = 2;</code>
 */
public com.google.rpc.Status getStatus() {
 return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
}
/**

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

/**
 *
 *
 * <pre>
 * An optional final status for this span.
 * </pre>
 *
 * <code>.google.rpc.Status status = 11;</code>
 */
public com.google.rpc.Status getStatus() {
 return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
}
/**

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

/**
 *
 *
 * <pre>
 * Status of the transfer run.
 * </pre>
 *
 * <code>.google.rpc.Status error_status = 21;</code>
 */
public com.google.rpc.Status getErrorStatus() {
 return errorStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : errorStatus_;
}
/**

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

/**
 *
 *
 * <pre>
 * Output only. The response from the target for the last attempted execution.
 * </pre>
 *
 * <code>.google.rpc.Status status = 11;</code>
 */
public com.google.rpc.Status getStatus() {
 return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
}
/**

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

/**
 *
 *
 * <pre>
 * Specifies the status of the webhook request.
 * </pre>
 *
 * <code>.google.rpc.Status webhook_status = 4;</code>
 */
public com.google.rpc.Status getWebhookStatus() {
 return webhookStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : webhookStatus_;
}
/**

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

/**
 *
 *
 * <pre>
 * Specifies the status of the webhook request. `webhook_status`
 * is never populated in webhook requests.
 * </pre>
 *
 * <code>.google.rpc.Status webhook_status = 3;</code>
 */
public com.google.rpc.Status getWebhookStatus() {
 return webhookStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : webhookStatus_;
}
/**

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

/**
 *
 *
 * <pre>
 * Output only. If set, indicates an error. Note that for a single
 * `AnnotateVideoRequest` some videos may succeed and some may fail.
 * </pre>
 *
 * <code>.google.rpc.Status error = 9;</code>
 */
public com.google.rpc.Status getError() {
 return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
}
/**

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

/**
 *
 *
 * <pre>
 * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
 * some videos may succeed and some may fail.
 * </pre>
 *
 * <code>.google.rpc.Status error = 9;</code>
 */
public com.google.rpc.Status getError() {
 return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
}
/**

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

/**
 *
 *
 * <pre>
 * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
 * some videos may succeed and some may fail.
 * </pre>
 *
 * <code>.google.rpc.Status error = 9;</code>
 */
public com.google.rpc.Status getError() {
 return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
}
/**

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

/**
 *
 *
 * <pre>
 * Specifies the status of the webhook request. `webhook_status`
 * is never populated in webhook requests.
 * </pre>
 *
 * <code>.google.rpc.Status webhook_status = 3;</code>
 */
public com.google.rpc.Status getWebhookStatus() {
 return webhookStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : webhookStatus_;
}
/**

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

/**
 *
 *
 * <pre>
 * Output only. If set, returns a [google.rpc.Status][google.rpc.Status] message that
 * specifies the error for the operation.
 * </pre>
 *
 * <code>.google.rpc.Status error = 1;</code>
 */
public com.google.rpc.Status getError() {
 return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
}
/**

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

/**
 *
 *
 * <pre>
 * *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that
 * specifies the error for the operation.
 * </pre>
 *
 * <code>.google.rpc.Status error = 1;</code>
 */
public com.google.rpc.Status getError() {
 return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
}
/**

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

/**
 *
 *
 * <pre>
 * Output only. If set, returns a [google.rpc.Status][google.rpc.Status] message that
 * specifies the error for the operation.
 * </pre>
 *
 * <code>.google.rpc.Status error = 1;</code>
 */
public com.google.rpc.Status getError() {
 return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
}
/**

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

/**
 *
 *
 * <pre>
 * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
 * some videos may succeed and some may fail.
 * </pre>
 *
 * <code>.google.rpc.Status error = 5;</code>
 */
public com.google.rpc.Status getError() {
 return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
}
/**

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

/** <code>.google.rpc.Status details = 1;</code> */
public com.google.rpc.Status getDetails() {
 if (detailsBuilder_ == null) {
  return details_ == null ? com.google.rpc.Status.getDefaultInstance() : details_;
 } else {
  return detailsBuilder_.getMessage();
 }
}
/** <code>.google.rpc.Status details = 1;</code> */

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

/** <code>.google.rpc.Status details = 1;</code> */
public com.google.rpc.StatusOrBuilder getDetailsOrBuilder() {
 if (detailsBuilder_ != null) {
  return detailsBuilder_.getMessageOrBuilder();
 } else {
  return details_ == null ? com.google.rpc.Status.getDefaultInstance() : details_;
 }
}
/** <code>.google.rpc.Status details = 1;</code> */

相关文章