congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ResponseField.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.apollographql.apollo.api.ResponseField
constructor

Best Java code snippets using com.apollographql.apollo.api.ResponseField.<init> (Showing top 20 results out of 315)

origin: apollographql/apollo-android

/**
 * Factory method for creating a Field instance representing a custom {@link Type#OBJECT}.
 *
 * @param responseName alias for the result of a field
 * @param fieldName    name of the field in the GraphQL operation
 * @param arguments    arguments to be passed along with the field
 * @param optional     whether the arguments passed along are optional or required
 * @param conditions   list of conditions for this field
 * @return Field instance representing custom {@link Type#OBJECT}
 */
public static ResponseField forObject(String responseName, String fieldName, Map<String, Object> arguments,
  boolean optional, List<Condition> conditions) {
 return new ResponseField(Type.OBJECT, responseName, fieldName, arguments, optional, conditions);
}
origin: apollographql/apollo-android

/**
 * Factory method for creating a Field instance representing {@link Type#DOUBLE}.
 *
 * @param responseName alias for the result of a field
 * @param fieldName    name of the field in the GraphQL operation
 * @param arguments    arguments to be passed along with the field
 * @param optional     whether the arguments passed along are optional or required
 * @param conditions   list of conditions for this field
 * @return Field instance representing {@link Type#DOUBLE}
 */
public static ResponseField forDouble(String responseName, String fieldName, Map<String, Object> arguments,
  boolean optional, List<Condition> conditions) {
 return new ResponseField(Type.DOUBLE, responseName, fieldName, arguments, optional, conditions);
}
origin: apollographql/apollo-android

/**
 * Factory method for creating a Field instance representing {@link Type#ENUM}.
 *
 * @param responseName alias for the result of a field
 * @param fieldName    name of the field in the GraphQL operation
 * @param arguments    arguments to be passed along with the field
 * @param optional     whether the arguments passed along are optional or required
 * @param conditions   list of conditions for this field
 * @return Field instance representing {@link Type#ENUM}
 */
public static ResponseField forEnum(String responseName, String fieldName, Map<String, Object> arguments,
  boolean optional, List<Condition> conditions) {
 return new ResponseField(Type.ENUM, responseName, fieldName, arguments, optional, conditions);
}
origin: apollographql/apollo-android

/**
 * Factory method for creating a Field instance representing {@link Type#LIST}.
 *
 * @param responseName alias for the result of a field
 * @param fieldName    name of the field in the GraphQL operation
 * @param arguments    arguments to be passed along with the field
 * @param optional     whether the arguments passed along are optional or required
 * @param conditions   list of conditions for this field
 * @return Field instance representing {@link Type#LIST}
 */
public static ResponseField forList(String responseName, String fieldName, Map<String, Object> arguments,
  boolean optional, List<Condition> conditions) {
 return new ResponseField(Type.LIST, responseName, fieldName, arguments, optional, conditions);
}
origin: apollographql/apollo-android

/**
 * Factory method for creating a Field instance representing {@link Type#STRING}.
 *
 * @param responseName alias for the result of a field
 * @param fieldName    name of the field in the GraphQL operation
 * @param arguments    arguments to be passed along with the field
 * @param optional     whether the arguments passed along are optional or required
 * @param conditions   list of conditions for this field
 * @return Field instance representing {@link Type#STRING}
 */
public static ResponseField forString(String responseName, String fieldName, Map<String, Object> arguments,
  boolean optional, List<Condition> conditions) {
 return new ResponseField(Type.STRING, responseName, fieldName, arguments, optional, conditions);
}
origin: apollographql/apollo-android

/**
 * Factory method for creating a Field instance representing {@link Type#INT}.
 *
 * @param responseName alias for the result of a field
 * @param fieldName    name of the field in the GraphQL operation
 * @param arguments    arguments to be passed along with the field
 * @param optional     whether the arguments passed along are optional or required
 * @param conditions   list of conditions for this field
 * @return Field instance representing {@link Type#INT}
 */
public static ResponseField forInt(String responseName, String fieldName, Map<String, Object> arguments,
  boolean optional, List<Condition> conditions) {
 return new ResponseField(Type.INT, responseName, fieldName, arguments, optional, conditions);
}
origin: apollographql/apollo-android

/**
 * Factory method for creating a Field instance representing {@link Type#LONG}.
 *
 * @param responseName alias for the result of a field
 * @param fieldName    name of the field in the GraphQL operation
 * @param arguments    arguments to be passed along with the field
 * @param optional     whether the arguments passed along are optional or required
 * @param conditions   list of conditions for this field
 * @return Field instance representing {@link Type#LONG}
 */
public static ResponseField forLong(String responseName, String fieldName, Map<String, Object> arguments,
  boolean optional, List<Condition> conditions) {
 return new ResponseField(Type.LONG, responseName, fieldName, arguments, optional, conditions);
}
origin: apollographql/apollo-android

/**
 * Factory method for creating a Field instance representing {@link Type#BOOLEAN}.
 *
 * @param responseName alias for the result of a field
 * @param fieldName    name of the field in the GraphQL operation
 * @param arguments    arguments to be passed along with the field
 * @param optional     whether the arguments passed along are optional or required
 * @param conditions   list of conditions for this field
 * @return Field instance representing {@link Type#BOOLEAN}
 */
public static ResponseField forBoolean(String responseName, String fieldName, Map<String, Object> arguments,
  boolean optional, List<Condition> conditions) {
 return new ResponseField(Type.BOOLEAN, responseName, fieldName, arguments, optional, conditions);
}
origin: apollographql/apollo-android

/**
 * Factory method for creating a Field instance representing {@link Type#INLINE_FRAGMENT}.
 *
 * @param responseName   alias for the result of a field
 * @param fieldName      name of the field in the GraphQL operation
 * @param typeConditions conditional GraphQL types
 * @return Field instance representing {@link Type#INLINE_FRAGMENT}
 */
public static ResponseField forInlineFragment(String responseName, String fieldName, List<String> typeConditions) {
 List<Condition> conditions = new ArrayList<>(typeConditions.size());
 for (String typeCondition : typeConditions) {
  conditions.add(Condition.typeCondition(typeCondition));
 }
 return new ResponseField(Type.INLINE_FRAGMENT, responseName, fieldName, Collections.<String, Object>emptyMap(),
   false, conditions);
}
origin: apollographql/apollo-android

/**
 * Factory method for creating a Field instance representing {@link Type#FRAGMENT}.
 *
 * @param responseName   alias for the result of a field
 * @param fieldName      name of the field in the GraphQL operation
 * @param typeConditions conditional GraphQL types
 * @return Field instance representing {@link Type#FRAGMENT}
 */
public static ResponseField forFragment(String responseName, String fieldName, List<String> typeConditions) {
 List<Condition> conditions = new ArrayList<>(typeConditions.size());
 for (String typeCondition : typeConditions) {
  conditions.add(Condition.typeCondition(typeCondition));
 }
 return new ResponseField(Type.FRAGMENT, responseName, fieldName, Collections.<String, Object>emptyMap(),
   false, conditions);
}
origin: com.amazonaws/aws-android-sdk-appsync-api

/**
 * Factory method for creating a Field instance representing {@link Type#DOUBLE}.
 *
 * @param responseName alias for the result of a field
 * @param fieldName    name of the field in the GraphQL operation
 * @param arguments    arguments to be passed along with the field
 * @param optional     whether the arguments passed along are optional or required
 * @param conditions   list of conditions for this field
 * @return Field instance representing {@link Type#DOUBLE}
 */
public static ResponseField forDouble(String responseName, String fieldName, Map<String, Object> arguments,
                   boolean optional, List<Condition> conditions) {
 return new ResponseField(Type.DOUBLE, responseName, fieldName, arguments, optional, conditions);
}
origin: com.amazonaws/aws-android-sdk-appsync-api

/**
 * Factory method for creating a Field instance representing {@link Type#INT}.
 *
 * @param responseName alias for the result of a field
 * @param fieldName    name of the field in the GraphQL operation
 * @param arguments    arguments to be passed along with the field
 * @param optional     whether the arguments passed along are optional or required
 * @param conditions   list of conditions for this field
 * @return Field instance representing {@link Type#INT}
 */
public static ResponseField forInt(String responseName, String fieldName, Map<String, Object> arguments,
                  boolean optional, List<Condition> conditions) {
 return new ResponseField(Type.INT, responseName, fieldName, arguments, optional, conditions);
}
origin: com.amazonaws/aws-android-sdk-appsync-api

/**
 * Factory method for creating a Field instance representing {@link Type#BOOLEAN}.
 *
 * @param responseName alias for the result of a field
 * @param fieldName    name of the field in the GraphQL operation
 * @param arguments    arguments to be passed along with the field
 * @param optional     whether the arguments passed along are optional or required
 * @param conditions   list of conditions for this field
 * @return Field instance representing {@link Type#BOOLEAN}
 */
public static ResponseField forBoolean(String responseName, String fieldName, Map<String, Object> arguments,
                    boolean optional, List<Condition> conditions) {
 return new ResponseField(Type.BOOLEAN, responseName, fieldName, arguments, optional, conditions);
}
origin: com.amazonaws/aws-android-sdk-appsync-api

/**
 * Factory method for creating a Field instance representing {@link Type#ENUM}.
 *
 * @param responseName alias for the result of a field
 * @param fieldName    name of the field in the GraphQL operation
 * @param arguments    arguments to be passed along with the field
 * @param optional     whether the arguments passed along are optional or required
 * @param conditions   list of conditions for this field
 * @return Field instance representing {@link Type#ENUM}
 */
public static ResponseField forEnum(String responseName, String fieldName, Map<String, Object> arguments,
                  boolean optional, List<Condition> conditions) {
 return new ResponseField(Type.ENUM, responseName, fieldName, arguments, optional, conditions);
}
origin: com.amazonaws/aws-android-sdk-appsync-api

/**
 * Factory method for creating a Field instance representing {@link Type#LIST}.
 *
 * @param responseName alias for the result of a field
 * @param fieldName    name of the field in the GraphQL operation
 * @param arguments    arguments to be passed along with the field
 * @param optional     whether the arguments passed along are optional or required
 * @param conditions   list of conditions for this field
 * @return Field instance representing {@link Type#LIST}
 */
public static ResponseField forList(String responseName, String fieldName, Map<String, Object> arguments,
                  boolean optional, List<Condition> conditions) {
 return new ResponseField(Type.LIST, responseName, fieldName, arguments, optional, conditions);
}
origin: awslabs/aws-mobile-appsync-sdk-android

/**
 * Factory method for creating a Field instance representing {@link Type#STRING}.
 *
 * @param responseName alias for the result of a field
 * @param fieldName    name of the field in the GraphQL operation
 * @param arguments    arguments to be passed along with the field
 * @param optional     whether the arguments passed along are optional or required
 * @param conditions   list of conditions for this field
 * @return Field instance representing {@link Type#STRING}
 */
public static ResponseField forString(String responseName, String fieldName, Map<String, Object> arguments,
                   boolean optional, List<Condition> conditions) {
 return new ResponseField(Type.STRING, responseName, fieldName, arguments, optional, conditions);
}
origin: awslabs/aws-mobile-appsync-sdk-android

/**
 * Factory method for creating a Field instance representing {@link Type#INT}.
 *
 * @param responseName alias for the result of a field
 * @param fieldName    name of the field in the GraphQL operation
 * @param arguments    arguments to be passed along with the field
 * @param optional     whether the arguments passed along are optional or required
 * @param conditions   list of conditions for this field
 * @return Field instance representing {@link Type#INT}
 */
public static ResponseField forInt(String responseName, String fieldName, Map<String, Object> arguments,
                  boolean optional, List<Condition> conditions) {
 return new ResponseField(Type.INT, responseName, fieldName, arguments, optional, conditions);
}
origin: awslabs/aws-mobile-appsync-sdk-android

/**
 * Factory method for creating a Field instance representing {@link Type#LONG}.
 *
 * @param responseName alias for the result of a field
 * @param fieldName    name of the field in the GraphQL operation
 * @param arguments    arguments to be passed along with the field
 * @param optional     whether the arguments passed along are optional or required
 * @param conditions   list of conditions for this field
 * @return Field instance representing {@link Type#LONG}
 */
public static ResponseField forLong(String responseName, String fieldName, Map<String, Object> arguments,
                  boolean optional, List<Condition> conditions) {
 return new ResponseField(Type.LONG, responseName, fieldName, arguments, optional, conditions);
}
origin: awslabs/aws-mobile-appsync-sdk-android

/**
 * Factory method for creating a Field instance representing a custom {@link Type#OBJECT}.
 *
 * @param responseName alias for the result of a field
 * @param fieldName    name of the field in the GraphQL operation
 * @param arguments    arguments to be passed along with the field
 * @param optional     whether the arguments passed along are optional or required
 * @param conditions   list of conditions for this field
 * @return Field instance representing custom {@link Type#OBJECT}
 */
public static ResponseField forObject(String responseName, String fieldName, Map<String, Object> arguments,
                   boolean optional, List<Condition> conditions) {
 return new ResponseField(Type.OBJECT, responseName, fieldName, arguments, optional, conditions);
}
origin: com.amazonaws/aws-android-sdk-appsync-api

/**
 * Factory method for creating a Field instance representing {@link Type#STRING}.
 *
 * @param responseName alias for the result of a field
 * @param fieldName    name of the field in the GraphQL operation
 * @param arguments    arguments to be passed along with the field
 * @param optional     whether the arguments passed along are optional or required
 * @param conditions   list of conditions for this field
 * @return Field instance representing {@link Type#STRING}
 */
public static ResponseField forString(String responseName, String fieldName, Map<String, Object> arguments,
                   boolean optional, List<Condition> conditions) {
 return new ResponseField(Type.STRING, responseName, fieldName, arguments, optional, conditions);
}
com.apollographql.apollo.apiResponseField<init>

Popular methods of ResponseField

  • fieldName
  • isArgumentValueVariableType
  • conditions
  • optional
  • responseName
  • type
  • cacheKey
  • orderIndependentKey
  • orderIndependentKeyForVariableArgument
  • arguments
  • forBoolean
    Factory method for creating a Field instance representing Type#BOOLEAN.
  • forCustomType
    Factory method for creating a Field instance representing a custom GraphQL Scalar type, Type#CUSTOM
  • forBoolean,
  • forCustomType,
  • forDouble,
  • forFragment,
  • forInt,
  • forList,
  • forLong,
  • forObject,
  • forString

Popular in Java

  • Reactive rest calls using spring rest template
  • setRequestProperty (URLConnection)
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (Timer)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now