@@ -26,13 +26,16 @@ public abstract class InitCodeView {
   public abstract List<FieldSettingView> fieldSettings();
 
   /** Used to hold information about the types used in method samples. */
-  public abstract List<ImportTypeView> imports();
+  public abstract ImportSectionView importSection();
 
   /**
    * The file name of the client library generated. This is used for import statements in samples.
    */
   public abstract String apiFileName();
 
+  /** The file name of the index file. */
+  public abstract String indexFileImportName();
+
   public static Builder newBuilder() {
     return new AutoValue_InitCodeView.Builder();
   }
/* Copyright 2016 Google Inc
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.google.api.codegen.viewmodel;

import com.google.auto.value.AutoValue;
import java.util.List;

@AutoValue
public abstract class InitCodeView {
  public abstract List<InitCodeLineView> lines();

  public abstract List<InitCodeLineView> topLevelLines();

  public abstract List<FieldSettingView> fieldSettings();

  /** Used to hold information about the types used in method samples. */
  public abstract List<ImportTypeView> imports();

  /**
   * The file name of the client library generated. This is used for import statements in samples.
   */
  public abstract String apiFileName();

  public static Builder newBuilder() {
    return new AutoValue_InitCodeView.Builder();
  }

  @AutoValue.Builder
  public abstract static class Builder {
    public abstract Builder lines(List<InitCodeLineView> val);

    public abstract Builder topLevelLines(List<InitCodeLineView> val);

    public abstract Builder fieldSettings(List<FieldSettingView> val);

    public abstract Builder imports(List<ImportTypeView> aliasingTypesMap);

    public abstract Builder apiFileName(String apiFileName);

    public abstract InitCodeView build();
  }
}

I think 'versionIndexFileName' is better since if we use 'ImportName', it feels that this should be part of ImportSectionView