com.commercetools.graphql.api.client.ChannelProjectionRoot Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commercetools-graphql-api Show documentation
Show all versions of commercetools-graphql-api Show documentation
The e-commerce SDK from commercetools Composable Commerce for Java
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 ChannelProjectionRoot, ROOT extends BaseSubProjectionNode, ?>> extends BaseSubProjectionNode {
public ChannelProjectionRoot() {
super(null, null, java.util.Optional.of("Channel"));
}
public ChannelProjectionRoot __typename() {
getFields().put("__typename", null);
return this;
}
public ChannelRoleProjection, ChannelProjectionRoot> roles(
) {
ChannelRoleProjection, ChannelProjectionRoot> projection = new ChannelRoleProjection<>(this, this);
getFields().put("roles", projection);
return projection;
}
public StringProjection, ChannelProjectionRoot> name(
String locale, List acceptLanguage) {
StringProjection, ChannelProjectionRoot> projection = new StringProjection<>(this, this);
getFields().put("name", projection);
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 projection;
}
public LocalizedStringProjection, ChannelProjectionRoot> nameAllLocales(
) {
LocalizedStringProjection, ChannelProjectionRoot> projection = new LocalizedStringProjection<>(this, this);
getFields().put("nameAllLocales", projection);
return projection;
}
public StringProjection, ChannelProjectionRoot> description(
String locale, List acceptLanguage) {
StringProjection, ChannelProjectionRoot> projection = new StringProjection<>(this, this);
getFields().put("description", projection);
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 projection;
}
public LocalizedStringProjection, ChannelProjectionRoot> descriptionAllLocales(
) {
LocalizedStringProjection, ChannelProjectionRoot> projection = new LocalizedStringProjection<>(this, this);
getFields().put("descriptionAllLocales", projection);
return projection;
}
public AddressProjection, ChannelProjectionRoot> address(
) {
AddressProjection, ChannelProjectionRoot> projection = new AddressProjection<>(this, this);
getFields().put("address", projection);
return projection;
}
public GeometryProjection, ChannelProjectionRoot> geoLocation(
) {
GeometryProjection, ChannelProjectionRoot> projection = new GeometryProjection<>(this, this);
getFields().put("geoLocation", projection);
return projection;
}
public ReviewRatingStatisticsProjection, ChannelProjectionRoot> reviewRatingStatistics(
) {
ReviewRatingStatisticsProjection, ChannelProjectionRoot> projection = new ReviewRatingStatisticsProjection<>(this, this);
getFields().put("reviewRatingStatistics", projection);
return projection;
}
public CustomFieldsTypeProjection, ChannelProjectionRoot> custom(
) {
CustomFieldsTypeProjection, ChannelProjectionRoot> projection = new CustomFieldsTypeProjection<>(this, this);
getFields().put("custom", projection);
return projection;
}
public InitiatorProjection, ChannelProjectionRoot> createdBy(
) {
InitiatorProjection, ChannelProjectionRoot> projection = new InitiatorProjection<>(this, this);
getFields().put("createdBy", projection);
return projection;
}
public InitiatorProjection, ChannelProjectionRoot> lastModifiedBy(
) {
InitiatorProjection, ChannelProjectionRoot> projection = new InitiatorProjection<>(this, this);
getFields().put("lastModifiedBy", projection);
return projection;
}
public ChannelProjectionRoot id() {
getFields().put("id", null);
return this;
}
public ChannelProjectionRoot version() {
getFields().put("version", null);
return this;
}
public ChannelProjectionRoot key() {
getFields().put("key", null);
return this;
}
public ChannelProjectionRoot name() {
getFields().put("name", null);
return this;
}
public ChannelProjectionRoot description() {
getFields().put("description", null);
return this;
}
public ChannelProjectionRoot createdAt() {
getFields().put("createdAt", null);
return this;
}
public ChannelProjectionRoot lastModifiedAt() {
getFields().put("lastModifiedAt", null);
return this;
}
}