net.nemerosa.ontrack.kdsl.connector.graphql.schema.SubscribeToEntityEventsMutation 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.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.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.fasterxml.jackson.databind.JsonNode;
import java.io.IOException;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.Arrays;
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.PayloadUserErrors;
import net.nemerosa.ontrack.kdsl.connector.graphql.schema.type.ProjectEntityType;
import okio.Buffer;
import okio.BufferedSource;
import okio.ByteString;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public final class SubscribeToEntityEventsMutation implements Mutation {
public static final String OPERATION_ID = "0beb9709dc02108ae596f6720f76d64e4468adc3f931dd811f518104c36af5d1";
public static final String QUERY_DOCUMENT = QueryDocumentMinifier.minify(
"mutation SubscribeToEntityEvents($entityType: ProjectEntityType!, $entityId: Int!, $channel: String!, $channelConfig: JSON!, $keywords: String, $events: [String!]!) {\n"
+ " subscribeToEvents(input: {projectEntity: {type: $entityType, id: $entityId}, channel: $channel, channelConfig: $channelConfig, keywords: $keywords, events: $events}) {\n"
+ " __typename\n"
+ " ...PayloadUserErrors\n"
+ " }\n"
+ "}\n"
+ "fragment PayloadUserErrors on Payload {\n"
+ " __typename\n"
+ " errors {\n"
+ " __typename\n"
+ " message\n"
+ " exception\n"
+ " location\n"
+ " }\n"
+ "}"
);
public static final OperationName OPERATION_NAME = new OperationName() {
@Override
public String name() {
return "SubscribeToEntityEvents";
}
};
private final SubscribeToEntityEventsMutation.Variables variables;
public SubscribeToEntityEventsMutation(@NotNull ProjectEntityType entityType, int entityId,
@NotNull String channel, @NotNull JsonNode channelConfig, @NotNull Input keywords,
@NotNull List events) {
Utils.checkNotNull(entityType, "entityType == null");
Utils.checkNotNull(channel, "channel == null");
Utils.checkNotNull(channelConfig, "channelConfig == null");
Utils.checkNotNull(keywords, "keywords == null");
Utils.checkNotNull(events, "events == null");
variables = new SubscribeToEntityEventsMutation.Variables(entityType, entityId, channel, channelConfig, keywords, events);
}
@Override
public String operationId() {
return OPERATION_ID;
}
@Override
public String queryDocument() {
return QUERY_DOCUMENT;
}
@Override
public SubscribeToEntityEventsMutation.Data wrapData(SubscribeToEntityEventsMutation.Data data) {
return data;
}
@Override
public SubscribeToEntityEventsMutation.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 ProjectEntityType entityType;
private int entityId;
private @NotNull String channel;
private @NotNull JsonNode channelConfig;
private Input keywords = Input.absent();
private @NotNull List events;
Builder() {
}
public Builder entityType(@NotNull ProjectEntityType entityType) {
this.entityType = entityType;
return this;
}
public Builder entityId(int entityId) {
this.entityId = entityId;
return this;
}
public Builder channel(@NotNull String channel) {
this.channel = channel;
return this;
}
public Builder channelConfig(@NotNull JsonNode channelConfig) {
this.channelConfig = channelConfig;
return this;
}
public Builder keywords(@Nullable String keywords) {
this.keywords = Input.fromNullable(keywords);
return this;
}
public Builder events(@NotNull List events) {
this.events = events;
return this;
}
public Builder keywordsInput(@NotNull Input keywords) {
this.keywords = Utils.checkNotNull(keywords, "keywords == null");
return this;
}
public SubscribeToEntityEventsMutation build() {
Utils.checkNotNull(entityType, "entityType == null");
Utils.checkNotNull(channel, "channel == null");
Utils.checkNotNull(channelConfig, "channelConfig == null");
Utils.checkNotNull(events, "events == null");
return new SubscribeToEntityEventsMutation(entityType, entityId, channel, channelConfig, keywords, events);
}
}
public static final class Variables extends Operation.Variables {
private final @NotNull ProjectEntityType entityType;
private final int entityId;
private final @NotNull String channel;
private final @NotNull JsonNode channelConfig;
private final Input keywords;
private final @NotNull List events;
private final transient Map valueMap = new LinkedHashMap<>();
Variables(@NotNull ProjectEntityType entityType, int entityId, @NotNull String channel,
@NotNull JsonNode channelConfig, Input keywords, @NotNull List events) {
this.entityType = entityType;
this.entityId = entityId;
this.channel = channel;
this.channelConfig = channelConfig;
this.keywords = keywords;
this.events = events;
this.valueMap.put("entityType", entityType);
this.valueMap.put("entityId", entityId);
this.valueMap.put("channel", channel);
this.valueMap.put("channelConfig", channelConfig);
if (keywords.defined) {
this.valueMap.put("keywords", keywords.value);
}
this.valueMap.put("events", events);
}
public @NotNull ProjectEntityType entityType() {
return entityType;
}
public int entityId() {
return entityId;
}
public @NotNull String channel() {
return channel;
}
public @NotNull JsonNode channelConfig() {
return channelConfig;
}
public Input keywords() {
return keywords;
}
public @NotNull List events() {
return events;
}
@Override
public Map valueMap() {
return Collections.unmodifiableMap(valueMap);
}
@Override
public InputFieldMarshaller marshaller() {
return new InputFieldMarshaller() {
@Override
public void marshal(InputFieldWriter writer) throws IOException {
writer.writeString("entityType", entityType.rawValue());
writer.writeInt("entityId", entityId);
writer.writeString("channel", channel);
writer.writeCustom("channelConfig", net.nemerosa.ontrack.kdsl.connector.graphql.schema.type.CustomType.JSON, channelConfig);
if (keywords.defined) {
writer.writeString("keywords", keywords.value);
}
writer.writeList("events", new InputFieldWriter.ListWriter() {
@Override
public void write(InputFieldWriter.ListItemWriter listItemWriter) throws IOException {
for (final String $item : events) {
listItemWriter.writeString($item);
}
}
});
}
};
}
}
/**
* Data from the response after executing this GraphQL operation
*/
public static class Data implements Operation.Data {
static final ResponseField[] $responseFields = {
ResponseField.forObject("subscribeToEvents", "subscribeToEvents", new UnmodifiableMapBuilder(1)
.put("input", new UnmodifiableMapBuilder(5)
.put("projectEntity", new UnmodifiableMapBuilder(2)
.put("type", new UnmodifiableMapBuilder(2)
.put("kind", "Variable")
.put("variableName", "entityType")
.build())
.put("id", new UnmodifiableMapBuilder(2)
.put("kind", "Variable")
.put("variableName", "entityId")
.build())
.build())
.put("channel", new UnmodifiableMapBuilder(2)
.put("kind", "Variable")
.put("variableName", "channel")
.build())
.put("channelConfig", new UnmodifiableMapBuilder(2)
.put("kind", "Variable")
.put("variableName", "channelConfig")
.build())
.put("keywords", new UnmodifiableMapBuilder(2)
.put("kind", "Variable")
.put("variableName", "keywords")
.build())
.put("events", new UnmodifiableMapBuilder(2)
.put("kind", "Variable")
.put("variableName", "events")
.build())
.build())
.build(), true, Collections.emptyList())
};
final @Nullable SubscribeToEvents subscribeToEvents;
private transient volatile String $toString;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
public Data(@Nullable SubscribeToEvents subscribeToEvents) {
this.subscribeToEvents = subscribeToEvents;
}
/**
* Creates a subscription to a list of events
*/
public @Nullable SubscribeToEvents subscribeToEvents() {
return this.subscribeToEvents;
}
@SuppressWarnings({"rawtypes", "unchecked"})
public ResponseFieldMarshaller marshaller() {
return new ResponseFieldMarshaller() {
@Override
public void marshal(ResponseWriter writer) {
writer.writeObject($responseFields[0], subscribeToEvents != null ? subscribeToEvents.marshaller() : null);
}
};
}
@Override
public String toString() {
if ($toString == null) {
$toString = "Data{"
+ "subscribeToEvents=" + subscribeToEvents
+ "}";
}
return $toString;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Data) {
Data that = (Data) o;
return ((this.subscribeToEvents == null) ? (that.subscribeToEvents == null) : this.subscribeToEvents.equals(that.subscribeToEvents));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int h = 1;
h *= 1000003;
h ^= (subscribeToEvents == null) ? 0 : subscribeToEvents.hashCode();
$hashCode = h;
$hashCodeMemoized = true;
}
return $hashCode;
}
public static final class Mapper implements ResponseFieldMapper {
final SubscribeToEvents.Mapper subscribeToEventsFieldMapper = new SubscribeToEvents.Mapper();
@Override
public Data map(ResponseReader reader) {
final SubscribeToEvents subscribeToEvents = reader.readObject($responseFields[0], new ResponseReader.ObjectReader() {
@Override
public SubscribeToEvents read(ResponseReader reader) {
return subscribeToEventsFieldMapper.map(reader);
}
});
return new Data(subscribeToEvents);
}
}
}
/**
* Output type for the subscribeToEvents mutation.
*/
public static class SubscribeToEvents {
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 SubscribeToEvents(@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 = "SubscribeToEvents{"
+ "__typename=" + __typename + ", "
+ "fragments=" + fragments
+ "}";
}
return $toString;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof SubscribeToEvents) {
SubscribeToEvents that = (SubscribeToEvents) 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 @Nullable PayloadUserErrors payloadUserErrors;
private transient volatile String $toString;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
public Fragments(@Nullable PayloadUserErrors payloadUserErrors) {
this.payloadUserErrors = payloadUserErrors;
}
public @Nullable PayloadUserErrors payloadUserErrors() {
return this.payloadUserErrors;
}
public ResponseFieldMarshaller marshaller() {
return new ResponseFieldMarshaller() {
@Override
public void marshal(ResponseWriter writer) {
final PayloadUserErrors $payloadUserErrors = payloadUserErrors;
if ($payloadUserErrors != null) {
writer.writeFragment($payloadUserErrors.marshaller());
}
}
};
}
@Override
public String toString() {
if ($toString == null) {
$toString = "Fragments{"
+ "payloadUserErrors=" + payloadUserErrors
+ "}";
}
return $toString;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Fragments) {
Fragments that = (Fragments) o;
return ((this.payloadUserErrors == null) ? (that.payloadUserErrors == null) : this.payloadUserErrors.equals(that.payloadUserErrors));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int h = 1;
h *= 1000003;
h ^= (payloadUserErrors == null) ? 0 : payloadUserErrors.hashCode();
$hashCode = h;
$hashCodeMemoized = true;
}
return $hashCode;
}
public static final class Mapper implements ResponseFieldMapper {
static final ResponseField[] $responseFields = {
ResponseField.forFragment("__typename", "__typename", Arrays.asList(
ResponseField.Condition.typeCondition(new String[] {"CheckAutoVersioningPayload", "CreateBranchOrGetPayload", "CreateBranchPayload", "CreateBuildOrGetPayload", "CreateBuildPayload", "CreateGitHubConfigurationPayload", "CreateProjectOrGetPayload", "CreateProjectPayload", "CreatePromotionLevelByIdPayload", "CreatePromotionRunByIdPayload", "CreatePromotionRunPayload", "CreateValidationRunByIdPayload", "CreateValidationRunPayload", "CreateValidationStampByIdPayload", "CreateWebhookPayload", "DeleteBranchGitConfigPropertyByIdPayload", "DeleteBranchGitConfigPropertyPayload", "DeleteBranchMessagePropertyByIdPayload", "DeleteBranchMessagePropertyPayload", "DeleteBranchMetaInfoPropertyByIdPayload", "DeleteBranchMetaInfoPropertyPayload", "DeleteBuildGitCommitPropertyByIdPayload", "DeleteBuildGitCommitPropertyPayload", "DeleteBuildMessagePropertyByIdPayload", "DeleteBuildMessagePropertyPayload", "DeleteBuildMetaInfoPropertyByIdPayload", "DeleteBuildMetaInfoPropertyPayload", "DeleteBuildReleasePropertyByIdPayload", "DeleteBuildReleasePropertyPayload", "DeleteNotificationRecordsPayload", "DeleteProjectAutoPromotionLevelPropertyByIdPayload", "DeleteProjectAutoPromotionLevelPropertyPayload", "DeleteProjectAutoValidationStampPropertyByIdPayload", "DeleteProjectAutoValidationStampPropertyPayload", "DeleteProjectBitbucketCloudConfigurationPropertyByIdPayload", "DeleteProjectBitbucketCloudConfigurationPropertyPayload", "DeleteProjectBitbucketConfigurationPropertyByIdPayload", "DeleteProjectBitbucketConfigurationPropertyPayload", "DeleteProjectGitHubConfigurationPropertyByIdPayload", "DeleteProjectGitHubConfigurationPropertyPayload", "DeleteProjectGitLabConfigurationPropertyByIdPayload", "DeleteProjectGitLabConfigurationPropertyPayload", "DeleteProjectMessagePropertyByIdPayload", "DeleteProjectMessagePropertyPayload", "DeleteProjectMetaInfoPropertyByIdPayload", "DeleteProjectMetaInfoPropertyPayload", "DeleteProjectPayload", "DeleteProjectStalePropertyByIdPayload", "DeleteProjectStalePropertyPayload", "DeletePromotionLevelAutoPromotionPropertyByIdPayload", "DeletePromotionLevelAutoPromotionPropertyPayload", "DeletePromotionLevelMessagePropertyByIdPayload", "DeletePromotionLevelMessagePropertyPayload", "DeletePromotionLevelMetaInfoPropertyByIdPayload", "DeletePromotionLevelMetaInfoPropertyPayload", "DeletePromotionRunMessagePropertyByIdPayload", "DeletePromotionRunMessagePropertyPayload", "DeletePromotionRunMetaInfoPropertyByIdPayload", "DeletePromotionRunMetaInfoPropertyPayload", "DeleteSubscriptionPayload", "DeleteValidationRunMessagePropertyByIdPayload", "DeleteValidationRunMessagePropertyPayload", "DeleteValidationRunMetaInfoPropertyByIdPayload", "DeleteValidationRunMetaInfoPropertyPayload", "DeleteValidationStampMessagePropertyByIdPayload", "DeleteValidationStampMessagePropertyPayload", "DeleteValidationStampMetaInfoPropertyByIdPayload", "DeleteValidationStampMetaInfoPropertyPayload", "DeleteWebhookPayload", "DisableAccountPayload", "DisableProjectPayload", "DisableSubscriptionPayload", "EnableAccountPayload", "EnableProjectPayload", "EnableSubscriptionPayload", "FavouriteProjectPayload", "GitHubCheckAutoVersioningByBuildLabelPayload", "GitHubCheckAutoVersioningByBuildNamePayload", "GitHubCheckAutoVersioningByRunIdPayload", "GitHubIngestionBuildLinksByBuildLabelPayload", "GitHubIngestionBuildLinksByBuildNamePayload", "GitHubIngestionBuildLinksByRunIdPayload", "GitHubIngestionValidateDataByBuildLabelPayload", "GitHubIngestionValidateDataByBuildNamePayload", "GitHubIngestionValidateDataByRunIdPayload", "LinkBuildByIdPayload", "LinkBuildPayload", "LinksBuildPayload", "LockAccountPayload", "ReloadCascPayload", "SetAutoVersioningConfigByNamePayload", "SetAutoVersioningConfigPayload", "SetBranchGitConfigPropertyByIdPayload", "SetBranchGitConfigPropertyPayload", "SetBranchGitHubIngestionConfigPayload", "SetBranchMessagePropertyByIdPayload", "SetBranchMessagePropertyPayload", "SetBranchMetaInfoPropertyByIdPayload", "SetBranchMetaInfoPropertyPayload", "SetBranchPropertyByIdPayload", "SetBranchPropertyPayload", "SetBuildGitCommitPropertyByIdPayload", "SetBuildGitCommitPropertyPayload", "SetBuildMessagePropertyByIdPayload", "SetBuildMessagePropertyPayload", "SetBuildMetaInfoPropertyByIdPayload", "SetBuildMetaInfoPropertyPayload", "SetBuildPropertyByIdPayload", "SetBuildPropertyPayload", "SetBuildReleasePropertyByIdPayload", "SetBuildReleasePropertyPayload", "SetPreferencesPayload", "SetProjectAutoPromotionLevelPropertyByIdPayload", "SetProjectAutoPromotionLevelPropertyPayload", "SetProjectAutoValidationStampPropertyByIdPayload", "SetProjectAutoValidationStampPropertyPayload", "SetProjectBitbucketCloudConfigurationPropertyByIdPayload", "SetProjectBitbucketCloudConfigurationPropertyPayload", "SetProjectBitbucketConfigurationPropertyByIdPayload", "SetProjectBitbucketConfigurationPropertyPayload", "SetProjectGitHubConfigurationPropertyByIdPayload", "SetProjectGitHubConfigurationPropertyPayload", "SetProjectGitLabConfigurationPropertyByIdPayload", "SetProjectGitLabConfigurationPropertyPayload", "SetProjectMessagePropertyByIdPayload", "SetProjectMessagePropertyPayload", "SetProjectMetaInfoPropertyByIdPayload", "SetProjectMetaInfoPropertyPayload", "SetProjectPropertyByIdPayload", "SetProjectPropertyPayload", "SetProjectStalePropertyByIdPayload", "SetProjectStalePropertyPayload", "SetPromotionLevelAutoPromotionPropertyByIdPayload", "SetPromotionLevelAutoPromotionPropertyPayload", "SetPromotionLevelMessagePropertyByIdPayload", "SetPromotionLevelMessagePropertyPayload", "SetPromotionLevelMetaInfoPropertyByIdPayload", "SetPromotionLevelMetaInfoPropertyPayload", "SetPromotionLevelPropertyByIdPayload", "SetPromotionLevelPropertyPayload", "SetPromotionRunMessagePropertyByIdPayload", "SetPromotionRunMessagePropertyPayload", "SetPromotionRunMetaInfoPropertyByIdPayload", "SetPromotionRunMetaInfoPropertyPayload", "SetPromotionRunPropertyByIdPayload", "SetPromotionRunPropertyPayload", "SetValidationRunMessagePropertyByIdPayload", "SetValidationRunMessagePropertyPayload", "SetValidationRunMetaInfoPropertyByIdPayload", "SetValidationRunMetaInfoPropertyPayload", "SetValidationRunPropertyByIdPayload", "SetValidationRunPropertyPayload", "SetValidationStampMessagePropertyByIdPayload", "SetValidationStampMessagePropertyPayload", "SetValidationStampMetaInfoPropertyByIdPayload", "SetValidationStampMetaInfoPropertyPayload", "SetValidationStampPropertyByIdPayload", "SetValidationStampPropertyPayload", "SetupCHMLValidationStampPayload", "SetupMetricsValidationStampPayload", "SetupPercentageValidationStampPayload", "SetupPromotionLevelPayload", "SetupTestSummaryValidationStampPayload", "SetupValidationStampPayload", "SubscribeToEventsPayload", "UnfavouriteProjectPayload", "UnlockAccountPayload", "UpdateProjectPayload", "ValidateBuildByIdWithCHMLPayload", "ValidateBuildByIdWithMetricsPayload", "ValidateBuildByIdWithPercentagePayload", "ValidateBuildByIdWithTestsPayload", "ValidateBuildWithCHMLPayload", "ValidateBuildWithMetricsPayload", "ValidateBuildWithPercentagePayload", "ValidateBuildWithTestsPayload"})
))
};
final PayloadUserErrors.Mapper payloadUserErrorsFieldMapper = new PayloadUserErrors.Mapper();
@Override
public @NotNull Fragments map(ResponseReader reader) {
final PayloadUserErrors payloadUserErrors = reader.readFragment($responseFields[0], new ResponseReader.ObjectReader() {
@Override
public PayloadUserErrors read(ResponseReader reader) {
return payloadUserErrorsFieldMapper.map(reader);
}
});
return new Fragments(payloadUserErrors);
}
}
}
public static final class Mapper implements ResponseFieldMapper {
final Fragments.Mapper fragmentsFieldMapper = new Fragments.Mapper();
@Override
public SubscribeToEvents map(ResponseReader reader) {
final String __typename = reader.readString($responseFields[0]);
final Fragments fragments = fragmentsFieldMapper.map(reader);
return new SubscribeToEvents(__typename, fragments);
}
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy