public com.google.api.MonitoredResource getResource() {
    return resource_ == null ? com.google.api.MonitoredResource.getDefaultInstance() : resource_;
  }
public com . google . api . MonitoredResource getResource ( ) { return resource_ == null ? com . google . api . MonitoredResource . getDefaultInstance ( ) : resource_ ; }
<pre>
Required. The primary monitored resource associated with this log entry.
Example: a log entry that reports a database error would be
associated with the monitored resource designating the particular
database that reported the error.
</pre>

<code>.google.api.MonitoredResource resource = 8;</code>