Java Code Examples for com.google.api.server.spi.config.AnnotationBoolean#FALSE

The following examples show how to use com.google.api.server.spi.config.AnnotationBoolean#FALSE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ApiAnnotationConfig.java    From endpoints-java with Apache License 2.0 5 votes vote down vote up
public void setIsAbstractIfSpecified(AnnotationBoolean isAbstract) {
  if (isAbstract == AnnotationBoolean.TRUE) {
    config.setIsAbstract(true);
  } else if (isAbstract == AnnotationBoolean.FALSE) {
    config.setIsAbstract(false);
  }
}
 
Example 2
Source File: ApiAnnotationConfig.java    From endpoints-java with Apache License 2.0 5 votes vote down vote up
public void setIsDefaultVersionIfSpecified(AnnotationBoolean defaultVersion) {
  if (defaultVersion == AnnotationBoolean.TRUE) {
    config.setIsDefaultVersion(true);
  } else if (defaultVersion == AnnotationBoolean.FALSE) {
    config.setIsDefaultVersion(false);
  }
}
 
Example 3
Source File: ApiAnnotationConfig.java    From endpoints-java with Apache License 2.0 5 votes vote down vote up
public void setIsDiscoverableIfSpecified(AnnotationBoolean discoverable) {
  if (discoverable == AnnotationBoolean.TRUE) {
    config.setIsDiscoverable(true);
  } else if (discoverable == AnnotationBoolean.FALSE) {
    config.setIsDiscoverable(false);
  }
}
 
Example 4
Source File: ApiAnnotationConfig.java    From endpoints-java with Apache License 2.0 5 votes vote down vote up
public void setUseDatastoreIfSpecified(AnnotationBoolean useDatastore) {
  if (useDatastore == AnnotationBoolean.TRUE) {
    config.setUseDatastore(true);
  } else if (useDatastore == AnnotationBoolean.FALSE) {
    config.setUseDatastore(false);
  }
}
 
Example 5
Source File: ApiAnnotationConfig.java    From endpoints-java with Apache License 2.0 5 votes vote down vote up
public void setApiKeyRequiredIfSpecified(AnnotationBoolean apiKeyRequired) {
  if (apiKeyRequired == AnnotationBoolean.TRUE) {
    config.setApiKeyRequired(true);
  } else if (apiKeyRequired == AnnotationBoolean.FALSE) {
    config.setApiKeyRequired(false);
  }
}
 
Example 6
Source File: ApiAuthAnnotationConfig.java    From endpoints-java with Apache License 2.0 5 votes vote down vote up
public void setAllowCookieAuthIfSpecified(AnnotationBoolean allowCookieAuth) {
  if (allowCookieAuth == AnnotationBoolean.TRUE) {
    config.setAllowCookieAuth(true);
  } else if (allowCookieAuth == AnnotationBoolean.FALSE) {
    config.setAllowCookieAuth(false);
  }
}
 
Example 7
Source File: ApiClassAnnotationConfig.java    From endpoints-java with Apache License 2.0 5 votes vote down vote up
public void setUseDatastoreIfSpecified(AnnotationBoolean useDatastore) {
  if (useDatastore == AnnotationBoolean.TRUE) {
    config.setUseDatastore(true);
  } else if (useDatastore == AnnotationBoolean.FALSE) {
    config.setUseDatastore(false);
  }
}
 
Example 8
Source File: ApiClassAnnotationConfig.java    From endpoints-java with Apache License 2.0 5 votes vote down vote up
public void setApiKeyRequiredIfSpecified(AnnotationBoolean apiKeyRequired) {
  if (apiKeyRequired == AnnotationBoolean.TRUE) {
    config.setApiKeyRequired(true);
  } else if (apiKeyRequired == AnnotationBoolean.FALSE) {
    config.setApiKeyRequired(false);
  }
}
 
Example 9
Source File: ApiMethodAnnotationConfig.java    From endpoints-java with Apache License 2.0 5 votes vote down vote up
public void setIgnoredIfSpecified(AnnotationBoolean ignored) {
  if (ignored == AnnotationBoolean.TRUE) {
    config.setIgnored(true);
  } else if (ignored == AnnotationBoolean.FALSE) {
    config.setIgnored(false);
  }
}
 
Example 10
Source File: ApiMethodAnnotationConfig.java    From endpoints-java with Apache License 2.0 5 votes vote down vote up
public void setApiKeyRequiredIfSpecified(AnnotationBoolean apiKeyRequired) {
  if (apiKeyRequired == AnnotationBoolean.TRUE) {
    config.setApiKeyRequired(true);
  } else if (apiKeyRequired == AnnotationBoolean.FALSE) {
    config.setApiKeyRequired(false);
  }
}
 
Example 11
Source File: SwaggerGeneratorTest.java    From endpoints-java with Apache License 2.0 4 votes vote down vote up
@ApiMethod(apiKeyRequired = AnnotationBoolean.FALSE)
public void overrideApiKeySetting() { }