com.google.api.services.bigquery.model.ErrorProto

Here are the examples of the java api class com.google.api.services.bigquery.model.ErrorProto taken from open source projects.

1. BigQueryError#toPb()

Project: gcloud-java
File: BigQueryError.java
ErrorProto toPb() {
    ErrorProto errorPb = new ErrorProto();
    if (reason != null) {
        errorPb.setReason(reason);
    }
    if (location != null) {
        errorPb.setLocation(location);
    }
    if (message != null) {
        errorPb.setMessage(message);
    }
    if (debugInfo != null) {
        errorPb.setDebugInfo(debugInfo);
    }
    return errorPb;
}