brapi-java-client/src/main/java/org/brapi/client/v2/modules/phenotype/ObservationsApi.java
private Call observationsTableGetCall(BrAPIWSMIMEDataTypes accept, ObservationTableQueryParams queryParams) throws ApiException {
        if(queryParams == null) {
        	throw new IllegalArgumentException("queryParams cannot be null");
        }
        Object localVarPostBody = null;
        
        // create path and map variables
        String localVarPath = "/observations/table";

        Map<String, String> localVarQueryParams = new HashMap<>();
        Map<String, String> localVarCollectionQueryParams = new HashMap<>();
        if (queryParams.observationUnitDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "observationUnitDbId", queryParams.observationUnitDbId());
        if (queryParams.germplasmDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "germplasmDbId", queryParams.germplasmDbId());
        if (queryParams.observationVariableDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "observationVariableDbId", queryParams.observationVariableDbId());
        if (queryParams.studyDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "studyDbId", queryParams.studyDbId());
        if (queryParams.locationDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "locationDbId", queryParams.locationDbId());
        if (queryParams.trialDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "trialDbId", queryParams.trialDbId());
        if (queryParams.programDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "programDbId", queryParams.programDbId());
        if (queryParams.seasonDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "seasonDbId", queryParams.seasonDbId());
        if (queryParams.observationLevel() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "observationLevel", queryParams.observationLevel());
        if (queryParams.searchResultsDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "searchResultsDbId", queryParams.searchResultsDbId());
        if (queryParams.observationTimeStampRangeStart() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "observationTimeStampRangeStart", queryParams.observationTimeStampRangeStart());
        if (queryParams.observationTimeStampRangeEnd() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "observationTimeStampRangeEnd", queryParams.observationTimeStampRangeEnd());

        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        if (accept != null)
        localVarHeaderParams.put("Accept", apiClient.parameterToString(accept));
        
        

        Map<String, Object> localVarFormParams = new HashMap<String, Object>();

        final String[] localVarAccepts = {
            "application/json", "text/csv", "text/tsv"
        };
        final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);

        final String[] localVarContentTypes = {
            
        };
        final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

        String[] localVarAuthNames = new String[] { "AuthorizationToken" };
        return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);
    }
/**
     * Build call for observationsTableGet
     * @param queryParams
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     */
Build call for observationsTableGet
@param queryParams
@return Call to execute
@throws ApiException If fail to serialize the request body object
Build call for observationsTableGet @param queryParams @return Call to execute @throws ApiException If fail to serialize the request body object
private Call observationsTableGetCall(BrAPIWSMIMEDataTypes accept, ObservationTableQueryParams queryParams) throws ApiException {
        if(queryParams == null) {
        	throw new IllegalArgumentException("queryParams cannot be null");
        }
        Object localVarPostBody = null;
        String localVarPath = "/observations/table";
        Map<String, String> localVarQueryParams = new HashMap<>();
        Map<String, String> localVarCollectionQueryParams = new HashMap<>();
        if (queryParams.observationUnitDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "observationUnitDbId", queryParams.observationUnitDbId());
        if (queryParams.germplasmDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "germplasmDbId", queryParams.germplasmDbId());
        if (queryParams.observationVariableDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "observationVariableDbId", queryParams.observationVariableDbId());
        if (queryParams.studyDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "studyDbId", queryParams.studyDbId());
        if (queryParams.locationDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "locationDbId", queryParams.locationDbId());
        if (queryParams.trialDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "trialDbId", queryParams.trialDbId());
        if (queryParams.programDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "programDbId", queryParams.programDbId());
        if (queryParams.seasonDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "seasonDbId", queryParams.seasonDbId());
        if (queryParams.observationLevel() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "observationLevel", queryParams.observationLevel());
        if (queryParams.searchResultsDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "searchResultsDbId", queryParams.searchResultsDbId());
        if (queryParams.observationTimeStampRangeStart() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "observationTimeStampRangeStart", queryParams.observationTimeStampRangeStart());
        if (queryParams.observationTimeStampRangeEnd() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "observationTimeStampRangeEnd", queryParams.observationTimeStampRangeEnd());
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        if (accept != null)
        localVarHeaderParams.put("Accept", apiClient.parameterToString(accept));
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "text/csv", "text/tsv"
        };
        final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
        final String[] localVarContentTypes = {
        };
        final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);
        String[] localVarAuthNames = new String[] { "AuthorizationToken" };
        return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);
    }
private Call observationsTableGetCall ( BrAPIWSMIMEDataTypes accept , ObservationTableQueryParams queryParams ) throws ApiException { if ( queryParams == null ) { throw new IllegalArgumentException ( "queryParams cannot be null" ) ; } Object localVarPostBody = null ; String localVarPath = "/observations/table" ; Map < String , String > localVarQueryParams = new HashMap < > ( ) ; Map < String , String > localVarCollectionQueryParams = new HashMap < > ( ) ; if ( queryParams . observationUnitDbId ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "observationUnitDbId" , queryParams . observationUnitDbId ( ) ) ; if ( queryParams . germplasmDbId ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "germplasmDbId" , queryParams . germplasmDbId ( ) ) ; if ( queryParams . observationVariableDbId ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "observationVariableDbId" , queryParams . observationVariableDbId ( ) ) ; if ( queryParams . studyDbId ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "studyDbId" , queryParams . studyDbId ( ) ) ; if ( queryParams . locationDbId ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "locationDbId" , queryParams . locationDbId ( ) ) ; if ( queryParams . trialDbId ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "trialDbId" , queryParams . trialDbId ( ) ) ; if ( queryParams . programDbId ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "programDbId" , queryParams . programDbId ( ) ) ; if ( queryParams . seasonDbId ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "seasonDbId" , queryParams . seasonDbId ( ) ) ; if ( queryParams . observationLevel ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "observationLevel" , queryParams . observationLevel ( ) ) ; if ( queryParams . searchResultsDbId ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "searchResultsDbId" , queryParams . searchResultsDbId ( ) ) ; if ( queryParams . observationTimeStampRangeStart ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "observationTimeStampRangeStart" , queryParams . observationTimeStampRangeStart ( ) ) ; if ( queryParams . observationTimeStampRangeEnd ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "observationTimeStampRangeEnd" , queryParams . observationTimeStampRangeEnd ( ) ) ; Map < String , String > localVarHeaderParams = new HashMap < String , String > ( ) ; if ( accept != null ) localVarHeaderParams . put ( "Accept" , apiClient . parameterToString ( accept ) ) ; Map < String , Object > localVarFormParams = new HashMap < String , Object > ( ) ; final String [ ] localVarAccepts = { "application/json" , "text/csv" , "text/tsv" } ; final String localVarAccept = apiClient . selectHeaderAccept ( localVarAccepts ) ; if ( localVarAccept != null ) localVarHeaderParams . put ( "Accept" , localVarAccept ) ; final String [ ] localVarContentTypes = { } ; final String localVarContentType = apiClient . selectHeaderContentType ( localVarContentTypes ) ; localVarHeaderParams . put ( "Content-Type" , localVarContentType ) ; String [ ] localVarAuthNames = new String [ ] { "AuthorizationToken" } ; return apiClient . buildCall ( localVarPath , "GET" , localVarQueryParams , localVarCollectionQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAuthNames ) ; }
Build call for observationsTableGet
 @param queryParams
 @return Call to execute
 @throws ApiException If fail to serialize the request body object
Build call for observationsTableGet @param queryParams @return Call to execute @throws ApiException If fail to serialize the request body object
// create path and map variables