@java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.tasks.v2.StackdriverLoggingConfig)) {
      return super.equals(obj);
    }
    com.google.cloud.tasks.v2.StackdriverLoggingConfig other =
        (com.google.cloud.tasks.v2.StackdriverLoggingConfig) obj;

    if (java.lang.Double.doubleToLongBits(getSamplingRatio())
        != java.lang.Double.doubleToLongBits(other.getSamplingRatio())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<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