com.expediagroup.streamplatform.streamregistry.state.graphql.ProcessBindingDeletionMutation Maven / Gradle / Ivy
The newest version!
// AUTO-GENERATED FILE. DO NOT MODIFY.
//
// This class was automatically generated by Apollo GraphQL plugin from the GraphQL queries it found.
// It should not be modified by hand.
//
package com.expediagroup.streamplatform.streamregistry.state.graphql;
import com.apollographql.apollo.api.Mutation;
import com.apollographql.apollo.api.Operation;
import com.apollographql.apollo.api.OperationName;
import com.apollographql.apollo.api.Response;
import com.apollographql.apollo.api.ResponseField;
import com.apollographql.apollo.api.ScalarTypeAdapters;
import com.apollographql.apollo.api.internal.InputFieldMarshaller;
import com.apollographql.apollo.api.internal.InputFieldWriter;
import com.apollographql.apollo.api.internal.Mutator;
import com.apollographql.apollo.api.internal.OperationRequestBodyComposer;
import com.apollographql.apollo.api.internal.QueryDocumentMinifier;
import com.apollographql.apollo.api.internal.ResponseFieldMapper;
import com.apollographql.apollo.api.internal.ResponseFieldMarshaller;
import com.apollographql.apollo.api.internal.ResponseReader;
import com.apollographql.apollo.api.internal.ResponseWriter;
import com.apollographql.apollo.api.internal.SimpleOperationResponseParser;
import com.apollographql.apollo.api.internal.UnmodifiableMapBuilder;
import com.apollographql.apollo.api.internal.Utils;
import com.expediagroup.streamplatform.streamregistry.state.graphql.type.ProcessBindingKeyInput;
import java.io.IOException;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Optional;
import okio.Buffer;
import okio.BufferedSource;
import okio.ByteString;
import org.jetbrains.annotations.NotNull;
public final class ProcessBindingDeletionMutation implements Mutation, ProcessBindingDeletionMutation.Variables> {
public static final String OPERATION_ID = "8613f90b0692526d80c765480cc85d68555c9dcd781b357f03af01272a665b08";
public static final String QUERY_DOCUMENT = QueryDocumentMinifier.minify(
"mutation ProcessBindingDeletion($key: ProcessBindingKeyInput!) {\n"
+ " processBinding {\n"
+ " __typename\n"
+ " delete(key: $key)\n"
+ " }\n"
+ "}"
);
public static final OperationName OPERATION_NAME = new OperationName() {
@Override
public String name() {
return "ProcessBindingDeletion";
}
};
private final ProcessBindingDeletionMutation.Variables variables;
public ProcessBindingDeletionMutation(@NotNull ProcessBindingKeyInput key) {
Utils.checkNotNull(key, "key == null");
variables = new ProcessBindingDeletionMutation.Variables(key);
}
@Override
public String operationId() {
return OPERATION_ID;
}
@Override
public String queryDocument() {
return QUERY_DOCUMENT;
}
@Override
public Optional wrapData(ProcessBindingDeletionMutation.Data data) {
return Optional.ofNullable(data);
}
@Override
public ProcessBindingDeletionMutation.Variables variables() {
return variables;
}
@Override
public ResponseFieldMapper responseFieldMapper() {
return new Data.Mapper();
}
public static Builder builder() {
return new Builder();
}
@Override
public OperationName name() {
return OPERATION_NAME;
}
@Override
@NotNull
public Response> parse(@NotNull final BufferedSource source,
@NotNull final ScalarTypeAdapters scalarTypeAdapters) throws IOException {
return SimpleOperationResponseParser.parse(source, this, scalarTypeAdapters);
}
@Override
@NotNull
public Response> parse(@NotNull final ByteString byteString,
@NotNull final ScalarTypeAdapters scalarTypeAdapters) throws IOException {
return parse(new Buffer().write(byteString), scalarTypeAdapters);
}
@Override
@NotNull
public Response> parse(@NotNull final BufferedSource source)
throws IOException {
return parse(source, ScalarTypeAdapters.DEFAULT);
}
@Override
@NotNull
public Response> parse(@NotNull final ByteString byteString)
throws IOException {
return parse(byteString, ScalarTypeAdapters.DEFAULT);
}
@Override
@NotNull
public ByteString composeRequestBody(@NotNull final ScalarTypeAdapters scalarTypeAdapters) {
return OperationRequestBodyComposer.compose(this, false, true, scalarTypeAdapters);
}
@NotNull
@Override
public ByteString composeRequestBody() {
return OperationRequestBodyComposer.compose(this, false, true, ScalarTypeAdapters.DEFAULT);
}
@Override
@NotNull
public ByteString composeRequestBody(final boolean autoPersistQueries,
final boolean withQueryDocument, @NotNull final ScalarTypeAdapters scalarTypeAdapters) {
return OperationRequestBodyComposer.compose(this, autoPersistQueries, withQueryDocument, scalarTypeAdapters);
}
public static final class Builder {
private @NotNull ProcessBindingKeyInput key;
Builder() {
}
public Builder key(@NotNull ProcessBindingKeyInput key) {
this.key = key;
return this;
}
public ProcessBindingDeletionMutation build() {
Utils.checkNotNull(key, "key == null");
return new ProcessBindingDeletionMutation(key);
}
}
public static final class Variables extends Operation.Variables {
private final @NotNull ProcessBindingKeyInput key;
private final transient Map valueMap = new LinkedHashMap<>();
Variables(@NotNull ProcessBindingKeyInput key) {
this.key = key;
this.valueMap.put("key", key);
}
public @NotNull ProcessBindingKeyInput key() {
return key;
}
@Override
public Map valueMap() {
return Collections.unmodifiableMap(valueMap);
}
@Override
public InputFieldMarshaller marshaller() {
return new InputFieldMarshaller() {
@Override
public void marshal(InputFieldWriter writer) throws IOException {
writer.writeObject("key", key.marshaller());
}
};
}
}
/**
* Data from the response after executing this GraphQL operation
*/
public static class Data implements Operation.Data {
static final ResponseField[] $responseFields = {
ResponseField.forObject("processBinding", "processBinding", null, false, Collections.emptyList())
};
final @NotNull ProcessBinding processBinding;
private transient volatile String $toString;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
public Data(@NotNull ProcessBinding processBinding) {
this.processBinding = Utils.checkNotNull(processBinding, "processBinding == null");
}
public @NotNull ProcessBinding getProcessBinding() {
return this.processBinding;
}
@SuppressWarnings({"rawtypes", "unchecked"})
public ResponseFieldMarshaller marshaller() {
return new ResponseFieldMarshaller() {
@Override
public void marshal(ResponseWriter writer) {
writer.writeObject($responseFields[0], processBinding.marshaller());
}
};
}
@Override
public String toString() {
if ($toString == null) {
$toString = "Data{"
+ "processBinding=" + processBinding
+ "}";
}
return $toString;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Data) {
Data that = (Data) o;
return this.processBinding.equals(that.processBinding);
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int h = 1;
h *= 1000003;
h ^= processBinding.hashCode();
$hashCode = h;
$hashCodeMemoized = true;
}
return $hashCode;
}
public Builder toBuilder() {
Builder builder = new Builder();
builder.processBinding = processBinding;
return builder;
}
public static Builder builder() {
return new Builder();
}
public static final class Mapper implements ResponseFieldMapper {
final ProcessBinding.Mapper processBindingFieldMapper = new ProcessBinding.Mapper();
@Override
public Data map(ResponseReader reader) {
final ProcessBinding processBinding = reader.readObject($responseFields[0], new ResponseReader.ObjectReader() {
@Override
public ProcessBinding read(ResponseReader reader) {
return processBindingFieldMapper.map(reader);
}
});
return new Data(processBinding);
}
}
public static final class Builder {
private @NotNull ProcessBinding processBinding;
Builder() {
}
public Builder processBinding(@NotNull ProcessBinding processBinding) {
this.processBinding = processBinding;
return this;
}
public Builder processBinding(@NotNull Mutator mutator) {
Utils.checkNotNull(mutator, "mutator == null");
ProcessBinding.Builder builder = this.processBinding != null ? this.processBinding.toBuilder() : ProcessBinding.builder();
mutator.accept(builder);
this.processBinding = builder.build();
return this;
}
public Data build() {
Utils.checkNotNull(processBinding, "processBinding == null");
return new Data(processBinding);
}
}
}
public static class ProcessBinding {
static final ResponseField[] $responseFields = {
ResponseField.forString("__typename", "__typename", null, false, Collections.emptyList()),
ResponseField.forBoolean("delete", "delete", new UnmodifiableMapBuilder(1)
.put("key", new UnmodifiableMapBuilder(2)
.put("kind", "Variable")
.put("variableName", "key")
.build())
.build(), false, Collections.emptyList())
};
final @NotNull String __typename;
final boolean delete;
private transient volatile String $toString;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
public ProcessBinding(@NotNull String __typename, boolean delete) {
this.__typename = Utils.checkNotNull(__typename, "__typename == null");
this.delete = delete;
}
public @NotNull String get__typename() {
return this.__typename;
}
public boolean isDelete() {
return this.delete;
}
@SuppressWarnings({"rawtypes", "unchecked"})
public ResponseFieldMarshaller marshaller() {
return new ResponseFieldMarshaller() {
@Override
public void marshal(ResponseWriter writer) {
writer.writeString($responseFields[0], __typename);
writer.writeBoolean($responseFields[1], delete);
}
};
}
@Override
public String toString() {
if ($toString == null) {
$toString = "ProcessBinding{"
+ "__typename=" + __typename + ", "
+ "delete=" + delete
+ "}";
}
return $toString;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ProcessBinding) {
ProcessBinding that = (ProcessBinding) o;
return this.__typename.equals(that.__typename)
&& this.delete == that.delete;
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int h = 1;
h *= 1000003;
h ^= __typename.hashCode();
h *= 1000003;
h ^= Boolean.valueOf(delete).hashCode();
$hashCode = h;
$hashCodeMemoized = true;
}
return $hashCode;
}
public Builder toBuilder() {
Builder builder = new Builder();
builder.__typename = __typename;
builder.delete = delete;
return builder;
}
public static Builder builder() {
return new Builder();
}
public static final class Mapper implements ResponseFieldMapper {
@Override
public ProcessBinding map(ResponseReader reader) {
final String __typename = reader.readString($responseFields[0]);
final boolean delete = reader.readBoolean($responseFields[1]);
return new ProcessBinding(__typename, delete);
}
}
public static final class Builder {
private @NotNull String __typename;
private boolean delete;
Builder() {
}
public Builder __typename(@NotNull String __typename) {
this.__typename = __typename;
return this;
}
public Builder delete(boolean delete) {
this.delete = delete;
return this;
}
public ProcessBinding build() {
Utils.checkNotNull(__typename, "__typename == null");
return new ProcessBinding(__typename, delete);
}
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy