public com.google.cloud.automl.v1beta1.TimestampStats.GranularStats getGranularStatsOrDefault(
      java.lang.String key,
      com.google.cloud.automl.v1beta1.TimestampStats.GranularStats defaultValue) {
    if (key == null) {
      throw new java.lang.NullPointerException();
    }
    java.util.Map<java.lang.String, com.google.cloud.automl.v1beta1.TimestampStats.GranularStats>
        map = internalGetGranularStats().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
public com . google . cloud . automl . v1beta1 . TimestampStats . GranularStats getGranularStatsOrDefault ( java . lang . String key , com . google . cloud . automl . v1beta1 . TimestampStats . GranularStats defaultValue ) { if ( key == null ) { throw new java . lang . NullPointerException ( ) ; } java . util . Map < java . lang . String , com . google . cloud . automl . v1beta1 . TimestampStats . GranularStats > map = internalGetGranularStats ( ) . getMap ( ) ; return map . containsKey ( key ) ? map . get ( key ) : defaultValue ; }
<pre>
The string key is the pre-defined granularity. Currently supported:
hour_of_day, day_of_week, month_of_year.
Granularities finer that the granularity of timestamp data are not
populated (e.g. if timestamps are at day granularity, then hour_of_day
is not populated).
</pre>

<code>
map&lt;string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats&gt; granular_stats = 1;
</code>