@@ -0,0 +1,1782 @@
+/*%0A * Copyright 2020 Google LLC%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     https://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.google.android.gnd.ui.editobservation;%0A%0Aimport android.content.Context;%0Aimport com.google.android.gnd.model.form.MultipleChoice;%0Aimport com.google.android.gnd.model.observation.Response;%0Aimport com.google.auto.value.AutoValue;%0Aimport java8.util.Optional;%0Aimport java8.util.function.Consumer;%0A%0A@AutoValue%0Apublic abstract class SelectDialogFactory %7B%0A%0A  public static Builder builder() %7B%0A    return new AutoValue_SelectDialogFactory.Builder();%0A  %7D%0A%0A  public abstract Context getContext();%0A%0A  public abstract String getTitle();%0A%0A  public abstract MultipleChoice getMultipleChoice();%0A%0A  public abstract Optional%3CResponse%3E getCurrentValue();%0A%0A  public abstract Consumer%3COptional%3CResponse%3E%3E getValueConsumer();%0A%0A  @AutoValue.Builder%0A  public abstract static class Builder %7B%0A%0A    public abstract Builder setContext(Context context);%0A%0A    public abstract Builder setTitle(String title);%0A%0A    public abstract Builder setMultipleChoice(MultipleChoice multipleChoice);%0A%0A    public abstract Builder setCurrentValue(Optional%3CResponse%3E response);%0A%0A    public abstract Builder setValueConsumer(Consumer%3COptional%3CResponse%3E%3E consumer);%0A%0A    public abstract SelectDialogFactory build();%0A  %7D%0A%7D%0A

Add abstract builder for select dialogs