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

com.commercetools.graphql.api.client.CategoryProjection Maven / Gradle / Ivy

There is a newer version: 17.15.1
Show newest version
package com.commercetools.graphql.api.client;

import com.netflix.graphql.dgs.client.codegen.BaseSubProjectionNode;
import java.lang.String;
import java.util.ArrayList;
import java.util.List;

public class CategoryProjection, ROOT extends BaseSubProjectionNode> extends BaseSubProjectionNode {
  public CategoryProjection(PARENT parent, ROOT root) {
    super(parent, root, java.util.Optional.of("Category"));
  }

  public CategoryProjection __typename() {
    getFields().put("__typename", null);
    return this;
  }

  public LocalizedStringProjection, ROOT> nameAllLocales() {
     LocalizedStringProjection, ROOT> projection = new LocalizedStringProjection<>(this, getRoot());
     getFields().put("nameAllLocales", projection);
     return projection;
  }

  public LocalizedStringProjection, ROOT> descriptionAllLocales() {
     LocalizedStringProjection, ROOT> projection = new LocalizedStringProjection<>(this, getRoot());
     getFields().put("descriptionAllLocales", projection);
     return projection;
  }

  public LocalizedStringProjection, ROOT> slugAllLocales() {
     LocalizedStringProjection, ROOT> projection = new LocalizedStringProjection<>(this, getRoot());
     getFields().put("slugAllLocales", projection);
     return projection;
  }

  public ReferenceProjection, ROOT> ancestorsRef() {
     ReferenceProjection, ROOT> projection = new ReferenceProjection<>(this, getRoot());
     getFields().put("ancestorsRef", projection);
     return projection;
  }

  public CategoryProjection, ROOT> ancestors() {
     CategoryProjection, ROOT> projection = new CategoryProjection<>(this, getRoot());
     getFields().put("ancestors", projection);
     return projection;
  }

  public ReferenceProjection, ROOT> parentRef() {
     ReferenceProjection, ROOT> projection = new ReferenceProjection<>(this, getRoot());
     getFields().put("parentRef", projection);
     return projection;
  }

  public CategoryProjection, ROOT> _parent() {
     CategoryProjection, ROOT> projection = new CategoryProjection<>(this, getRoot());
     getFields().put("parent", projection);
     return projection;
  }

  public LocalizedStringProjection, ROOT> metaTitleAllLocales() {
     LocalizedStringProjection, ROOT> projection = new LocalizedStringProjection<>(this, getRoot());
     getFields().put("metaTitleAllLocales", projection);
     return projection;
  }

  public LocalizedStringProjection, ROOT> metaKeywordsAllLocales(
      ) {
     LocalizedStringProjection, ROOT> projection = new LocalizedStringProjection<>(this, getRoot());
     getFields().put("metaKeywordsAllLocales", projection);
     return projection;
  }

  public LocalizedStringProjection, ROOT> metaDescriptionAllLocales(
      ) {
     LocalizedStringProjection, ROOT> projection = new LocalizedStringProjection<>(this, getRoot());
     getFields().put("metaDescriptionAllLocales", projection);
     return projection;
  }

  public CategoryProjection, ROOT> children() {
     CategoryProjection, ROOT> projection = new CategoryProjection<>(this, getRoot());
     getFields().put("children", projection);
     return projection;
  }

  public AssetProjection, ROOT> assets() {
     AssetProjection, ROOT> projection = new AssetProjection<>(this, getRoot());
     getFields().put("assets", projection);
     return projection;
  }

  public CustomFieldsTypeProjection, ROOT> custom() {
     CustomFieldsTypeProjection, ROOT> projection = new CustomFieldsTypeProjection<>(this, getRoot());
     getFields().put("custom", projection);
     return projection;
  }

  public InitiatorProjection, ROOT> createdBy() {
     InitiatorProjection, ROOT> projection = new InitiatorProjection<>(this, getRoot());
     getFields().put("createdBy", projection);
     return projection;
  }

  public InitiatorProjection, ROOT> lastModifiedBy() {
     InitiatorProjection, ROOT> projection = new InitiatorProjection<>(this, getRoot());
     getFields().put("lastModifiedBy", projection);
     return projection;
  }

  public CategoryProjection id() {
    getFields().put("id", null);
    return this;
  }

  public CategoryProjection key() {
    getFields().put("key", null);
    return this;
  }

  public CategoryProjection version() {
    getFields().put("version", null);
    return this;
  }

  public CategoryProjection name() {
    getFields().put("name", null);
    return this;
  }

  public CategoryProjection name(String locale, List acceptLanguage) {
    getFields().put("name", null);
    getInputArguments().computeIfAbsent("name", k -> new ArrayList<>());
    InputArgument localeArg = new InputArgument("locale", locale);
    getInputArguments().get("name").add(localeArg);
    InputArgument acceptLanguageArg = new InputArgument("acceptLanguage", acceptLanguage);
    getInputArguments().get("name").add(acceptLanguageArg);
    return this;
  }

  public CategoryProjection description() {
    getFields().put("description", null);
    return this;
  }

  public CategoryProjection description(String locale, List acceptLanguage) {
    getFields().put("description", null);
    getInputArguments().computeIfAbsent("description", k -> new ArrayList<>());
    InputArgument localeArg = new InputArgument("locale", locale);
    getInputArguments().get("description").add(localeArg);
    InputArgument acceptLanguageArg = new InputArgument("acceptLanguage", acceptLanguage);
    getInputArguments().get("description").add(acceptLanguageArg);
    return this;
  }

  public CategoryProjection slug() {
    getFields().put("slug", null);
    return this;
  }

  public CategoryProjection slug(String locale, List acceptLanguage) {
    getFields().put("slug", null);
    getInputArguments().computeIfAbsent("slug", k -> new ArrayList<>());
    InputArgument localeArg = new InputArgument("locale", locale);
    getInputArguments().get("slug").add(localeArg);
    InputArgument acceptLanguageArg = new InputArgument("acceptLanguage", acceptLanguage);
    getInputArguments().get("slug").add(acceptLanguageArg);
    return this;
  }

  public CategoryProjection orderHint() {
    getFields().put("orderHint", null);
    return this;
  }

  public CategoryProjection externalId() {
    getFields().put("externalId", null);
    return this;
  }

  public CategoryProjection metaTitle() {
    getFields().put("metaTitle", null);
    return this;
  }

  public CategoryProjection metaTitle(String locale, List acceptLanguage) {
    getFields().put("metaTitle", null);
    getInputArguments().computeIfAbsent("metaTitle", k -> new ArrayList<>());
    InputArgument localeArg = new InputArgument("locale", locale);
    getInputArguments().get("metaTitle").add(localeArg);
    InputArgument acceptLanguageArg = new InputArgument("acceptLanguage", acceptLanguage);
    getInputArguments().get("metaTitle").add(acceptLanguageArg);
    return this;
  }

  public CategoryProjection metaKeywords() {
    getFields().put("metaKeywords", null);
    return this;
  }

  public CategoryProjection metaKeywords(String locale, List acceptLanguage) {
    getFields().put("metaKeywords", null);
    getInputArguments().computeIfAbsent("metaKeywords", k -> new ArrayList<>());
    InputArgument localeArg = new InputArgument("locale", locale);
    getInputArguments().get("metaKeywords").add(localeArg);
    InputArgument acceptLanguageArg = new InputArgument("acceptLanguage", acceptLanguage);
    getInputArguments().get("metaKeywords").add(acceptLanguageArg);
    return this;
  }

  public CategoryProjection metaDescription() {
    getFields().put("metaDescription", null);
    return this;
  }

  public CategoryProjection metaDescription(String locale, List acceptLanguage) {
    getFields().put("metaDescription", null);
    getInputArguments().computeIfAbsent("metaDescription", k -> new ArrayList<>());
    InputArgument localeArg = new InputArgument("locale", locale);
    getInputArguments().get("metaDescription").add(localeArg);
    InputArgument acceptLanguageArg = new InputArgument("acceptLanguage", acceptLanguage);
    getInputArguments().get("metaDescription").add(acceptLanguageArg);
    return this;
  }

  public CategoryProjection stagedProductCount() {
    getFields().put("stagedProductCount", null);
    return this;
  }

  public CategoryProjection childCount() {
    getFields().put("childCount", null);
    return this;
  }

  public CategoryProjection createdAt() {
    getFields().put("createdAt", null);
    return this;
  }

  public CategoryProjection lastModifiedAt() {
    getFields().put("lastModifiedAt", null);
    return this;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy