/*
 * Oceanengine Open Api
 * 巨量引擎开放平台 Open Api
 *
 * The version of the OpenAPI document: 1.1.19
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.bytedance.ads.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.annotations.SerializedName;

import java.io.IOException;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;

/**
 * 
 */
@JsonAdapter(ProjectUpdateV30AudienceAndroidOsv.Adapter.class)
public enum ProjectUpdateV30AudienceAndroidOsv {
  
  Enum_0_0("0.0"),
  
  Enum_10_0("10.0"),
  
  Enum_10_1("10.1"),
  
  Enum_11_0("11.0"),
  
  Enum_2_0("2.0"),
  
  Enum_2_1("2.1"),
  
  Enum_2_2("2.2"),
  
  Enum_2_3("2.3"),
  
  Enum_3_0("3.0"),
  
  Enum_3_1("3.1"),
  
  Enum_3_2("3.2"),
  
  Enum_4_0("4.0"),
  
  Enum_4_1("4.1"),
  
  Enum_4_2("4.2"),
  
  Enum_4_3("4.3"),
  
  Enum_4_4("4.4"),
  
  Enum_4_5("4.5"),
  
  Enum_5_0("5.0"),
  
  Enum_5_1("5.1"),
  
  Enum_6_0("6.0"),
  
  Enum_7_0("7.0"),
  
  Enum_7_1("7.1"),
  
  Enum_8_0("8.0"),
  
  Enum_8_1("8.1"),
  
  Enum_9_0("9.0"),
  
  NONE("NONE");

  private String value;

  ProjectUpdateV30AudienceAndroidOsv(String value) {
    this.value = value;
  }

  public String getValue() {
    return value;
  }

  @Override
  public String toString() {
    return String.valueOf(value);
  }

  public static ProjectUpdateV30AudienceAndroidOsv fromValue(String value) {
    for (ProjectUpdateV30AudienceAndroidOsv b : ProjectUpdateV30AudienceAndroidOsv.values()) {
      if (b.value.equals(value)) {
        return b;
      }
    }
    throw new IllegalArgumentException("Unexpected value '" + value + "'");
  }

  public static class Adapter extends TypeAdapter<ProjectUpdateV30AudienceAndroidOsv> {
    @Override
    public void write(final JsonWriter jsonWriter, final ProjectUpdateV30AudienceAndroidOsv enumeration) throws IOException {
      jsonWriter.value(enumeration.getValue());
    }

    @Override
    public ProjectUpdateV30AudienceAndroidOsv read(final JsonReader jsonReader) throws IOException {
      String value = jsonReader.nextString();
      return ProjectUpdateV30AudienceAndroidOsv.fromValue(value);
    }
  }
}

