code: public GVRAnimation setRepeatMode(int repeatMode) {
          if (GVRRepeatMode.invalidRepeatMode(repeatMode)) {
              throw new IllegalArgumentException(repeatMode
                      + " is not a valid repetition type");
          }
          mRepeatMode = repeatMode;
          return this;
      }
docs: Set the repeat type.
  
  In the default {@linkplain GVRRepeatMode#ONCE run-once} mode, animations
  run once, ignoring the {@linkplain #getRepeatCount() repeat count.} In
  {@linkplain GVRRepeatMode#PINGPONG ping pong} and
  {@linkplain GVRRepeatMode#REPEATED repeated} modes, animations do honor
  the repeat count, which {@linkplain #DEFAULT_REPEAT_COUNT defaults} to 2.
  
  @param repeatMode
  One of the {@link GVRRepeatMode} constants
  @return {@code this}, so you can chain setProperty() calls.
  @throws IllegalArgumentException
  If {@code repetitionType} is not one of the
  {@link GVRRepeatMode} constants