io.stigg.api.operations.ImportSubscriptionsBulkMutation Maven / Gradle / Ivy
//
// AUTO-GENERATED FILE. DO NOT MODIFY.
//
// This class was automatically generated by Apollo GraphQL version '3.8.2'.
//
package io.stigg.api.operations;
import com.apollographql.apollo3.api.Adapter;
import com.apollographql.apollo3.api.CompiledField;
import com.apollographql.apollo3.api.CustomScalarAdapters;
import com.apollographql.apollo3.api.Mutation;
import com.apollographql.apollo3.api.ObjectAdapter;
import com.apollographql.apollo3.api.json.JsonWriter;
import io.stigg.api.operations.adapter.ImportSubscriptionsBulkMutation_ResponseAdapter;
import io.stigg.api.operations.adapter.ImportSubscriptionsBulkMutation_VariablesAdapter;
import io.stigg.api.operations.selections.ImportSubscriptionsBulkMutationSelections;
import io.stigg.api.operations.type.ImportSubscriptionsBulkInput;
import java.io.IOException;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
public class ImportSubscriptionsBulkMutation implements Mutation {
public static final String OPERATION_ID = "db16eea1862f7e1c1dd9764e2cd5f6a1dd0ebf4e0c7387d5b8e0b9e6f057de98";
/**
* The minimized GraphQL document being sent to the server to save a few bytes.
* The un-minimized version is:
*
* mutation ImportSubscriptionsBulk($input: ImportSubscriptionsBulkInput!) {
* importSubscriptionsBulk(input: $input)
* }
*/
public static final String OPERATION_DOCUMENT = "mutation ImportSubscriptionsBulk($input: ImportSubscriptionsBulkInput!) { importSubscriptionsBulk(input: $input) }";
public static final String OPERATION_NAME = "ImportSubscriptionsBulk";
public final ImportSubscriptionsBulkInput input;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
private transient volatile String $toString;
public ImportSubscriptionsBulkMutation(ImportSubscriptionsBulkInput input) {
this.input = input;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ImportSubscriptionsBulkMutation) {
ImportSubscriptionsBulkMutation that = (ImportSubscriptionsBulkMutation) o;
return ((this.input == null) ? (that.input == null) : this.input.equals(that.input));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int __h = 1;
__h *= 1000003;
__h ^= (input == null) ? 0 : input.hashCode();
$hashCode = __h;
$hashCodeMemoized = true;
}
return $hashCode;
}
@Override
public String toString() {
if ($toString == null) {
$toString = "ImportSubscriptionsBulkMutation{"
+ "input=" + input
+ "}";
}
return $toString;
}
public static Builder builder() {
return new Builder();
}
@Override
public String id() {
return OPERATION_ID;
}
@Override
public String document() {
return OPERATION_DOCUMENT;
}
@Override
public String name() {
return OPERATION_NAME;
}
@Override
public void serializeVariables(JsonWriter writer, CustomScalarAdapters customScalarAdapters)
throws IOException {
ImportSubscriptionsBulkMutation_VariablesAdapter.INSTANCE.toJson(writer, customScalarAdapters, this);
}
@Override
public Adapter adapter() {
return new ObjectAdapter(ImportSubscriptionsBulkMutation_ResponseAdapter.Data.INSTANCE, false);
}
@Override
public CompiledField rootField() {
return new CompiledField.Builder(
"data",
io.stigg.api.operations.type.Mutation.type
)
.selections(ImportSubscriptionsBulkMutationSelections.__root)
.build();
}
public static final class Builder {
private ImportSubscriptionsBulkInput input;
Builder() {
}
public Builder input(ImportSubscriptionsBulkInput input) {
this.input = input;
return this;
}
public ImportSubscriptionsBulkMutation build() {
return new ImportSubscriptionsBulkMutation(input);
}
}
public static class Data implements Mutation.Data {
public String importSubscriptionsBulk;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
private transient volatile String $toString;
public Data(String importSubscriptionsBulk) {
this.importSubscriptionsBulk = importSubscriptionsBulk;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Data) {
Data that = (Data) o;
return ((this.importSubscriptionsBulk == null) ? (that.importSubscriptionsBulk == null) : this.importSubscriptionsBulk.equals(that.importSubscriptionsBulk));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int __h = 1;
__h *= 1000003;
__h ^= (importSubscriptionsBulk == null) ? 0 : importSubscriptionsBulk.hashCode();
$hashCode = __h;
$hashCodeMemoized = true;
}
return $hashCode;
}
@Override
public String toString() {
if ($toString == null) {
$toString = "Data{"
+ "importSubscriptionsBulk=" + importSubscriptionsBulk
+ "}";
}
return $toString;
}
}
}