All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.nemerosa.ontrack.kdsl.connector.graphql.schema.BuildUsingQuery Maven / Gradle / Ivy

There is a newer version: 4.4.5
Show 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 net.nemerosa.ontrack.kdsl.connector.graphql.schema;

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.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.BuildFragment;
import net.nemerosa.ontrack.kdsl.connector.graphql.schema.fragment.PageInfoContent;
import okio.Buffer;
import okio.BufferedSource;
import okio.ByteString;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class BuildUsingQuery implements Query {
  public static final String OPERATION_ID = "fc357b36707798529f086828be91cab112cd7c98ddb053c12833a2f757af8196";

  public static final String QUERY_DOCUMENT = QueryDocumentMinifier.minify(
    "query BuildUsing($buildId: Int!, $offset: Int! = 0, $size: Int! = 10) {\n"
        + "  builds(id: $buildId) {\n"
        + "    __typename\n"
        + "    using(offset: $offset, size: $size) {\n"
        + "      __typename\n"
        + "      pageInfo {\n"
        + "        __typename\n"
        + "        ...PageInfoContent\n"
        + "      }\n"
        + "      pageItems {\n"
        + "        __typename\n"
        + "        ...BuildFragment\n"
        + "      }\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"
        + "}\n"
        + "fragment BuildFragment on Build {\n"
        + "  __typename\n"
        + "  id\n"
        + "  name\n"
        + "  description\n"
        + "  branch {\n"
        + "    __typename\n"
        + "    ...BranchFragment\n"
        + "  }\n"
        + "}\n"
        + "fragment BranchFragment on Branch {\n"
        + "  __typename\n"
        + "  id\n"
        + "  name\n"
        + "  description\n"
        + "  disabled\n"
        + "  project {\n"
        + "    __typename\n"
        + "    ...ProjectFragment\n"
        + "  }\n"
        + "}\n"
        + "fragment ProjectFragment on Project {\n"
        + "  __typename\n"
        + "  id\n"
        + "  name\n"
        + "  description\n"
        + "}"
  );

  public static final OperationName OPERATION_NAME = new OperationName() {
    @Override
    public String name() {
      return "BuildUsing";
    }
  };

  private final BuildUsingQuery.Variables variables;

  public BuildUsingQuery(int buildId, int offset, int size) {
    variables = new BuildUsingQuery.Variables(buildId, offset, size);
  }

  @Override
  public String operationId() {
    return OPERATION_ID;
  }

  @Override
  public String queryDocument() {
    return QUERY_DOCUMENT;
  }

  @Override
  public BuildUsingQuery.Data wrapData(BuildUsingQuery.Data data) {
    return data;
  }

  @Override
  public BuildUsingQuery.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 int buildId;

    private int offset;

    private int size;

    Builder() {
    }

    public Builder buildId(int buildId) {
      this.buildId = buildId;
      return this;
    }

    public Builder offset(int offset) {
      this.offset = offset;
      return this;
    }

    public Builder size(int size) {
      this.size = size;
      return this;
    }

    public BuildUsingQuery build() {
      return new BuildUsingQuery(buildId, offset, size);
    }
  }

  public static final class Variables extends Operation.Variables {
    private final int buildId;

    private final int offset;

    private final int size;

    private final transient Map valueMap = new LinkedHashMap<>();

    Variables(int buildId, int offset, int size) {
      this.buildId = buildId;
      this.offset = offset;
      this.size = size;
      this.valueMap.put("buildId", buildId);
      this.valueMap.put("offset", offset);
      this.valueMap.put("size", size);
    }

    public int buildId() {
      return buildId;
    }

    public int offset() {
      return offset;
    }

    public int size() {
      return size;
    }

    @Override
    public Map valueMap() {
      return Collections.unmodifiableMap(valueMap);
    }

    @Override
    public InputFieldMarshaller marshaller() {
      return new InputFieldMarshaller() {
        @Override
        public void marshal(InputFieldWriter writer) throws IOException {
          writer.writeInt("buildId", buildId);
          writer.writeInt("offset", offset);
          writer.writeInt("size", size);
        }
      };
    }
  }

  /**
   * Data from the response after executing this GraphQL operation
   */
  public static class Data implements Operation.Data {
    static final ResponseField[] $responseFields = {
      ResponseField.forList("builds", "builds", new UnmodifiableMapBuilder(1)
      .put("id", new UnmodifiableMapBuilder(2)
        .put("kind", "Variable")
        .put("variableName", "buildId")
        .build())
      .build(), false, Collections.emptyList())
    };

    final @NotNull List builds;

    private transient volatile String $toString;

    private transient volatile int $hashCode;

    private transient volatile boolean $hashCodeMemoized;

    public Data(@NotNull List builds) {
      this.builds = Utils.checkNotNull(builds, "builds == null");
    }

    public @NotNull List builds() {
      return this.builds;
    }

    @SuppressWarnings({"rawtypes", "unchecked"})
    public ResponseFieldMarshaller marshaller() {
      return new ResponseFieldMarshaller() {
        @Override
        public void marshal(ResponseWriter writer) {
          writer.writeList($responseFields[0], builds, new ResponseWriter.ListWriter() {
            @Override
            public void write(List items, ResponseWriter.ListItemWriter listItemWriter) {
              for (Object item : items) {
                listItemWriter.writeObject(((Build) item).marshaller());
              }
            }
          });
        }
      };
    }

    @Override
    public String toString() {
      if ($toString == null) {
        $toString = "Data{"
          + "builds=" + builds
          + "}";
      }
      return $toString;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (o instanceof Data) {
        Data that = (Data) o;
        return this.builds.equals(that.builds);
      }
      return false;
    }

    @Override
    public int hashCode() {
      if (!$hashCodeMemoized) {
        int h = 1;
        h *= 1000003;
        h ^= builds.hashCode();
        $hashCode = h;
        $hashCodeMemoized = true;
      }
      return $hashCode;
    }

    public static final class Mapper implements ResponseFieldMapper {
      final Build.Mapper buildFieldMapper = new Build.Mapper();

      @Override
      public Data map(ResponseReader reader) {
        final List builds = reader.readList($responseFields[0], new ResponseReader.ListReader() {
          @Override
          public Build read(ResponseReader.ListItemReader listItemReader) {
            return listItemReader.readObject(new ResponseReader.ObjectReader() {
              @Override
              public Build read(ResponseReader reader) {
                return buildFieldMapper.map(reader);
              }
            });
          }
        });
        return new Data(builds);
      }
    }
  }

  public static class Build {
    static final ResponseField[] $responseFields = {
      ResponseField.forString("__typename", "__typename", null, false, Collections.emptyList()),
      ResponseField.forObject("using", "using", new UnmodifiableMapBuilder(2)
      .put("offset", new UnmodifiableMapBuilder(2)
        .put("kind", "Variable")
        .put("variableName", "offset")
        .build())
      .put("size", new UnmodifiableMapBuilder(2)
        .put("kind", "Variable")
        .put("variableName", "size")
        .build())
      .build(), true, Collections.emptyList())
    };

    final @NotNull String __typename;

    final @Nullable Using using;

    private transient volatile String $toString;

    private transient volatile int $hashCode;

    private transient volatile boolean $hashCodeMemoized;

    public Build(@NotNull String __typename, @Nullable Using using) {
      this.__typename = Utils.checkNotNull(__typename, "__typename == null");
      this.using = using;
    }

    public @NotNull String __typename() {
      return this.__typename;
    }

    /**
     * List of builds being used by this one.
     */
    public @Nullable Using using() {
      return this.using;
    }

    @SuppressWarnings({"rawtypes", "unchecked"})
    public ResponseFieldMarshaller marshaller() {
      return new ResponseFieldMarshaller() {
        @Override
        public void marshal(ResponseWriter writer) {
          writer.writeString($responseFields[0], __typename);
          writer.writeObject($responseFields[1], using != null ? using.marshaller() : null);
        }
      };
    }

    @Override
    public String toString() {
      if ($toString == null) {
        $toString = "Build{"
          + "__typename=" + __typename + ", "
          + "using=" + using
          + "}";
      }
      return $toString;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (o instanceof Build) {
        Build that = (Build) o;
        return this.__typename.equals(that.__typename)
         && ((this.using == null) ? (that.using == null) : this.using.equals(that.using));
      }
      return false;
    }

    @Override
    public int hashCode() {
      if (!$hashCodeMemoized) {
        int h = 1;
        h *= 1000003;
        h ^= __typename.hashCode();
        h *= 1000003;
        h ^= (using == null) ? 0 : using.hashCode();
        $hashCode = h;
        $hashCodeMemoized = true;
      }
      return $hashCode;
    }

    public static final class Mapper implements ResponseFieldMapper {
      final Using.Mapper usingFieldMapper = new Using.Mapper();

      @Override
      public Build map(ResponseReader reader) {
        final String __typename = reader.readString($responseFields[0]);
        final Using using = reader.readObject($responseFields[1], new ResponseReader.ObjectReader() {
          @Override
          public Using read(ResponseReader reader) {
            return usingFieldMapper.map(reader);
          }
        });
        return new Build(__typename, using);
      }
    }
  }

  public static class Using {
    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 Using(@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 = "Using{"
          + "__typename=" + __typename + ", "
          + "pageInfo=" + pageInfo + ", "
          + "pageItems=" + pageItems
          + "}";
      }
      return $toString;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (o instanceof Using) {
        Using that = (Using) 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 Using 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 Using(__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);
      }
    }
  }

  public static class PageItem {
    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 PageItem(@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 = "PageItem{"
          + "__typename=" + __typename + ", "
          + "fragments=" + fragments
          + "}";
      }
      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.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 BuildFragment buildFragment;

      private transient volatile String $toString;

      private transient volatile int $hashCode;

      private transient volatile boolean $hashCodeMemoized;

      public Fragments(@NotNull BuildFragment buildFragment) {
        this.buildFragment = Utils.checkNotNull(buildFragment, "buildFragment == null");
      }

      public @NotNull BuildFragment buildFragment() {
        return this.buildFragment;
      }

      public ResponseFieldMarshaller marshaller() {
        return new ResponseFieldMarshaller() {
          @Override
          public void marshal(ResponseWriter writer) {
            writer.writeFragment(buildFragment.marshaller());
          }
        };
      }

      @Override
      public String toString() {
        if ($toString == null) {
          $toString = "Fragments{"
            + "buildFragment=" + buildFragment
            + "}";
        }
        return $toString;
      }

      @Override
      public boolean equals(Object o) {
        if (o == this) {
          return true;
        }
        if (o instanceof Fragments) {
          Fragments that = (Fragments) o;
          return this.buildFragment.equals(that.buildFragment);
        }
        return false;
      }

      @Override
      public int hashCode() {
        if (!$hashCodeMemoized) {
          int h = 1;
          h *= 1000003;
          h ^= buildFragment.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 BuildFragment.Mapper buildFragmentFieldMapper = new BuildFragment.Mapper();

        @Override
        public @NotNull Fragments map(ResponseReader reader) {
          final BuildFragment buildFragment = reader.readFragment($responseFields[0], new ResponseReader.ObjectReader() {
            @Override
            public BuildFragment read(ResponseReader reader) {
              return buildFragmentFieldMapper.map(reader);
            }
          });
          return new Fragments(buildFragment);
        }
      }
    }

    public static final class Mapper implements ResponseFieldMapper {
      final Fragments.Mapper fragmentsFieldMapper = new Fragments.Mapper();

      @Override
      public PageItem map(ResponseReader reader) {
        final String __typename = reader.readString($responseFields[0]);
        final Fragments fragments = fragmentsFieldMapper.map(reader);
        return new PageItem(__typename, fragments);
      }
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy