examples/bq-remote-function/string_formatter/src/main/java/com/google/cloud/pso/bqremotefunc/util/UserDefinedContext.java
<filename>examples/bq-remote-function/string_formatter/src/main/java/com/google/cloud/pso/bqremotefunc/util/UserDefinedContext.javapackage com.google.cloud.pso.bqremotefunc.util;

import com.fasterxml.jackson.annotation.*;
import java.util.HashMap;
import java.util.Map;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({"key1", "key2"})
public class UserDefinedContext {
  @JsonProperty("key1")
  private String key1;

  @JsonProperty("key2")
  private String key2;

  @JsonIgnore private Map<String, Object> additionalProperties = new HashMap<String, Object>();

  @JsonProperty("key1")
  public String getKey1() {
    return key1;
  }

  @JsonProperty("key1")
  public void setKey1(String key1) {
    this.key1 = key1;
  }

  @JsonProperty("key2")
  public String getKey2() {
    return key2;
  }

  @JsonProperty("key2")
  public void setKey2(String key2) {
    this.key2 = key2;
  }

  @JsonAnyGetter
  public Map<String, Object> getAdditionalProperties() {
    return this.additionalProperties;
  }

  @JsonAnySetter
  public void setAdditionalProperty(String name, Object value) {
    this.additionalProperties.put(name, value);
  }
}
