net.nemerosa.ontrack.kdsl.connector.graphql.schema.GitHubIngestionPayloadsQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontrack-kdsl Show documentation
Show all versions of ontrack-kdsl Show documentation
Ontrack module: ontrack-kdsl
// 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 net.nemerosa.ontrack.kdsl.connector.graphql.schema;
import com.apollographql.apollo.api.Input;
import com.apollographql.apollo.api.Operation;
import com.apollographql.apollo.api.OperationName;
import com.apollographql.apollo.api.Query;
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.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 java.io.IOException;
import java.lang.Integer;
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.List;
import java.util.Map;
import net.nemerosa.ontrack.kdsl.connector.graphql.schema.fragment.PageInfoContent;
import net.nemerosa.ontrack.kdsl.connector.graphql.schema.type.IngestionHookPayloadStatus;
import okio.Buffer;
import okio.BufferedSource;
import okio.ByteString;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public final class GitHubIngestionPayloadsQuery implements Query {
public static final String OPERATION_ID = "0dc6015e0cdb46406ee3fd3dfef3d5495eaa228aa76af67e27a3ace2e3b103f4";
public static final String QUERY_DOCUMENT = QueryDocumentMinifier.minify(
"query GitHubIngestionPayloads($offset: Int = 0, $size: Int = 10, $uuid: String, $statuses: [IngestionHookPayloadStatus!], $gitHubEvent: String, $repository: String) {\n"
+ " gitHubIngestionHookPayloads(offset: $offset, size: $size, uuid: $uuid, statuses: $statuses, gitHubEvent: $gitHubEvent, repository: $repository) {\n"
+ " __typename\n"
+ " pageInfo {\n"
+ " __typename\n"
+ " ...PageInfoContent\n"
+ " }\n"
+ " pageItems {\n"
+ " __typename\n"
+ " uuid\n"
+ " status\n"
+ " message\n"
+ " routing\n"
+ " queue\n"
+ " }\n"
+ " }\n"
+ "}\n"
+ "fragment PageInfoContent on PageInfo {\n"
+ " __typename\n"
+ " totalSize\n"
+ " currentOffset\n"
+ " currentSize\n"
+ " previousPage {\n"
+ " __typename\n"
+ " offset\n"
+ " size\n"
+ " }\n"
+ " nextPage {\n"
+ " __typename\n"
+ " offset\n"
+ " size\n"
+ " }\n"
+ " pageTotal\n"
+ " pageIndex\n"
+ "}"
);
public static final OperationName OPERATION_NAME = new OperationName() {
@Override
public String name() {
return "GitHubIngestionPayloads";
}
};
private final GitHubIngestionPayloadsQuery.Variables variables;
public GitHubIngestionPayloadsQuery(@NotNull Input offset, @NotNull Input size,
@NotNull Input uuid, @NotNull Input> statuses,
@NotNull Input gitHubEvent, @NotNull Input repository) {
Utils.checkNotNull(offset, "offset == null");
Utils.checkNotNull(size, "size == null");
Utils.checkNotNull(uuid, "uuid == null");
Utils.checkNotNull(statuses, "statuses == null");
Utils.checkNotNull(gitHubEvent, "gitHubEvent == null");
Utils.checkNotNull(repository, "repository == null");
variables = new GitHubIngestionPayloadsQuery.Variables(offset, size, uuid, statuses, gitHubEvent, repository);
}
@Override
public String operationId() {
return OPERATION_ID;
}
@Override
public String queryDocument() {
return QUERY_DOCUMENT;
}
@Override
public GitHubIngestionPayloadsQuery.Data wrapData(GitHubIngestionPayloadsQuery.Data data) {
return data;
}
@Override
public GitHubIngestionPayloadsQuery.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 Input offset = Input.absent();
private Input size = Input.absent();
private Input uuid = Input.absent();
private Input> statuses = Input.absent();
private Input gitHubEvent = Input.absent();
private Input repository = Input.absent();
Builder() {
}
public Builder offset(@Nullable Integer offset) {
this.offset = Input.fromNullable(offset);
return this;
}
public Builder size(@Nullable Integer size) {
this.size = Input.fromNullable(size);
return this;
}
public Builder uuid(@Nullable String uuid) {
this.uuid = Input.fromNullable(uuid);
return this;
}
public Builder statuses(@Nullable List statuses) {
this.statuses = Input.fromNullable(statuses);
return this;
}
public Builder gitHubEvent(@Nullable String gitHubEvent) {
this.gitHubEvent = Input.fromNullable(gitHubEvent);
return this;
}
public Builder repository(@Nullable String repository) {
this.repository = Input.fromNullable(repository);
return this;
}
public Builder offsetInput(@NotNull Input offset) {
this.offset = Utils.checkNotNull(offset, "offset == null");
return this;
}
public Builder sizeInput(@NotNull Input size) {
this.size = Utils.checkNotNull(size, "size == null");
return this;
}
public Builder uuidInput(@NotNull Input uuid) {
this.uuid = Utils.checkNotNull(uuid, "uuid == null");
return this;
}
public Builder statusesInput(@NotNull Input> statuses) {
this.statuses = Utils.checkNotNull(statuses, "statuses == null");
return this;
}
public Builder gitHubEventInput(@NotNull Input gitHubEvent) {
this.gitHubEvent = Utils.checkNotNull(gitHubEvent, "gitHubEvent == null");
return this;
}
public Builder repositoryInput(@NotNull Input repository) {
this.repository = Utils.checkNotNull(repository, "repository == null");
return this;
}
public GitHubIngestionPayloadsQuery build() {
return new GitHubIngestionPayloadsQuery(offset, size, uuid, statuses, gitHubEvent, repository);
}
}
public static final class Variables extends Operation.Variables {
private final Input offset;
private final Input size;
private final Input uuid;
private final Input> statuses;
private final Input gitHubEvent;
private final Input repository;
private final transient Map valueMap = new LinkedHashMap<>();
Variables(Input offset, Input size, Input uuid,
Input> statuses, Input gitHubEvent,
Input repository) {
this.offset = offset;
this.size = size;
this.uuid = uuid;
this.statuses = statuses;
this.gitHubEvent = gitHubEvent;
this.repository = repository;
if (offset.defined) {
this.valueMap.put("offset", offset.value);
}
if (size.defined) {
this.valueMap.put("size", size.value);
}
if (uuid.defined) {
this.valueMap.put("uuid", uuid.value);
}
if (statuses.defined) {
this.valueMap.put("statuses", statuses.value);
}
if (gitHubEvent.defined) {
this.valueMap.put("gitHubEvent", gitHubEvent.value);
}
if (repository.defined) {
this.valueMap.put("repository", repository.value);
}
}
public Input offset() {
return offset;
}
public Input size() {
return size;
}
public Input uuid() {
return uuid;
}
public Input> statuses() {
return statuses;
}
public Input gitHubEvent() {
return gitHubEvent;
}
public Input repository() {
return repository;
}
@Override
public Map valueMap() {
return Collections.unmodifiableMap(valueMap);
}
@Override
public InputFieldMarshaller marshaller() {
return new InputFieldMarshaller() {
@Override
public void marshal(InputFieldWriter writer) throws IOException {
if (offset.defined) {
writer.writeInt("offset", offset.value);
}
if (size.defined) {
writer.writeInt("size", size.value);
}
if (uuid.defined) {
writer.writeString("uuid", uuid.value);
}
if (statuses.defined) {
writer.writeList("statuses", statuses.value != null ? new InputFieldWriter.ListWriter() {
@Override
public void write(InputFieldWriter.ListItemWriter listItemWriter) throws IOException {
for (final IngestionHookPayloadStatus $item : statuses.value) {
listItemWriter.writeString($item != null ? $item.rawValue() : null);
}
}
} : null);
}
if (gitHubEvent.defined) {
writer.writeString("gitHubEvent", gitHubEvent.value);
}
if (repository.defined) {
writer.writeString("repository", repository.value);
}
}
};
}
}
/**
* Data from the response after executing this GraphQL operation
*/
public static class Data implements Operation.Data {
static final ResponseField[] $responseFields = {
ResponseField.forObject("gitHubIngestionHookPayloads", "gitHubIngestionHookPayloads", new UnmodifiableMapBuilder(6)
.put("offset", new UnmodifiableMapBuilder(2)
.put("kind", "Variable")
.put("variableName", "offset")
.build())
.put("size", new UnmodifiableMapBuilder(2)
.put("kind", "Variable")
.put("variableName", "size")
.build())
.put("uuid", new UnmodifiableMapBuilder(2)
.put("kind", "Variable")
.put("variableName", "uuid")
.build())
.put("statuses", new UnmodifiableMapBuilder(2)
.put("kind", "Variable")
.put("variableName", "statuses")
.build())
.put("gitHubEvent", new UnmodifiableMapBuilder(2)
.put("kind", "Variable")
.put("variableName", "gitHubEvent")
.build())
.put("repository", new UnmodifiableMapBuilder(2)
.put("kind", "Variable")
.put("variableName", "repository")
.build())
.build(), true, Collections.emptyList())
};
final @Nullable GitHubIngestionHookPayloads gitHubIngestionHookPayloads;
private transient volatile String $toString;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
public Data(@Nullable GitHubIngestionHookPayloads gitHubIngestionHookPayloads) {
this.gitHubIngestionHookPayloads = gitHubIngestionHookPayloads;
}
/**
* List of payloads received by the GitHub Ingestion Hook payload
*/
public @Nullable GitHubIngestionHookPayloads gitHubIngestionHookPayloads() {
return this.gitHubIngestionHookPayloads;
}
@SuppressWarnings({"rawtypes", "unchecked"})
public ResponseFieldMarshaller marshaller() {
return new ResponseFieldMarshaller() {
@Override
public void marshal(ResponseWriter writer) {
writer.writeObject($responseFields[0], gitHubIngestionHookPayloads != null ? gitHubIngestionHookPayloads.marshaller() : null);
}
};
}
@Override
public String toString() {
if ($toString == null) {
$toString = "Data{"
+ "gitHubIngestionHookPayloads=" + gitHubIngestionHookPayloads
+ "}";
}
return $toString;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Data) {
Data that = (Data) o;
return ((this.gitHubIngestionHookPayloads == null) ? (that.gitHubIngestionHookPayloads == null) : this.gitHubIngestionHookPayloads.equals(that.gitHubIngestionHookPayloads));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int h = 1;
h *= 1000003;
h ^= (gitHubIngestionHookPayloads == null) ? 0 : gitHubIngestionHookPayloads.hashCode();
$hashCode = h;
$hashCodeMemoized = true;
}
return $hashCode;
}
public static final class Mapper implements ResponseFieldMapper {
final GitHubIngestionHookPayloads.Mapper gitHubIngestionHookPayloadsFieldMapper = new GitHubIngestionHookPayloads.Mapper();
@Override
public Data map(ResponseReader reader) {
final GitHubIngestionHookPayloads gitHubIngestionHookPayloads = reader.readObject($responseFields[0], new ResponseReader.ObjectReader() {
@Override
public GitHubIngestionHookPayloads read(ResponseReader reader) {
return gitHubIngestionHookPayloadsFieldMapper.map(reader);
}
});
return new Data(gitHubIngestionHookPayloads);
}
}
}
public static class GitHubIngestionHookPayloads {
static final ResponseField[] $responseFields = {
ResponseField.forString("__typename", "__typename", null, false, Collections.emptyList()),
ResponseField.forObject("pageInfo", "pageInfo", null, true, Collections.emptyList()),
ResponseField.forList("pageItems", "pageItems", null, false, Collections.emptyList())
};
final @NotNull String __typename;
final @Nullable PageInfo pageInfo;
final @NotNull List pageItems;
private transient volatile String $toString;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
public GitHubIngestionHookPayloads(@NotNull String __typename, @Nullable PageInfo pageInfo,
@NotNull List pageItems) {
this.__typename = Utils.checkNotNull(__typename, "__typename == null");
this.pageInfo = pageInfo;
this.pageItems = Utils.checkNotNull(pageItems, "pageItems == null");
}
public @NotNull String __typename() {
return this.__typename;
}
/**
* Information about the current page
*/
public @Nullable PageInfo pageInfo() {
return this.pageInfo;
}
/**
* Items in the current page
*/
public @NotNull List pageItems() {
return this.pageItems;
}
@SuppressWarnings({"rawtypes", "unchecked"})
public ResponseFieldMarshaller marshaller() {
return new ResponseFieldMarshaller() {
@Override
public void marshal(ResponseWriter writer) {
writer.writeString($responseFields[0], __typename);
writer.writeObject($responseFields[1], pageInfo != null ? pageInfo.marshaller() : null);
writer.writeList($responseFields[2], pageItems, new ResponseWriter.ListWriter() {
@Override
public void write(List items, ResponseWriter.ListItemWriter listItemWriter) {
for (Object item : items) {
listItemWriter.writeObject(((PageItem) item).marshaller());
}
}
});
}
};
}
@Override
public String toString() {
if ($toString == null) {
$toString = "GitHubIngestionHookPayloads{"
+ "__typename=" + __typename + ", "
+ "pageInfo=" + pageInfo + ", "
+ "pageItems=" + pageItems
+ "}";
}
return $toString;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof GitHubIngestionHookPayloads) {
GitHubIngestionHookPayloads that = (GitHubIngestionHookPayloads) o;
return this.__typename.equals(that.__typename)
&& ((this.pageInfo == null) ? (that.pageInfo == null) : this.pageInfo.equals(that.pageInfo))
&& this.pageItems.equals(that.pageItems);
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int h = 1;
h *= 1000003;
h ^= __typename.hashCode();
h *= 1000003;
h ^= (pageInfo == null) ? 0 : pageInfo.hashCode();
h *= 1000003;
h ^= pageItems.hashCode();
$hashCode = h;
$hashCodeMemoized = true;
}
return $hashCode;
}
public static final class Mapper implements ResponseFieldMapper {
final PageInfo.Mapper pageInfoFieldMapper = new PageInfo.Mapper();
final PageItem.Mapper pageItemFieldMapper = new PageItem.Mapper();
@Override
public GitHubIngestionHookPayloads map(ResponseReader reader) {
final String __typename = reader.readString($responseFields[0]);
final PageInfo pageInfo = reader.readObject($responseFields[1], new ResponseReader.ObjectReader() {
@Override
public PageInfo read(ResponseReader reader) {
return pageInfoFieldMapper.map(reader);
}
});
final List pageItems = reader.readList($responseFields[2], new ResponseReader.ListReader() {
@Override
public PageItem read(ResponseReader.ListItemReader listItemReader) {
return listItemReader.readObject(new ResponseReader.ObjectReader() {
@Override
public PageItem read(ResponseReader reader) {
return pageItemFieldMapper.map(reader);
}
});
}
});
return new GitHubIngestionHookPayloads(__typename, pageInfo, pageItems);
}
}
}
public static class PageInfo {
static final ResponseField[] $responseFields = {
ResponseField.forString("__typename", "__typename", null, false, Collections.emptyList()),
ResponseField.forString("__typename", "__typename", null, false, Collections.emptyList())
};
final @NotNull String __typename;
private final @NotNull Fragments fragments;
private transient volatile String $toString;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
public PageInfo(@NotNull String __typename, @NotNull Fragments fragments) {
this.__typename = Utils.checkNotNull(__typename, "__typename == null");
this.fragments = Utils.checkNotNull(fragments, "fragments == null");
}
public @NotNull String __typename() {
return this.__typename;
}
public @NotNull Fragments fragments() {
return this.fragments;
}
@SuppressWarnings({"rawtypes", "unchecked"})
public ResponseFieldMarshaller marshaller() {
return new ResponseFieldMarshaller() {
@Override
public void marshal(ResponseWriter writer) {
writer.writeString($responseFields[0], __typename);
fragments.marshaller().marshal(writer);
}
};
}
@Override
public String toString() {
if ($toString == null) {
$toString = "PageInfo{"
+ "__typename=" + __typename + ", "
+ "fragments=" + fragments
+ "}";
}
return $toString;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof PageInfo) {
PageInfo that = (PageInfo) o;
return this.__typename.equals(that.__typename)
&& this.fragments.equals(that.fragments);
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int h = 1;
h *= 1000003;
h ^= __typename.hashCode();
h *= 1000003;
h ^= fragments.hashCode();
$hashCode = h;
$hashCodeMemoized = true;
}
return $hashCode;
}
public static class Fragments {
final @NotNull PageInfoContent pageInfoContent;
private transient volatile String $toString;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
public Fragments(@NotNull PageInfoContent pageInfoContent) {
this.pageInfoContent = Utils.checkNotNull(pageInfoContent, "pageInfoContent == null");
}
public @NotNull PageInfoContent pageInfoContent() {
return this.pageInfoContent;
}
public ResponseFieldMarshaller marshaller() {
return new ResponseFieldMarshaller() {
@Override
public void marshal(ResponseWriter writer) {
writer.writeFragment(pageInfoContent.marshaller());
}
};
}
@Override
public String toString() {
if ($toString == null) {
$toString = "Fragments{"
+ "pageInfoContent=" + pageInfoContent
+ "}";
}
return $toString;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Fragments) {
Fragments that = (Fragments) o;
return this.pageInfoContent.equals(that.pageInfoContent);
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int h = 1;
h *= 1000003;
h ^= pageInfoContent.hashCode();
$hashCode = h;
$hashCodeMemoized = true;
}
return $hashCode;
}
public static final class Mapper implements ResponseFieldMapper {
static final ResponseField[] $responseFields = {
ResponseField.forFragment("__typename", "__typename", Collections.emptyList())
};
final PageInfoContent.Mapper pageInfoContentFieldMapper = new PageInfoContent.Mapper();
@Override
public @NotNull Fragments map(ResponseReader reader) {
final PageInfoContent pageInfoContent = reader.readFragment($responseFields[0], new ResponseReader.ObjectReader() {
@Override
public PageInfoContent read(ResponseReader reader) {
return pageInfoContentFieldMapper.map(reader);
}
});
return new Fragments(pageInfoContent);
}
}
}
public static final class Mapper implements ResponseFieldMapper {
final Fragments.Mapper fragmentsFieldMapper = new Fragments.Mapper();
@Override
public PageInfo map(ResponseReader reader) {
final String __typename = reader.readString($responseFields[0]);
final Fragments fragments = fragmentsFieldMapper.map(reader);
return new PageInfo(__typename, fragments);
}
}
}
/**
* Payload received by the GitHub Ingestion Hook
*/
public static class PageItem {
static final ResponseField[] $responseFields = {
ResponseField.forString("__typename", "__typename", null, false, Collections.emptyList()),
ResponseField.forString("uuid", "uuid", null, true, Collections.emptyList()),
ResponseField.forString("status", "status", null, false, Collections.emptyList()),
ResponseField.forString("message", "message", null, true, Collections.emptyList()),
ResponseField.forString("routing", "routing", null, true, Collections.emptyList()),
ResponseField.forString("queue", "queue", null, true, Collections.emptyList())
};
final @NotNull String __typename;
final @Nullable String uuid;
final @NotNull IngestionHookPayloadStatus status;
final @Nullable String message;
final @Nullable String routing;
final @Nullable String queue;
private transient volatile String $toString;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
public PageItem(@NotNull String __typename, @Nullable String uuid,
@NotNull IngestionHookPayloadStatus status, @Nullable String message,
@Nullable String routing, @Nullable String queue) {
this.__typename = Utils.checkNotNull(__typename, "__typename == null");
this.uuid = uuid;
this.status = Utils.checkNotNull(status, "status == null");
this.message = message;
this.routing = routing;
this.queue = queue;
}
public @NotNull String __typename() {
return this.__typename;
}
/**
* Unique ID for this payload
*/
public @Nullable String uuid() {
return this.uuid;
}
/**
* Status of the processing
*/
public @NotNull IngestionHookPayloadStatus status() {
return this.status;
}
/**
* Status message (exception stack trace in case of error)
*/
public @Nullable String message() {
return this.message;
}
/**
* Routing information
*/
public @Nullable String routing() {
return this.routing;
}
/**
* Queue information
*/
public @Nullable String queue() {
return this.queue;
}
@SuppressWarnings({"rawtypes", "unchecked"})
public ResponseFieldMarshaller marshaller() {
return new ResponseFieldMarshaller() {
@Override
public void marshal(ResponseWriter writer) {
writer.writeString($responseFields[0], __typename);
writer.writeString($responseFields[1], uuid);
writer.writeString($responseFields[2], status.rawValue());
writer.writeString($responseFields[3], message);
writer.writeString($responseFields[4], routing);
writer.writeString($responseFields[5], queue);
}
};
}
@Override
public String toString() {
if ($toString == null) {
$toString = "PageItem{"
+ "__typename=" + __typename + ", "
+ "uuid=" + uuid + ", "
+ "status=" + status + ", "
+ "message=" + message + ", "
+ "routing=" + routing + ", "
+ "queue=" + queue
+ "}";
}
return $toString;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof PageItem) {
PageItem that = (PageItem) o;
return this.__typename.equals(that.__typename)
&& ((this.uuid == null) ? (that.uuid == null) : this.uuid.equals(that.uuid))
&& this.status.equals(that.status)
&& ((this.message == null) ? (that.message == null) : this.message.equals(that.message))
&& ((this.routing == null) ? (that.routing == null) : this.routing.equals(that.routing))
&& ((this.queue == null) ? (that.queue == null) : this.queue.equals(that.queue));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int h = 1;
h *= 1000003;
h ^= __typename.hashCode();
h *= 1000003;
h ^= (uuid == null) ? 0 : uuid.hashCode();
h *= 1000003;
h ^= status.hashCode();
h *= 1000003;
h ^= (message == null) ? 0 : message.hashCode();
h *= 1000003;
h ^= (routing == null) ? 0 : routing.hashCode();
h *= 1000003;
h ^= (queue == null) ? 0 : queue.hashCode();
$hashCode = h;
$hashCodeMemoized = true;
}
return $hashCode;
}
public static final class Mapper implements ResponseFieldMapper {
@Override
public PageItem map(ResponseReader reader) {
final String __typename = reader.readString($responseFields[0]);
final String uuid = reader.readString($responseFields[1]);
final String statusStr = reader.readString($responseFields[2]);
final IngestionHookPayloadStatus status;
if (statusStr != null) {
status = IngestionHookPayloadStatus.safeValueOf(statusStr);
} else {
status = null;
}
final String message = reader.readString($responseFields[3]);
final String routing = reader.readString($responseFields[4]);
final String queue = reader.readString($responseFields[5]);
return new PageItem(__typename, uuid, status, message, routing, queue);
}
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy