public int getLocationsCount() {
      return locations_.size();
    }
<code>repeated string locations = 1;</code>

@return The count of locations.
java-storageinsights/proto-google-cloud-storageinsights-v1/src/main/java/com/google/cloud/storageinsights/v1/DatasetConfig.java