Added Cloud Support API v2 Code Samples

This PR has code samples for Cloud Support API v2. We cannot include unit tests as part of this PR since it involves sensitive information (private key of service accounts / gcp support account). However, this code is tested well internally and it works. Product team suggested to include this in the repo though so that they can easily embed it in the public docs. Thanks!

[x] I have followed Sample Format Guide
[x] pom.xml parent set to latest shared-configuration
[x] Appropriate changes to README are included in PR
[x] API's need to be enabled to test (tell us)
[x] Environment Variables need to be set (ask us to set them)
[x] Tests pass:   mvn clean verify required
[x] Lint  passes: mvn -P lint checkstyle:check required
[x] Static Analysis:  mvn -P lint clean compile pmd:cpd-check spotbugs:check advisory only
[x] Please merge this PR for me once it is approved.

@eenclona-google Please visit github/ and add yourself to the googlecloudplatform & googleapis groups.

Also, your tests are missing.  Definitely please fix that.

@eenclona-google Welcome to Google - please fix the requested changes, feel free to reach out to me or @Neenu1995 if you have questions or need some help.

Hi @lesv ! Thanks for the comments. Will take a look at these and fix. Re: tests, I wasn't sure how to write those since I was originally using service account private keys and wasn't aware of ADC. I'll review this and try to include the unit tests as well. Will probably ping you with some questions as I go! I hope that's okay. Thanks a lot! :)

Hi @lesv ! I just updated my PR with the changes requested. I hope this is good! Thanks!

@eenclona-google It looks like things didn't run correctly.  You might wish to look at the results from snippet-bot, Lint, Java 8, and Java 11 and fix them.  Let me know if you need me to enable an API or provide something new.

Lint

for reference, we use google style with an extended line length and the ability to disable.

#
# support/cloud-client
#

[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[1] (header) RegexpHeader: Line does not match expected header line of '^\W+\*?\W*Copyright 20\d\d Google (Inc\.|LLC)$'.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[26,1] (imports) CustomImportOrder: Wrong lexicographical order for 'java.io.InputStreamReader' import. Should be before 'java.io.Reader'.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[30,1] (imports) CustomImportOrder: Extra separation in import group before 'com.google.api.client.googleapis.javanet.GoogleNetHttpTransport'
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[30,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.googleapis.javanet.GoogleNetHttpTransport' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[31,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.http.HttpRequestInitializer' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[32,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.http.HttpTransport' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[33,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.json.JsonFactory' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[34,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.json.gson.GsonFactory' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[35,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.services.cloudsupport.v2beta.CloudSupport' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[36,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.services.cloudsupport.v2beta.model.CloudSupportCase' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[37,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.auth.http.HttpCredentialsAdapter' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[38,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.auth.oauth2.GoogleCredentials' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[39,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.json.JsonObjectParser' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[45,5] (indentation) Indentation: 'member def modifier' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[45,11] (modifier) ModifierOrder: 'static' modifier out of order with the JLS suggestions.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[47,5] (indentation) Indentation: 'method def modifier' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[49,9] (indentation) Indentation: 'try' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[51,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[54,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[55,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[55,20] (naming) AbbreviationAsWordInName: Abbreviation in name 'PARENT_RESOURCE' must contain no more than '1' consecutive capital letters.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[55,20] (naming) LocalVariableName: Local variable name 'PARENT_RESOURCE' must match pattern '^[a-z]([a-z0-9][a-zA-Z0-9]*)?$'.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[58,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[59,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[59,20] (naming) AbbreviationAsWordInName: Abbreviation in name 'CASE' must contain no more than '1' consecutive capital letters.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[59,20] (naming) LocalVariableName: Local variable name 'CASE' must match pattern '^[a-z]([a-z0-9][a-zA-Z0-9]*)?$'.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[61,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[63,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[64,9] (indentation) Indentation: 'try rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[65,13] (indentation) Indentation: 'catch' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[66,9] (indentation) Indentation: 'catch rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[68,5] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[72,5] (indentation) Indentation: 'method def modifier' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[74,9] (indentation) Indentation: 'try' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[76,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[77,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[82,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[84,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[86,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[88,9] (indentation) Indentation: 'try rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[89,13] (indentation) Indentation: 'catch' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[91,9] (indentation) Indentation: 'catch rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[92,13] (indentation) Indentation: 'catch' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[93,9] (indentation) Indentation: 'catch rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[95,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[97,5] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[100] (sizes) LineLength: Line is longer than 100 characters (found 107).
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[100,5] (indentation) Indentation: 'method def modifier' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[102,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[103,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[104,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[105,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[107,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[108,5] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[111] (sizes) LineLength: Line is longer than 100 characters (found 109).
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[111,5] (indentation) Indentation: 'method def modifier' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[113,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[114,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[115] (sizes) LineLength: Line is longer than 100 characters (found 109).
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[115,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[117,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/UpdateCase.java:[119,5] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[1] (header) RegexpHeader: Line does not match expected header line of '^\W+\*?\W*Copyright 20\d\d Google (Inc\.|LLC)$'.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[26,1] (imports) CustomImportOrder: Extra separation in import group before 'com.google.api.client.googleapis.javanet.GoogleNetHttpTransport'
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[26,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.googleapis.javanet.GoogleNetHttpTransport' import. Should be before 'java.util.List'.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[27,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.http.HttpRequestInitializer' import. Should be before 'java.util.List'.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[28,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.http.HttpTransport' import. Should be before 'java.util.List'.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[29,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.json.JsonFactory' import. Should be before 'java.util.List'.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[30,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.json.gson.GsonFactory' import. Should be before 'java.util.List'.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[31,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.services.cloudsupport.v2beta.CloudSupport' import. Should be before 'java.util.List'.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[32,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.services.cloudsupport.v2beta.model.CloudSupportCase' import. Should be before 'java.util.List'.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[33,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.services.cloudsupport.v2beta.model.ListCasesResponse' import. Should be before 'java.util.List'.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[34,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.auth.http.HttpCredentialsAdapter' import. Should be before 'java.util.List'.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[35,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.auth.oauth2.GoogleCredentials' import. Should be before 'java.util.List'.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[41,5] (indentation) Indentation: 'member def modifier' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[41,11] (modifier) ModifierOrder: 'static' modifier out of order with the JLS suggestions.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[43,5] (indentation) Indentation: 'method def modifier' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[45,9] (indentation) Indentation: 'try' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[49,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[50,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[50,20] (naming) AbbreviationAsWordInName: Abbreviation in name 'PARENT_RESOURCE' must contain no more than '1' consecutive capital letters.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[50,20] (naming) LocalVariableName: Local variable name 'PARENT_RESOURCE' must match pattern '^[a-z]([a-z0-9][a-zA-Z0-9]*)?$'.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[52,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[54] (sizes) LineLength: Line is longer than 100 characters (found 116).
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[54,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[56,13] (indentation) Indentation: 'for' has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[57,17] (indentation) Indentation: 'for' child has incorrect indentation level 16, expected level should be 8.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[58,13] (indentation) Indentation: 'for rcurly' has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[59,9] (indentation) Indentation: 'try rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[60,13] (indentation) Indentation: 'catch' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[62,9] (indentation) Indentation: 'catch rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[64,5] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[68,5] (indentation) Indentation: 'method def modifier' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[70,9] (indentation) Indentation: 'try' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[72,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[73,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[78,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[80,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[82,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[84,9] (indentation) Indentation: 'try rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[85,13] (indentation) Indentation: 'catch' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[87,9] (indentation) Indentation: 'catch rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[88,13] (indentation) Indentation: 'catch' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[89,9] (indentation) Indentation: 'catch rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[91,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[93,5] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[96,5] (indentation) Indentation: 'method def modifier' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[98,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[99,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[100,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[102,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/ListCases.java:[104,5] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[1] (header) RegexpHeader: Line does not match expected header line of '^\W+\*?\W*Copyright 20\d\d Google (Inc\.|LLC)$'.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[26,1] (imports) CustomImportOrder: Wrong lexicographical order for 'java.io.InputStreamReader' import. Should be before 'java.io.Reader'.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[31,1] (imports) CustomImportOrder: Extra separation in import group before 'com.google.api.client.googleapis.javanet.GoogleNetHttpTransport'
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[31,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.googleapis.javanet.GoogleNetHttpTransport' import. Should be before 'java.util.Map'.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[32,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.http.HttpRequestInitializer' import. Should be before 'java.util.Map'.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[33,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.http.HttpTransport' import. Should be before 'java.util.Map'.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[34,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.json.JsonFactory' import. Should be before 'java.util.Map'.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[35,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.json.gson.GsonFactory' import. Should be before 'java.util.Map'.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[36,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.services.cloudsupport.v2beta.CloudSupport' import. Should be before 'java.util.Map'.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[37,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.services.cloudsupport.v2beta.model.CloudSupportCase' import. Should be before 'java.util.Map'.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[38,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.auth.http.HttpCredentialsAdapter' import. Should be before 'java.util.Map'.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[39,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.auth.oauth2.GoogleCredentials' import. Should be before 'java.util.Map'.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[40,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.json.JsonObjectParser' import. Should be before 'java.util.Map'.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[41,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.services.cloudsupport.v2beta.model.SearchCaseClassificationsResponse' import. Should be before 'java.util.Map'.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[47,5] (indentation) Indentation: 'member def modifier' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[47,11] (modifier) ModifierOrder: 'static' modifier out of order with the JLS suggestions.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[49,5] (indentation) Indentation: 'method def modifier' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[54,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[57,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[60,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[62,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[62,16] (naming) AbbreviationAsWordInName: Abbreviation in name 'PARENT_RESOURCE' must contain no more than '1' consecutive capital letters.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[62,16] (naming) LocalVariableName: Local variable name 'PARENT_RESOURCE' must match pattern '^[a-z]([a-z0-9][a-zA-Z0-9]*)?$'.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[64,9] (indentation) Indentation: 'try' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[65,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[66,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[67,9] (indentation) Indentation: 'try rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[68,13] (indentation) Indentation: 'catch' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[69,9] (indentation) Indentation: 'catch rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[71,5] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[75,5] (indentation) Indentation: 'method def modifier' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[77,9] (indentation) Indentation: 'try' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[79,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[80,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[85,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[87,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[89,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[91,9] (indentation) Indentation: 'try rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[92,13] (indentation) Indentation: 'catch' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[94,9] (indentation) Indentation: 'catch rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[95,13] (indentation) Indentation: 'catch' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[96,9] (indentation) Indentation: 'catch rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[98,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[100,5] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[103] (sizes) LineLength: Line is longer than 100 characters (found 107).
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[103,5] (indentation) Indentation: 'method def modifier' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[104,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[105,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[106,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[107,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[108,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[109,5] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[112,5] (indentation) Indentation: 'method def modifier' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[114,9] (indentation) Indentation: 'try' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[115,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[117] (sizes) LineLength: Line is longer than 100 characters (found 112).
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[117,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[119,13] (indentation) Indentation: 'for' has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[120,17] (indentation) Indentation: 'for' child has incorrect indentation level 16, expected level should be 8.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[120,62] (whitespace) OperatorWrap: '+' should be on a new line.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[122,13] (indentation) Indentation: 'for rcurly' has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[124,9] (indentation) Indentation: 'try rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[125,13] (indentation) Indentation: 'catch' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[126,9] (indentation) Indentation: 'catch rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[128,5] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[131] (sizes) LineLength: Line is longer than 100 characters (found 109).
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[131,5] (indentation) Indentation: 'method def modifier' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[133,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[134,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[135] (sizes) LineLength: Line is longer than 100 characters (found 111).
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[135,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[137,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/CreateCase.java:[139,5] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[1] (header) RegexpHeader: Line does not match expected header line of '^\W+\*?\W*Copyright 20\d\d Google (Inc\.|LLC)$'.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[25,1] (imports) CustomImportOrder: Extra separation in import group before 'com.google.api.client.googleapis.javanet.GoogleNetHttpTransport'
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[25,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.googleapis.javanet.GoogleNetHttpTransport' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[26,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.http.HttpRequestInitializer' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[27,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.http.HttpTransport' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[28,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.json.JsonFactory' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[29,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.json.gson.GsonFactory' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[30,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.services.cloudsupport.v2beta.CloudSupport' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[31,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.services.cloudsupport.v2beta.model.CloudSupportCase' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[32,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.auth.http.HttpCredentialsAdapter' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[33,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.auth.oauth2.GoogleCredentials' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[39,5] (indentation) Indentation: 'member def modifier' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[39,11] (modifier) ModifierOrder: 'static' modifier out of order with the JLS suggestions.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[41,5] (indentation) Indentation: 'method def modifier' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[43,9] (indentation) Indentation: 'try' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[45,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[46,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[46,20] (naming) AbbreviationAsWordInName: Abbreviation in name 'PARENT_RESOURCE' must contain no more than '1' consecutive capital letters.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[46,20] (naming) LocalVariableName: Local variable name 'PARENT_RESOURCE' must match pattern '^[a-z]([a-z0-9][a-zA-Z0-9]*)?$'.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[49,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[50,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[50,20] (naming) AbbreviationAsWordInName: Abbreviation in name 'CASE' must contain no more than '1' consecutive capital letters.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[50,20] (naming) LocalVariableName: Local variable name 'CASE' must match pattern '^[a-z]([a-z0-9][a-zA-Z0-9]*)?$'.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[52,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[53,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[55,9] (indentation) Indentation: 'try rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[56,13] (indentation) Indentation: 'catch' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[57,9] (indentation) Indentation: 'catch rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[59,5] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[63,5] (indentation) Indentation: 'method def modifier' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[65,9] (indentation) Indentation: 'try' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[67,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[68,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[73,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[75,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[77,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[79,9] (indentation) Indentation: 'try rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[80,13] (indentation) Indentation: 'catch' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[82,9] (indentation) Indentation: 'catch rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[83,13] (indentation) Indentation: 'catch' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[84,9] (indentation) Indentation: 'catch rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[86,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[88,5] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[91,5] (indentation) Indentation: 'method def modifier' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[93,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[94,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[96,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/GetCase.java:[98,5] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[1] (header) RegexpHeader: Line does not match expected header line of '^\W+\*?\W*Copyright 20\d\d Google (Inc\.|LLC)$'.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[25,1] (imports) CustomImportOrder: Extra separation in import group before 'com.google.api.client.googleapis.javanet.GoogleNetHttpTransport'
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[25,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.googleapis.javanet.GoogleNetHttpTransport' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[26,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.http.HttpRequestInitializer' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[27,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.http.HttpTransport' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[28,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.json.JsonFactory' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[29,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.client.json.gson.GsonFactory' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[30,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.services.cloudsupport.v2beta.CloudSupport' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[31,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.auth.http.HttpCredentialsAdapter' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[32,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.auth.oauth2.GoogleCredentials' import. Should be before 'java.util.Collections'.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[38,5] (indentation) Indentation: 'member def modifier' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[38,11] (modifier) ModifierOrder: 'static' modifier out of order with the JLS suggestions.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[40,5] (indentation) Indentation: 'method def modifier' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[42,9] (indentation) Indentation: 'try' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[43,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[47,9] (indentation) Indentation: 'try rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[48,13] (indentation) Indentation: 'catch' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[50,9] (indentation) Indentation: 'catch rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[51,13] (indentation) Indentation: 'catch' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[52,9] (indentation) Indentation: 'catch rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[54,5] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[58] (sizes) LineLength: Line is longer than 100 characters (found 102).
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[58,5] (indentation) Indentation: 'method def modifier' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[60,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[61,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[66,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[68,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[70,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 4.
[ERROR] src/main/java/com/example/gcpsupport/Starter.java:[72,5] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[1] (header) RegexpHeader: Line does not match expected header line of '^\W+\*?\W*Copyright 20\d\d Google (Inc\.|LLC)$'.
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[25,1] (imports) CustomImportOrder: Extra separation in import group before 'com.google.api.services.cloudsupport.v2beta.CloudSupport'
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[25,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.services.cloudsupport.v2beta.CloudSupport' import. Should be before 'java.security.GeneralSecurityException'.
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[27,1] (imports) CustomImportOrder: Extra separation in import group before 'org.junit.Test'
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[30,1] (indentation) Indentation: 'class def lcurly' has incorrect indentation level 0, expected level should be 2.
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[30,1] (blocks) LeftCurly: '{' at column 1 should be on the previous line.
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[34,5] (blocks) LeftCurly: '{' at column 5 should be on the previous line.
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[35,9] (indentation) Indentation: 'try' has incorrect indentation level 8, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[36,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 8.
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[37,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 8.
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[38,9] (indentation) Indentation: 'try rcurly' has incorrect indentation level 8, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[39,13] (indentation) Indentation: 'catch' child has incorrect indentation level 12, expected level should be 8.
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[41,9] (indentation) Indentation: 'catch rcurly' has incorrect indentation level 8, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[42,13] (indentation) Indentation: 'catch' child has incorrect indentation level 12, expected level should be 8.
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[43,9] (indentation) Indentation: 'catch rcurly' has incorrect indentation level 8, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[49,5] (blocks) LeftCurly: '{' at column 5 should be on the previous line.
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[50,9] (indentation) Indentation: 'try' has incorrect indentation level 8, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[51,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 8.
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[52,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 8.
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[53,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 8.
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[54,9] (indentation) Indentation: 'try rcurly' has incorrect indentation level 8, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[55,13] (indentation) Indentation: 'catch' child has incorrect indentation level 12, expected level should be 8.
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[57,9] (indentation) Indentation: 'catch rcurly' has incorrect indentation level 8, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[58,13] (indentation) Indentation: 'catch' child has incorrect indentation level 12, expected level should be 8.
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[59,9] (indentation) Indentation: 'catch rcurly' has incorrect indentation level 8, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/StarterTest.java:[61,1] (indentation) Indentation: 'class def rcurly' has incorrect indentation level 0, expected level should be 2.
[ERROR] src/test/java/com/example/gcpsupport/ListCasesTest.java:[1] (header) RegexpHeader: Line does not match expected header line of '^\W+\*?\W*Copyright 20\d\d Google (Inc\.|LLC)$'.
[ERROR] src/test/java/com/example/gcpsupport/ListCasesTest.java:[24,1] (imports) CustomImportOrder: Extra separation in import group before 'com.google.api.services.cloudsupport.v2beta.model.CloudSupportCase'
[ERROR] src/test/java/com/example/gcpsupport/ListCasesTest.java:[24,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.services.cloudsupport.v2beta.model.CloudSupportCase' import. Should be before 'java.util.List'.
[ERROR] src/test/java/com/example/gcpsupport/ListCasesTest.java:[26,1] (imports) CustomImportOrder: Extra separation in import group before 'org.junit.Test'
[ERROR] src/test/java/com/example/gcpsupport/ListCasesTest.java:[29,1] (indentation) Indentation: 'class def lcurly' has incorrect indentation level 0, expected level should be 2.
[ERROR] src/test/java/com/example/gcpsupport/ListCasesTest.java:[29,1] (blocks) LeftCurly: '{' at column 1 should be on the previous line.
[ERROR] src/test/java/com/example/gcpsupport/ListCasesTest.java:[33,5] (blocks) LeftCurly: '{' at column 5 should be on the previous line.
[ERROR] src/test/java/com/example/gcpsupport/ListCasesTest.java:[35,9] (indentation) Indentation: 'try' has incorrect indentation level 8, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/ListCasesTest.java:[36,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 8.
[ERROR] src/test/java/com/example/gcpsupport/ListCasesTest.java:[38,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 8.
[ERROR] src/test/java/com/example/gcpsupport/ListCasesTest.java:[40,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 8.
[ERROR] src/test/java/com/example/gcpsupport/ListCasesTest.java:[42,9] (indentation) Indentation: 'try rcurly' has incorrect indentation level 8, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/ListCasesTest.java:[43,13] (indentation) Indentation: 'catch' child has incorrect indentation level 12, expected level should be 8.
[ERROR] src/test/java/com/example/gcpsupport/ListCasesTest.java:[44,9] (indentation) Indentation: 'catch rcurly' has incorrect indentation level 8, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/ListCasesTest.java:[48,1] (indentation) Indentation: 'class def rcurly' has incorrect indentation level 0, expected level should be 2.
[ERROR] src/test/java/com/example/gcpsupport/UpdateCaseTest.java:[1] (header) RegexpHeader: Line does not match expected header line of '^\W+\*?\W*Copyright 20\d\d Google (Inc\.|LLC)$'.
[ERROR] src/test/java/com/example/gcpsupport/UpdateCaseTest.java:[24,1] (imports) CustomImportOrder: Extra separation in import group before 'com.google.api.services.cloudsupport.v2beta.model.CloudSupportCase'
[ERROR] src/test/java/com/example/gcpsupport/UpdateCaseTest.java:[24,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.services.cloudsupport.v2beta.model.CloudSupportCase' import. Should be before 'java.util.List'.
[ERROR] src/test/java/com/example/gcpsupport/UpdateCaseTest.java:[26,1] (imports) CustomImportOrder: Extra separation in import group before 'org.junit.Test'
[ERROR] src/test/java/com/example/gcpsupport/UpdateCaseTest.java:[30,5] (indentation) Indentation: 'method def modifier' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/test/java/com/example/gcpsupport/UpdateCaseTest.java:[33,9] (indentation) Indentation: 'try' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/test/java/com/example/gcpsupport/UpdateCaseTest.java:[34,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/UpdateCaseTest.java:[35,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/UpdateCaseTest.java:[37,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/UpdateCaseTest.java:[38,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/UpdateCaseTest.java:[40,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/UpdateCaseTest.java:[41,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/UpdateCaseTest.java:[43] (sizes) LineLength: Line is longer than 100 characters (found 106).
[ERROR] src/test/java/com/example/gcpsupport/UpdateCaseTest.java:[43,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/UpdateCaseTest.java:[45,9] (indentation) Indentation: 'try rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/test/java/com/example/gcpsupport/UpdateCaseTest.java:[46,13] (indentation) Indentation: 'catch' child has incorrect indentation level 12, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/UpdateCaseTest.java:[47,9] (indentation) Indentation: 'catch rcurly' has incorrect indentation level 8, expected level should be 4.
[ERROR] src/test/java/com/example/gcpsupport/UpdateCaseTest.java:[49,5] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 4, expected level should be 2.
[ERROR] src/test/java/com/example/gcpsupport/GetCaseTest.java:[1] (header) RegexpHeader: Line does not match expected header line of '^\W+\*?\W*Copyright 20\d\d Google (Inc\.|LLC)$'.
[ERROR] src/test/java/com/example/gcpsupport/GetCaseTest.java:[23,1] (imports) CustomImportOrder: Extra separation in import group before 'com.google.api.services.cloudsupport.v2beta.model.CloudSupportCase'
[ERROR] src/test/java/com/example/gcpsupport/GetCaseTest.java:[23,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.services.cloudsupport.v2beta.model.CloudSupportCase' import. Should be before 'java.io.IOException'.
[ERROR] src/test/java/com/example/gcpsupport/GetCaseTest.java:[25,1] (imports) CustomImportOrder: Extra separation in import group before 'org.junit.Test'
[ERROR] src/test/java/com/example/gcpsupport/GetCaseTest.java:[28,1] (indentation) Indentation: 'class def lcurly' has incorrect indentation level 0, expected level should be 2.
[ERROR] src/test/java/com/example/gcpsupport/GetCaseTest.java:[28,1] (blocks) LeftCurly: '{' at column 1 should be on the previous line.
[ERROR] src/test/java/com/example/gcpsupport/GetCaseTest.java:[32,5] (blocks) LeftCurly: '{' at column 5 should be on the previous line.
[ERROR] src/test/java/com/example/gcpsupport/GetCaseTest.java:[34,9] (indentation) Indentation: 'try' has incorrect indentation level 8, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/GetCaseTest.java:[35,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 8.
[ERROR] src/test/java/com/example/gcpsupport/GetCaseTest.java:[37,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 8.
[ERROR] src/test/java/com/example/gcpsupport/GetCaseTest.java:[39,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be 8.
[ERROR] src/test/java/com/example/gcpsupport/GetCaseTest.java:[41,9] (indentation) Indentation: 'try rcurly' has incorrect indentation level 8, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/GetCaseTest.java:[42,13] (indentation) Indentation: 'catch' child has incorrect indentation level 12, expected level should be 8.
[ERROR] src/test/java/com/example/gcpsupport/GetCaseTest.java:[43,9] (indentation) Indentation: 'catch rcurly' has incorrect indentation level 8, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/GetCaseTest.java:[47,1] (indentation) Indentation: 'class def rcurly' has incorrect indentation level 0, expected level should be 2.
[ERROR] src/test/java/com/example/gcpsupport/CreateCaseTest.java:[1] (header) RegexpHeader: Line does not match expected header line of '^\W+\*?\W*Copyright 20\d\d Google (Inc\.|LLC)$'.
[ERROR] src/test/java/com/example/gcpsupport/CreateCaseTest.java:[23,1] (imports) CustomImportOrder: Wrong lexicographical order for 'java.io.IOException' import. Should be before 'org.junit.Test'.
[ERROR] src/test/java/com/example/gcpsupport/CreateCaseTest.java:[24,1] (imports) CustomImportOrder: Wrong lexicographical order for 'com.google.api.services.cloudsupport.v2beta.model.CloudSupportCase' import. Should be before 'org.junit.Test'.
[ERROR] src/test/java/com/example/gcpsupport/CreateCaseTest.java:[27,1] (indentation) Indentation: 'class def lcurly' has incorrect indentation level 0, expected level should be 2.
[ERROR] src/test/java/com/example/gcpsupport/CreateCaseTest.java:[27,1] (blocks) LeftCurly: '{' at column 1 should be on the previous line.
[ERROR] src/test/java/com/example/gcpsupport/CreateCaseTest.java:[32,9] (blocks) NeedBraces: 'if' construct must use '{}'s.
[ERROR] src/test/java/com/example/gcpsupport/CreateCaseTest.java:[38,13] (indentation) Indentation: 'try' child has incorrect indentation level 12, expected level should be one of the following: 6, 8, 10.
[ERROR] src/test/java/com/example/gcpsupport/CreateCaseTest.java:[40,13] (indentation) Indentation: 'catch' child has incorrect indentation level 12, expected level should be one of the following: 6, 8, 10.
[ERROR] src/test/java/com/example/gcpsupport/CreateCaseTest.java:[46,5] (blocks) LeftCurly: '{' at column 5 should be on the previous line.
[ERROR] src/test/java/com/example/gcpsupport/CreateCaseTest.java:[47,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/CreateCaseTest.java:[49,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/CreateCaseTest.java:[50,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/CreateCaseTest.java:[56,5] (blocks) LeftCurly: '{' at column 5 should be on the previous line.
[ERROR] src/test/java/com/example/gcpsupport/CreateCaseTest.java:[57,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/CreateCaseTest.java:[59,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/CreateCaseTest.java:[60,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/CreateCaseTest.java:[61,9] (indentation) Indentation: 'method def' child has incorrect indentation level 8, expected level should be 6.
[ERROR] src/test/java/com/example/gcpsupport/CreateCaseTest.java:[64,1] (indentation) Indentation: 'class def rcurly' has incorrect indentation level 0, expected level should be 2.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.2:check (default-cli) on project cloud-client: You have 354 Checkstyle violations. -> [Help 1]

I pushed to fix style errors and update the test suite. Only thing left is for me to coordinate with the customer care team to make your GCP projects support enabled. Once that's done, the tests that I wrote should all pass in your end as well.

@eenclona-google Please get lint & snippet-bot check to pass.


Not running well under Swift 4

Has anyone else tried to run the latest pod under Swift 4? I find some error messages when it runs - some can be fixed but do not know enough about the code to try and fix them all - any others observing this?

I managed to fix all errors with the Xcode built in Fix. Xcode10, Swift 4.2. I’m sure Brian will release a new version with the changes

Now compatible with Swift 5. However, I am deprecating this library in favor of LBTATools.


ACVP_CURL_BUF_MAX too small for HMAC/SHA testSession/VS request with max keylen (524288)

File: include/acvp/acvp_lcl.h
Line: 692
Content: #define ACVP_CURL_BUF_MAX       (1024 * 1024 * 16) /**< 16 MB */
Issue: Below condition at (src/acvp_transport.c:155) becomes true when requesting a testSession with max parameters.
if ((ctx->curl_read_ctr + nmemb) > ACVP_CURL_BUF_MAX) {
        fprintf(stderr, "\nServer response is too large\n");
        return 0;
}

Solution:  #define ACVP_CURL_BUF_MAX       (1024 * 1024 * 32) /**< 32 MB */
Doubling it from 16M to 32M allowed the request to work and the vectorsets file that was saved to disk was 30M in size, so 32 seems appropriate. 32M isn't enough to request more than one SHA using max key length, but at least it can handle one. Would increasing this number even higher have any adverse effects? Maybe 64 or 128?
Below is the failed request:
***ACVP [STATUS][acvp_login:2340]--> Login successful

***ACVP [STATUS][acvp_register:1854]--> Building registration of capabilities...

***ACVP [STATUS][acvp_register:1860]--> Sending registration of capabilities...

***ACVP [INFO][acvp_register:1861]--> [{"acvVersion":"1.0"},{"algorithms":[{"algorithm":"HMAC-SHA2-256","revision":"1.0","keyLen":[{"min":8,"max":524288,"increment":8}],"macLen":[{"min":32,"max":256,"increment":8}]}]}]

***ACVP [INFO][log_network_status:1442]--> POST Registration...
	Status: 200
	Url: https://demo.acvts.nist.gov:443/acvp/v1/testSessions
	Resp: Recieved

***ACVP [INFO][acvp_parse_test_session_register:2196]--> Received vsid_url=/acvp/v1/testSessions/93524/vectorSets/248823

***ACVP [STATUS][acvp_register:1869]--> Successfully sent registration and received list of vector set URLs

***ACVP [STATUS][acvp_register:1870]--> Test session URL: /acvp/v1/testSessions/93524

***ACVP [STATUS][acvp_run:3016]--> Beginning to download and process vector sets...

***ACVP [INFO][log_network_status:1422]--> GET Vector Set...
	Status: 200
	Url: https://demo.acvts.nist.gov:443/acvp/v1/testSessions/93524/vectorSets/248823
	Resp:
....
      {
            "tcId": 11,
            "key": "93C58AA48A52C3A0",
            "msg": "06F62B
***ACVP [ERR][acvp_process_vsid:2391]--> JSON parse error

***ACVP [ERR][acvp_process_tests:2231]--> Unable to process vector set! Error: 4

***ACVP [ERR][acvp_run:3024]--> Failed to process vectors

If you change the registration then buffer size boundaries such as this may also need to be changed.
Our buffer size boundaries are based on the capabilities we tested.
I doubt this would be the last instance of this, particularly since SHA-3 and SHAKE tend to require tons of buffer.

Thanks for the explanation. I thought the libacvp library was being geared as a general purpose ACVP library for other applications that need to communicate with the NIST ACVP server, and the sample app (openssl module) was just there as an example, and figured you guys were trying to keep it compatible with other scenarios that might arise when being used with other modules, more than just its compatibility with the sample app, but maybe there are too many possibilities to support with this assumption.

Yes, we are happy to keep it compatible with other scenarios that might arise. Feel free to submit a PR with your desired changes.

Hello,
We have increased the Curl buffer size to 32MB in PR #469. We also added comments to enable_cmac and enable_hmac in acvp_app indicating that the buffer size in the library may need to be increased for large domains. If this becomes a problem down the road we will reevaluate. Please let us know if any more issues around this are experienced.
Thanks,
Andrew


Adds Pilates Anytime

Adds the following events or companies:

Pilates Anytime

Checklist

[X] I have updated the event or company counts
[X] I have put the most recent relevant date in the "Last Update" column
[] I have linked to the article about the change, not the company's website

Do you have a public-facing post by chance for this chance?

We do not at this time; I will create another PR if this happens.

That works. Thanks!


Allow variant name substitution in cmake.buildDirectory

Brief Issue Summary
It would be very convenient to be able to have a different build directory for each variant in a project. This would minimize build time when switching variants in a project.
Expected:
For example, given the following cmake-variant.json file:
{
  "buildType": {
    "default": "debug",
    "choices": {
      "debug": {
        "short": "Debug",
        "buildType": "Debug"
      },
      "release" : {
        "short": "Release",
        "buildType": "Release"
      }
    }
  },
  "myVariant" : {
    "default": "AllFeatures",
    "choices": {
      "AllFeatures" : {
        "short": "AllFeatures",
        "long": "Enable all features"
      },
      "Lightweight" : {
        "short": "Lightweight",
        "long": "No optional feature"
      }
    }
  }
}

I would expect to be able to reference the variant name in cmake.buildDirectory like this:
"cmake.buildDirectory": "${workspaceRoot}/build/${buildType}_${myVariant}"

Selecting the variant Debug + AllFeatures would select the <workspace-root>/build/Debug_AllFeatures build directory.
Apparent Behavior:
Issue #272 suggest that this problem should already be solved, but in practice, selecting the variant Debug + AllFeatures selects the <workspace-root>/build/Debug_${myVariant} build directory, i.e. the variant name is not substituted in the cmake.buildDirectory variable.
Platform and Versions
Tested on MacOS with cmake 3.13.3, VScode 1.38 and cmake-tools 1.1.3

Can you try ${variant:myVariant} instead?  https://vector-of-bool.github.io/docs/vscode-cmake-tools/changelog.html?highlight=variant has more details about this breaking change.

It works! I couldn't find that info by myself, thanks a lot for this!


Allowing Input Tensors to be dynamic for Predictions when using the Subclass method for defining a model

Describe the feature and the current behavior/state.
I am trying to write a Keras Model which implements some complex logic. That logic has been implemented in my call method
As my network layers are convolutional, my model can theoretically predict on input sizes which are different than the size I trained on. Is there any way to specify that for running Predictions on the data.
Here is the skeletal code
 class CustomModel(tf.keras.Model):
     def __init__(self):
          super().__init__()
          self.conv1 = tf.keras.layers.Conv2D(filters=4, kernel_size=4)
          self.conv2= tf.keras.layers.Conv2D(filters=4, kernel_size=4)

     def call(inputs):
         image = inputs[0]
         output = self.conv1(image)
         # There is more complex logic here for inputs[1]
         # For sake of simplicity, writing this as output
         another_output = self.conv2(inputs[1])
         combined_output = (output, another_output)
         return combined_output

And this is the code I am using for running the model
model = CustomModel()
model.compile()
model.fit(x=Train_TF_Dataset)

model.save(filename)

load_model = tf.keras.models.load_model(filename)

model.predict(x=Predict_TF_Dataset)

The train TF Dataset and the predict TF Datasets consist of different sizes which is our usecase.
The training data consisted of a tuple of 256x256x2 images and a second image while the prediction data consists of 512x512x2 along with the corresponding second images. The size of the first input in the tuple can be anything.
Is there some way of specifying that the input shape is (None, None, None, 2) instead of (None, 256, 256, 2). The first value of None is variable by default for the batch size.
The solutions I have seen on stackoverflow just convert it to a functional model which is not possible because of how complex my call method is
Note: 256 and 512 are just numbers. The actual sizes are different.
Right now when I predict, I will get the following error
ValueError: `generator` yielded an element of shape (512, 512, 2) where an element of shape (256, 256, 2) was expected.

As per requests when I raised it on the tensorflow github Link, I have written a standalone script. You will notice in that script that the model type of functional will work while the model type of subclass will fail. The 2 models though are identical
I tested it on tensorflow2.7 as well and got a similar error. I hope that this code snippet works. I can attach the file as well if required
Code Snippet: Link
System information

TensorFlow version (you are using): 2.4.0
Are you willing to contribute it (Yes/No): Yes

Will this change the current api? How?
No the issue will be present in the current API as well
Who will benefit with this feature?
This will allow people to develop subclass models with variable input sizes for Inference. This is huge use case in many industries. Training occurs on a sample of images with smaller size for reducing memory of the network. Inference on the other hand can run on any images as per requirements
Contributing

Do you want to contribute a PR? (yes/no): I can but am not that familiar with the codebase internally. I have used it extensively though

@AshwinJay101, I tried to run your code on colab using TF2.7 and faced error
ValueError: Exception encountered when calling layer "custom_model" (type CustomModel).
 Could not find matching concrete function to call loaded from the SavedModel.

Please find the gist here for reference. Thanks!

@chunduriv I mentioned that you get a similar error in TF2.7. If you notice, it mentions that it got inputs of shape (None, 512, 512, 6) while it expected inputs of the shape to be (None, 256, 256, 6)
This is the error message
Could not find matching concrete function to call loaded from the SavedModel. Got:
      Positional arguments (1 total):
        * (<tf.Tensor 'inputs:0' shape=(None, 512, 512, 6) dtype=float32>, <tf.Tensor 'inputs_1:0' shape=(None, 256, 256, 6) dtype=float32>)
      Keyword arguments: {}

 Expected these arguments to match one of the following 2 option(s):

Option 1:
  Positional arguments (1 total):
    * (TensorSpec(shape=(None, 256, 256, 6), dtype=tf.float32, name='inputs/0'), TensorSpec(shape=(None, 256, 256, 6), dtype=tf.float32, name='inputs/1'))
  Keyword arguments: {}

Option 2:
  Positional arguments (1 total):
    * (TensorSpec(shape=(None, 256, 256, 6), dtype=tf.float32, name='input_1'), TensorSpec(shape=(None, 256, 256, 6), dtype=tf.float32, name='input_2'))
  Keyword arguments: {}

Call arguments received:
  • args=(('tf.Tensor(shape=(None, 512, 512, 6), dtype=float32)', 'tf.Tensor(shape=(None, 256, 256, 6), dtype=float32)'),)
  • kwargs=<class 'inspect._empty'>``

Adding Kathy for this question.
The walkaround I can think of are:

Use save_spec/signatures for model.save, so that you force the width/height dimension to be None for the train/eval/predict function. https://www.tensorflow.org/api_docs/python/tf/saved_model/save
Save the weights only by model.get_weights() and load the weights back to the model. This will make your loaded model to not have any input shape.
Down scale the image so that inputs between training/inference are having the same shape. Usually this is the best practice, otherwise you will often see the model perform badly with random input image size.


Fixed #32162 -- Fixed setting Content-Length header in AsyncRequestFactory.

https://code.djangoproject.com/ticket/32164#ticket

@patrick91 Thanks :rocket: I added release notes.


Autocommand throws error in v0.11.0-dev

I am on the Neovim nightly: NVIM v0.11.0-dev, and this version guard seems to not working correctly:
https://github.com/nvimtools/none-ls.nvim/blob/58866c670d68ef80397c317a3a1ee5f53ca646fd/lua/null-ls/client.lua#L205
This line throws an error:
Error detected while processing InsertLeave Autocommands for "*":
Error executing lua callback: ...ocal/share/nvim/plugged/none-ls.nvim/lua/null-ls/rpc.lua:144: attempt to
concatenate local 'method' (a table value)
stack traceback:
        ...ocal/share/nvim/plugged/none-ls.nvim/lua/null-ls/rpc.lua:144: in function 'notify'
        /usr/share/nvim/runtime/lua/vim/lsp/client.lua:778: in function 'notify'
        ...l/share/nvim/plugged/none-ls.nvim/lua/null-ls/client.lua:205: in function 'notify_client'
        ...ocal/share/nvim/plugged/none-ls.nvim/lua/null-ls/rpc.lua:163: in function 'flush'
        ...cal/share/nvim/plugged/none-ls.nvim/lua/null-ls/init.lua:49: in function <...cal/share/nvim/plu
gged/none-ls.nvim/lua/null-ls/init.lua:48>

When I change the line to:
        client.notify(method, params)

it works.

duplicate of #209 #213, please update neovim or switch to stable.


Listing block: add pagination

Listing block show only first n results from query, but if we want to use it as a listing_view, we need to implement batch pagination like in classic Plone

@cekk that would be a really nice addition. Do you plan to work on this?

yes, we need to work on this in these days.
someone will come back with a pr ;)

@cekk awesome! Let us know if there is anything we can do to help! I'd love to see this feature in Volto asap as well.

Merged!


pathfinder: output files don't respect multiple periods, clobber outputs

Summary:
Reported by @andrewjradcliffe
Passing an output file argument with multiple .s in it and requesting save_single_paths leads to output files with the same name, so they all end up clobbering the output files on disk.
Reproducible Steps:
./bernoulli pathfinder save_single_paths=1 output file=foo.bar.baz data file=bernoulli.data.json

Current Output:
This produces files foo.bar.csv  foo_path_1.bar  foo_path_2.bar  foo_path_3.bar  foo_path_4.bar
The files foo_path_1.bar... all have a incoherent mix of json/csv in them.
Additional Information:
I believe this is because the make_filenames function doesn't replace an extension if it is already provided. This works if there is 1 . in the name since we artificially strip it out for pathfinder, but if there is more than one we get this problem.
Current Version:
v2.33.1

the logic is all fubar.   for the downstream regression tests, there's one set that uses suffix ".tmp" instead of ".csv".
this logic would be greatly simplified if we specified that output CSV files are always suffixed ".csv" and changed the regression testset names.

this logic would be greatly simplified if we specified that output CSV files are always suffixed ".csv" and changed the regression testset names.

That seems fine to me? Maybe we should print a warning if they were specified with another extension and we ignore it. Pathfinder is technically the only interface where we need to be able to ignore it, since the csvs and jsons differ only by extension, but threading a flag through the helper code seems like overkill


Support for pipeline events

Do you plan to listen for "Pipeline events"?
One thing I can see being useful is custom notifications on important events, such as master build failing, etc, where the Slack integration would do an @here to the channel.

Actually, we're about to dig into GitLab CI soon, at work. I will definitely need to make some modifications for that, and will also fix some more of these pending bugs and vulnerable packages.

I was able to reorganize my 10% time at work :tada:, which will give me more time to work on this, periodically. I just released 2.1.0 which resolved 5 of the pending issues and brings the package dependencies and the code up to date.
Pipeline events are next!

@genru I noticed that you have a fork with some work done for the pipeline and build events. When I go to implement those here, may I use your code either directly or as a reference?

@nazrhyn sure, please. but have no any guarantee

need i make a pull request?

@genru Whatever you prefer. I am happy to simply use it as reference, especially if you think there may be improvements to be made.

@nazrhyn  https://github.com/nazrhyn/gitlab-slack/pull/29

@genru @yegorski I'm starting this and was interested to hear your thoughts about something:
When would you want to see notifications for individual jobs/builds within a pipeline? Wouldn't that be potentially pretty spammy?
If a pipeline fails, then the builds list can be looked at to determine which job/build has failed, and then that can be sent to Slack, but actually showing every single job/build seems like overkill.

@nazrhyn Yes, pipeline hooks everything. it is a bit too many events. I thought only notify key pipeline events would be nice.
I dont understand what do you mean "the builds list can be looked at to determine which job/build has failed". I use .gitlab-ci.yaml do my CI work, In my scenario, when a job failed just has one message pipeline xxxx by xxx failed comes in.

Your first response is kind of what I was looking for. We'll see how it goes!


2024.2 compatibility

Hello everyone 👋
I just updated my IntelliJ to 2024.2 because they released the first patch release.
Adonis plugin is not compatible anymore with the latest IntelliJ 2024.2.x release.
Will the Kotlin migration makes this plugin work again with IntelliJ? https://github.com/Xstoudi/adonis-intellij/issues/29
Thanks a lot for the awesome work you do 🙂

Hello, I'm really busy and sadly didn't had time to check on #29.
It's still on my todo list and I'll check it asap.

@Xstoudi Kotlin is not urgent but you can at least change your version's necessary file(s)

v0.5.2 for IntelliJ Platform v242 will be available in 1-2 business days.


[W5.11] [W11-A1] Wayne Neo

Second enhancement of 2KLoC work base
Addition of "Sort" command

@AzuraAiR
Some comments added. Please ack & close the PR after reading comments.

Noted with thanks


Disable regex caching in tests

Describe the issue as clearly as possible:
Tests like test_regex_vocabulary_error can fail due to the caching of create_states_mapping.
Caching should probably be disabled somewhat generally in those test modules (except for tests that are specifically for caching, of course).
Steps/code to reproduce the bug:
NA

Expected result:
NA

Error message:
No response
Outlines/Python version information:
4934425cc511b7f7fcfff76744edb8f1452feb8f
Context for the issue:
No response

@brandonwillard could you please ensure https://github.com/outlines-dev/outlines/pull/886 resolves the issue on your end or provide reproduction steps?

@brandonwillard could you please ensure #886 resolves the issue on your end or provide reproduction steps?

There's no need for that; we shouldn't be caching the operations we're testing when we aren't testing the caching itself.


how to replace the test datasets with other datasets?

Hi,
I get the error ModuleNotFoundError: No module named 'test.datasets'
Would you be able to help where I can load the test.datasets?
I want to know what is the format I need to prepare for the dataset.
Is there any tutorial that you can provide to prepare the input dataset to load?
The get_book_crossing dataset I get from http://www2.informatik.uni-freiburg.de/~cziegler/BX/
is a zip file containing three datasets. Is that the same format I can prepare? Do I need to keep the file name the same as "BX-Book-Ratings","BX-Books", and "BX-Users"?
Thank you so much,
Kara

@Kara035 Are you still running in to this ModuleNotFoundError? If so, how did you install TensorRec? (pip, clone of the github repo, etc?)

Hi,
No. I'm good for this one now. I found the dataset.py which I can switch to my own dataset.
Thank you so much for checking.
Kara

Great! I'm going to close this issue, too, then. Feel free to open a new issue with anything else that comes up!


bug: Data doesn't update since last year

Is there an existing issue for this?

[X] I have searched the existing issues

Description of the bug
Data doesn't update since last year
Steps To Reproduce
await getQueriedGamesAmerica("zelda")
Doesn't return "The Legend of Zelda™: Tears of the Kingdom"
The response of getGamesAmerica() seems the same since last year
Expected behavior
Return "The Legend of Zelda™: Tears of the Kingdom"
Screenshots
No response
Additional context
No response

Quoting myself from the Discord server:

The code returns whatever the Nintendo API returns. The library doesn't apply any filters.

You are correct in that it's not there but ultimately that's up to Nintendo's API not providing the entry

getQueriesGamesAmerica does have it though

so I think I kinda know why

The package specifically also fetches some common franchises in case they are omitted from the other searches (sadly the nintendo api doesnt let us just get all games outright) and that uses  franchises:Zelda as a filter for example.. BOTW has the franchise set, TOTK doesn't.

So blame Nintendo for not setting the franchise for their own game

yeah I investigated it some more and I really cant give you anything other than that the API just doesn't return it. It does come back from getQueriesGamesAmerica because that one doesn't need to do tricks to return the whole list and can just hone into 1 specific game. I'm not sure what your use-case for the nintendo-switch-api package is, but maybe you can use that method instead. For example a Discord bot is just fine using that.

TL;DR: There is nothing I can do about this. It's also a bit rough to say "last year" because afaik this is a singular case and there have been many releases between January and May.


Remove out of date comment

re #996
@jhorstmann  points out that bool no longer implements ArrowNativeType and thus this comment it out of date. Remove it
Here are the types that implement ArrowNativeType
/Users/alamb/Software/arrow-rs/arrow/src/datatypes/native.rs
118: impl ArrowNativeType for i8 {
141: impl ArrowNativeType for i16 {
164: impl ArrowNativeType for i32 {
193: impl ArrowNativeType for i64 {
222: impl ArrowNativeType for u8 {
245: impl ArrowNativeType for u16 {
268: impl ArrowNativeType for u32 {
291: impl ArrowNativeType for u64 {
326: impl ArrowNativeType for f16 {}
327: impl ArrowNativeType for f32 {}
328: impl ArrowNativeType for f64 {}

Codecov Report

Merging #1008 (9e6cabd) into master (5806d29) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1008   +/-   ##
=======================================
  Coverage   82.31%   82.31%
=======================================
  Files         168      168
  Lines       49031    49031
=======================================
  Hits        40360    40360
  Misses       8671     8671

Impacted Files
Coverage Δ

arrow/src/buffer/immutable.rs
97.84% <ø> (ø)

arrow/src/datatypes/field.rs
53.37% <0.00%> (-0.31%)
:arrow_down:

parquet_derive/src/parquet_field.rs
66.21% <0.00%> (+0.22%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5806d29...9e6cabd. Read the comment docs.


chore(package): update got to version 11.0.2

:tada: This PR is included in version 3.0.20 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Make sure we cannot panic

https://docs.rs/no-panic/latest/no_panic/
Panics suck... Let's error gracefully

I assume we can only guarantee our code does not panic but some embassy crates might also panic under odd hardware circumstances

We managed to provoke a panic rarely when writing large chips, might be worth looking into as well


Strange problem with Persian(Arabic) characters

hi
I'm saving slugs from users' username, and usernames are mostly in Persian, something like:
دکتر.علیرضا.شیری
when I sluggify users, slugs are in a strange format, something like this:
d-tr-aal-rd-sh-r
the strangest part is, although they are in two different languages, the reshaped English slug kinda sounds like the Persian word when pronouncing.
what's happening? and is there a way I can slugs in my own language?

By default, the package uses cocur/slugify to build slugs.  It's mostly a transliteration package -- meaning that the resulting slug is supposed to "sound" like the input.  At least that's my interpretation.
If you want to swap out that "engine" for something else, you are free to do so. Take a look here or here for how to use a different method.  Alternatively, it may be you just need to add different rules to Slugify, in which case you can do something like I do in this test.
Or, just build up a ruleset for slugify and submit a pull request to them. It doesn't look like they have a Persian rule set, so I'm sure they'd appreciate it!

i used this function in my Post model but rules not applied:
    public function customizeSlugEngine(Slugify $engine, $attribute)     {         $engine->activateRuleSet('persian');         return $engine;     }


getUniqueID() problem.

Documentation say that getUniqueID() will return value with format like this 'FCDBD8EF-62FC-4ECB-B2F5-92C9E79AC7F9' but I got this '665deb085e1c03fe' instead. Is that normal?
Platform Android
React-native 0.44
react-native-device-info 0.11.0

Hey did you find a solution to this one.

Not yet.

that's normal https://stackoverflow.com/questions/2785485/is-there-a-unique-android-device-id

close #205

Fixed while reformatting the documentation:
https://github.com/rebeccahughes/react-native-device-info/blob/master/README.md#getuniqueid


Pickable should work with a11y listeners

After https://github.com/phetsims/scenery/issues/888, it may be possible to use pickable with a11y listeners. We currently have checks in individual listeners against enabledProperty to determine whether or not to run functionality in the listener.  It would be great if we could enable/disable this directly through pickable or some other a11y equivalent.
Referencing @zepumph in case he has any thoughts but we probably won't get to this for a little while.

After #888 I was wondering if this was working for us for free, but I tested and observed that we are hitting listeners from a11y input when a Node has pickable false.

I believe that we have this implemented. Both inputEnabled and pickable are respected by the PDOM-specific events in Input.js.
Here is where we are making sure that pickable is respeced for PDOM input:
https://github.com/phetsims/scenery/blob/a7bfc37d6d51d261d6cb7e314317ed8a0d73cf5c/js/input/Input.js#L1055-L1058
Note that events like focus/blur still fire. @jessegreenberg is there anything else to discuss for this issue? Or can we close it?

This issue is very old at this point. A11y listeners have been working well for a long time, and focus/blur are needed to provide keyboard navigation on disabled elements. I believe that we may need to improve this logic more generally over in https://github.com/phetsims/scenery/issues/1220, but for now. I think we are ready to close.


inconsistency when invoking tf.math.top_k and tf.negative

Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
source
TensorFlow version
tf 2.13
Custom code
Yes
OS platform and distribution
No response
Mobile device
No response
Python version
No response
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
import tensorflow as tf

A = tf.constant([0, -2, 1, -4, 3])
print(-A)
print(tf.negative(A))
y = tf.negative(tf.math.top_k(tf.negative(A)))
x = -tf.math.top_k(-A)
print(y)
print(x)

#######################################
import tensorflow as tf

A = tf.constant([0, -2, 1, -4, 3])
print(-A)
print(tf.negative(A))
print(tf.math.top_k(tf.negative(A)))
y = tf.negative(tf.math.top_k(tf.negative(A)))
print(y)

### Standalone code to reproduce the issue

```shell
when invoking tf.math.top_k, the tf.negative have different result with -

Relevant log output
tf.Tensor([ 0  2 -1  4 -3], shape=(5,), dtype=int32)
tf.Tensor([ 0  2 -1  4 -3], shape=(5,), dtype=int32)
Traceback (most recent call last):
  File "C:\Users\uqbduan\Desktop\pythonProject\test.py", line 9, in <module>
    x = -tf.math.top_k(-A)
TypeError: bad operand type for unary -: 'TopKV2'
##################################
tf.Tensor([ 0  2 -1  4 -3], shape=(5,), dtype=int32)
tf.Tensor([ 0  2 -1  4 -3], shape=(5,), dtype=int32)
TopKV2(values=<tf.Tensor: shape=(1,), dtype=int32, numpy=array([4])>, indices=<tf.Tensor: shape=(1,), dtype=int32, numpy=array([3])>)
tf.Tensor(
[[-4]
 [-3]], shape=(2, 1), dtype=int32)

Hi @beanduan22 ,
Sorry for the delay. I Was able to reproduce the issue on colab using TF v2.14 , 2.15, and TF-nightly, Please find the gist here for reference. We need to dig for this issue. I will give an update in a few days.
Thank you!

Hi @beanduan22,
When you apply the negative operation directly to the result of tf.math.top_k, you are trying to negate the entire TopKV2 object, which leads to a TypeError.
You need to separately apply the negative operation to the values part of the TopKV2 result and keep the indices unchanged. Here I am adding a gist for your reference please go through it once.
Thank you


Filtering possibilities

Hey Felix,
Thank you so much for this tool, it is so handy!
Currently, I'm trying to overcome a problem of go tool trace visualizer for user-defined tasks and regions, which is sometimes too slow (and the browser can't process it). We had an idea to filter out everything but tasks and regions, so there is fewer data to visualize.
Based on your tool, I was trying to come up with some "filtering" and leave as fewer events as possible - https://github.com/rumyantseva/traceutils/blob/filter/cmd/traceutils/filter.go & https://github.com/rumyantseva/traceutils/blob/filter/pkg/filter/filter.go. My current approach is too naive as things like encoding.EventString need to be handled more carefully, and there are some other hierarchical events that need proper handling.
So, I'm trying to find some documentation or articles to understand the relations between different events, but it doesn't seem to be super straightforward. If you have a moment, could you recommend some sources to learn from, please?
Thank you!

Hey Elena,
good to hear from you again 😊.

Hey Felix,
Thank you so much for this tool, it is so handy!
Currently, I'm trying to overcome a problem of go tool trace visualizer for user-defined tasks and regions, which is sometimes too slow (and the browser can't process it). We had an idea to filter out everything but tasks and regions, so there is fewer data to visualize.
Based on your tool, I was trying to come up with some "filtering" and leave as fewer events as possible - https://github.com/rumyantseva/traceutils/blob/filter/cmd/traceutils/filter.go & https://github.com/rumyantseva/traceutils/blob/filter/pkg/filter/filter.go. My current approach is too naive as things like encoding.EventString need to be handled more carefully, and there are some other hierarchical events that need proper handling.

This is actually something my team and I are very interested in as well. I'll send you a separate e-mail about this.

So, I'm trying to find some documentation or articles to understand the relations between different events, but it doesn't seem to be super straightforward. If you have a moment, could you recommend some sources to learn from, please?

Unfortunately I don't have a lot of good resources to point you to. The trace internals are largely undocumented. Everything I know comes from studying the source, in particular:

https://github.com/golang/go/blob/master/src/runtime/trace.go
https://github.com/golang/go/blob/master/src/cmd/trace/main.go (and following the symbols from there)