@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (java.lang.Double.doubleToRawLongBits(samplingRatio_) != 0) {
      output.writeDouble(1, samplingRatio_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Specifies the fraction of operations to write to
[Stackdriver Logging](https://cloud.google.com/logging/docs/).
This field may contain any value between 0.0 and 1.0, inclusive.
0.0 is the default and means that no operations are logged.
</pre>

<code>double sampling_ratio = 1;</code>

@return The samplingRatio.
java-tasks/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/StackdriverLoggingConfig.java