Skip to content
Permalink
Browse files
feat: initial code generation
  • Loading branch information
dazuma committed Dec 10, 2020
0 parents commit d94613560cd813173d22574c5fd301f95c7d3de7
Showing with 76,774 additions and 0 deletions.
  1. +10 −0 .github/CODEOWNERS
  2. +51 −0 .github/ISSUE_TEMPLATE/bug_report.md
  3. +21 −0 .github/ISSUE_TEMPLATE/feature_request.md
  4. +7 −0 .github/ISSUE_TEMPLATE/support_request.md
  5. +7 −0 .github/PULL_REQUEST_TEMPLATE.md
  6. +7 −0 .github/blunderbuss.yml
  7. +7 −0 .github/generated-files-bot.yml
  8. +19 −0 .github/readme/synth.py
  9. +2 −0 .github/release-please.yml
  10. 0 .github/snippet-bot.yml
  11. +2 −0 .github/trusted-contribution.yml
  12. +54 −0 .github/workflows/approve-readme.yaml
  13. +88 −0 .github/workflows/auto-release.yaml
  14. +79 −0 .github/workflows/ci.yaml
  15. +25 −0 .github/workflows/formatting.yaml
  16. +14 −0 .github/workflows/samples.yaml
  17. +17 −0 .gitignore
  18. +3 −0 .kokoro/build.bat
  19. +118 −0 .kokoro/build.sh
  20. +38 −0 .kokoro/coerce_logs.sh
  21. +13 −0 .kokoro/common.cfg
  22. +58 −0 .kokoro/common.sh
  23. +25 −0 .kokoro/continuous/common.cfg
  24. +12 −0 .kokoro/continuous/java8.cfg
  25. +55 −0 .kokoro/continuous/readme.cfg
  26. +89 −0 .kokoro/dependencies.sh
  27. +46 −0 .kokoro/linkage-monitor.sh
  28. +25 −0 .kokoro/nightly/common.cfg
  29. +37 −0 .kokoro/nightly/integration.cfg
  30. +7 −0 .kokoro/nightly/java11.cfg
  31. +7 −0 .kokoro/nightly/java7.cfg
  32. +3 −0 .kokoro/nightly/java8-osx.cfg
  33. +3 −0 .kokoro/nightly/java8-win.cfg
  34. +12 −0 .kokoro/nightly/java8.cfg
  35. +38 −0 .kokoro/nightly/samples.cfg
  36. +43 −0 .kokoro/populate-secrets.sh
  37. +13 −0 .kokoro/presubmit/clirr.cfg
  38. +34 −0 .kokoro/presubmit/common.cfg
  39. +12 −0 .kokoro/presubmit/dependencies.cfg
  40. +33 −0 .kokoro/presubmit/integration.cfg
  41. +7 −0 .kokoro/presubmit/java11.cfg
  42. +7 −0 .kokoro/presubmit/java7.cfg
  43. +3 −0 .kokoro/presubmit/java8-osx.cfg
  44. +3 −0 .kokoro/presubmit/java8-win.cfg
  45. +12 −0 .kokoro/presubmit/java8.cfg
  46. +12 −0 .kokoro/presubmit/linkage-monitor.cfg
  47. +13 −0 .kokoro/presubmit/lint.cfg
  48. +33 −0 .kokoro/presubmit/samples.cfg
  49. +45 −0 .kokoro/readme.sh
  50. +53 −0 .kokoro/release/bump_snapshot.cfg
  51. +49 −0 .kokoro/release/common.cfg
  52. +50 −0 .kokoro/release/common.sh
  53. +6 −0 .kokoro/release/drop.cfg
  54. +32 −0 .kokoro/release/drop.sh
  55. +6 −0 .kokoro/release/promote.cfg
  56. +34 −0 .kokoro/release/promote.sh
  57. +29 −0 .kokoro/release/publish_javadoc.cfg
  58. +77 −0 .kokoro/release/publish_javadoc.sh
  59. +6 −0 .kokoro/release/snapshot.cfg
  60. +33 −0 .kokoro/release/snapshot.sh
  61. +19 −0 .kokoro/release/stage.cfg
  62. +45 −0 .kokoro/release/stage.sh
  63. +26 −0 .kokoro/trampoline.sh
  64. +15 −0 .repo-metadata.json
  65. +94 −0 CODE_OF_CONDUCT.md
  66. +139 −0 CONTRIBUTING.md
  67. +202 −0 LICENSE
  68. +4 −0 codecov.yaml
  69. +97 −0 google-cloud-retail-bom/pom.xml
  70. +111 −0 google-cloud-retail/pom.xml
  71. +363 −0 google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CatalogServiceClient.java
  72. +198 −0 google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CatalogServiceSettings.java
  73. +188 −0 google-cloud-retail/src/main/java/com/google/cloud/retail/v2/PredictionServiceClient.java
  74. +182 −0 google-cloud-retail/src/main/java/com/google/cloud/retail/v2/PredictionServiceSettings.java
  75. +474 −0 google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceClient.java
  76. +238 −0 google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceSettings.java
  77. +366 −0 google-cloud-retail/src/main/java/com/google/cloud/retail/v2/UserEventServiceClient.java
  78. +267 −0 google-cloud-retail/src/main/java/com/google/cloud/retail/v2/UserEventServiceSettings.java
  79. +48 −0 google-cloud-retail/src/main/java/com/google/cloud/retail/v2/package-info.java
  80. +52 −0 google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CatalogServiceStub.java
  81. +362 −0 google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CatalogServiceStubSettings.java
  82. +113 −0 ...cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcCatalogServiceCallableFactory.java
  83. +204 −0 google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcCatalogServiceStub.java
  84. +113 −0 ...ud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcPredictionServiceCallableFactory.java
  85. +158 −0 google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcPredictionServiceStub.java
  86. +113 −0 ...cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcProductServiceCallableFactory.java
  87. +302 −0 google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcProductServiceStub.java
  88. +113 −0 ...oud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcUserEventServiceCallableFactory.java
  89. +338 −0 google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcUserEventServiceStub.java
  90. +40 −0 google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/PredictionServiceStub.java
  91. +270 −0 google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/PredictionServiceStubSettings.java
  92. +75 −0 google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStub.java
  93. +419 −0 google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStubSettings.java
  94. +90 −0 google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/UserEventServiceStub.java
  95. +527 −0 google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/UserEventServiceStubSettings.java
  96. +212 −0 google-cloud-retail/src/test/java/com/google/cloud/retail/v2/CatalogServiceClientTest.java
  97. +59 −0 google-cloud-retail/src/test/java/com/google/cloud/retail/v2/MockCatalogService.java
  98. +90 −0 google-cloud-retail/src/test/java/com/google/cloud/retail/v2/MockCatalogServiceImpl.java
  99. +59 −0 google-cloud-retail/src/test/java/com/google/cloud/retail/v2/MockPredictionService.java
  100. +74 −0 google-cloud-retail/src/test/java/com/google/cloud/retail/v2/MockPredictionServiceImpl.java
  101. +59 −0 google-cloud-retail/src/test/java/com/google/cloud/retail/v2/MockProductService.java
  102. +135 −0 google-cloud-retail/src/test/java/com/google/cloud/retail/v2/MockProductServiceImpl.java
  103. +59 −0 google-cloud-retail/src/test/java/com/google/cloud/retail/v2/MockUserEventService.java
  104. +137 −0 google-cloud-retail/src/test/java/com/google/cloud/retail/v2/MockUserEventServiceImpl.java
  105. +148 −0 google-cloud-retail/src/test/java/com/google/cloud/retail/v2/PredictionServiceClientTest.java
  106. +497 −0 google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ProductServiceClientTest.java
  107. +366 −0 google-cloud-retail/src/test/java/com/google/cloud/retail/v2/UserEventServiceClientTest.java
  108. +65 −0 grpc-google-cloud-retail-v2/pom.xml
  109. +476 −0 grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogServiceGrpc.java
  110. +355 −0 grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PredictionServiceGrpc.java
  111. +809 −0 grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductServiceGrpc.java
  112. +866 −0 grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventServiceGrpc.java
  113. +15 −0 java.header
  114. +10 −0 license-checks.xml
  115. +189 −0 pom.xml
  116. +42 −0 proto-google-cloud-retail-v2/pom.xml
  117. +1,469 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/BigQuerySource.java
  118. +184 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/BigQuerySourceOrBuilder.java
  119. +257 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/BranchName.java
  120. +1,154 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/Catalog.java
  121. +128 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogOrBuilder.java
  122. +102 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogProto.java
  123. +144 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogServiceProto.java
  124. +1,127 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CollectUserEventRequest.java
  125. +125 −0 ...le-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CollectUserEventRequestOrBuilder.java
  126. +124 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CommonProto.java
  127. +1,198 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CreateProductRequest.java
  128. +141 −0 ...oogle-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CreateProductRequestOrBuilder.java
  129. +1,130 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CustomAttribute.java
  130. +160 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CustomAttributeOrBuilder.java
  131. +698 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/DeleteProductRequest.java
  132. +68 −0 ...oogle-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/DeleteProductRequestOrBuilder.java
  133. +1,068 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/GcsSource.java
  134. +147 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/GcsSourceOrBuilder.java
  135. +697 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/GetProductRequest.java
  136. +68 −0 ...o-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/GetProductRequestOrBuilder.java
  137. +861 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/Image.java
  138. +90 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImageOrBuilder.java
  139. +285 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportConfigProto.java
  140. +756 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportErrorsConfig.java
  141. +58 −0 ...-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportErrorsConfigOrBuilder.java
  142. +1,192 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportMetadata.java
  143. +124 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportMetadataOrBuilder.java
  144. +1,520 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportProductsRequest.java
  145. +170 −0 ...ogle-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportProductsRequestOrBuilder.java
  146. +1,220 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportProductsResponse.java
  147. +111 −0 ...gle-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportProductsResponseOrBuilder.java
  148. +1,228 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportUserEventsRequest.java
  149. +129 −0 ...le-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportUserEventsRequestOrBuilder.java
  150. +1,509 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportUserEventsResponse.java
  151. +149 −0 ...e-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportUserEventsResponseOrBuilder.java
  152. +1,017 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ListCatalogsRequest.java
  153. +119 −0 ...google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ListCatalogsRequestOrBuilder.java
  154. +1,151 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ListCatalogsResponse.java
  155. +107 −0 ...oogle-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ListCatalogsResponseOrBuilder.java
  156. +192 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/LocationName.java
  157. +2,628 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PredictRequest.java
  158. +459 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PredictRequestOrBuilder.java
  159. +2,689 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PredictResponse.java
  160. +178 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PredictResponseOrBuilder.java
  161. +185 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PredictionServiceProto.java
  162. +961 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PriceInfo.java
  163. +104 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PriceInfoOrBuilder.java
  164. +5,543 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/Product.java
  165. +1,079 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductDetail.java
  166. +116 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductDetailOrBuilder.java
  167. +1,038 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductInlineSource.java
  168. +96 −0 ...google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductInlineSourceOrBuilder.java
  169. +1,443 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductInputConfig.java
  170. +132 −0 ...-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductInputConfigOrBuilder.java
  171. +1,070 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductLevelConfig.java
  172. +147 −0 ...-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductLevelConfigOrBuilder.java
  173. +298 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductName.java
  174. +874 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductOrBuilder.java
  175. +147 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductProto.java
  176. +182 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductServiceProto.java
  177. +1,118 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurchaseTransaction.java
  178. +122 −0 ...google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurchaseTransactionOrBuilder.java
  179. +104 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeConfigProto.java
  180. +455 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeMetadata.java
  181. +24 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeMetadataOrBuilder.java
  182. +1,053 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeUserEventsRequest.java
  183. +130 −0 ...gle-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeUserEventsRequestOrBuilder.java
  184. +550 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeUserEventsResponse.java
  185. +38 −0 ...le-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeUserEventsResponseOrBuilder.java
  186. +456 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/RejoinUserEventsMetadata.java
  187. +24 −0 ...e-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/RejoinUserEventsMetadataOrBuilder.java
  188. +1,013 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/RejoinUserEventsRequest.java
  189. +87 −0 ...le-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/RejoinUserEventsRequestOrBuilder.java
  190. +546 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/RejoinUserEventsResponse.java
  191. +38 −0 ...e-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/RejoinUserEventsResponseOrBuilder.java
  192. +1,149 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UpdateCatalogRequest.java
  193. +131 −0 ...oogle-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UpdateCatalogRequestOrBuilder.java
  194. +1,133 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UpdateProductRequest.java
  195. +128 −0 ...oogle-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UpdateProductRequestOrBuilder.java
  196. +4,953 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEvent.java
  197. +642 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventImportSummary.java
  198. +52 −0 ...gle-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventImportSummaryOrBuilder.java
  199. +993 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventInlineSource.java
  200. +87 −0 ...ogle-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventInlineSourceOrBuilder.java
  201. +1,521 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventInputConfig.java
  202. +150 −0 ...oogle-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventInputConfigOrBuilder.java
  203. +776 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventOrBuilder.java
  204. +161 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventProto.java
  205. +190 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventServiceProto.java
  206. +1,247 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserInfo.java
  207. +160 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserInfoOrBuilder.java
  208. +943 −0 proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/WriteUserEventRequest.java
  209. +93 −0 ...ogle-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/WriteUserEventRequestOrBuilder.java
  210. +111 −0 proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/catalog.proto
  211. +136 −0 proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/catalog_service.proto
  212. +161 −0 proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/common.proto
  213. +251 −0 proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/import_config.proto
  214. +190 −0 proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/prediction_service.proto
  215. +283 −0 proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/product.proto
  216. +186 −0 proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/product_service.proto
  217. +79 −0 proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/purge_config.proto
  218. +227 −0 proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/user_event.proto
  219. +188 −0 proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/user_event_service.proto
  220. +73 −0 renovate.json
  221. +84 −0 samples/install-without-bom/pom.xml
  222. +56 −0 samples/pom.xml
  223. +83 −0 samples/snapshot/pom.xml
  224. +47 −0 samples/snippets/pom.xml
  225. +37 −0 synth.metadata
  226. +32 −0 synth.py
  227. +6 −0 versions.txt
Validating CODEOWNERS rules …
@@ -0,0 +1,10 @@
# Code owners file.
# This file controls who is tagged for review for any given pull request.

# For syntax help see:
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax

* @googleapis/yoshi-java

# The java-samples-reviewers team is the default owner for samples changes
samples/**/*.java @googleapis/java-samples-reviewers
@@ -0,0 +1,51 @@
---
name: Bug report
about: Create a report to help us improve

---

Thanks for stopping by to let us know something could be better!

**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.

Please run down the following list and make sure you've tried the usual "quick fixes":

- Search the issues already opened: https://github.com/googleapis/java-retail/issues
- Check for answers on StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform

If you are still having issues, please include as much information as possible:

#### Environment details

1. Specify the API at the beginning of the title. For example, "BigQuery: ...").
General, Core, and Other are also allowed as types
2. OS type and version:
3. Java version:
4. retail version(s):

#### Steps to reproduce

1. ?
2. ?

#### Code example

```java
// example
```

#### Stack trace
```
Any relevant stacktrace here.
```

#### External references such as API reference guides

- ?

#### Any additional information below


Following these steps guarantees the quickest resolution possible.

Thanks!
@@ -0,0 +1,21 @@
---
name: Feature request
about: Suggest an idea for this library

---

Thanks for stopping by to let us know something could be better!

**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.

**Is your feature request related to a problem? Please describe.**
What the problem is. Example: I'm always frustrated when [...]

**Describe the solution you'd like**
What you want to happen.

**Describe alternatives you've considered**
Any alternative solutions or features you've considered.

**Additional context**
Any other context or screenshots about the feature request.
@@ -0,0 +1,7 @@
---
name: Support request
about: If you have a support contract with Google, please create an issue in the Google Cloud Support console.

---

**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.
@@ -0,0 +1,7 @@
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/java-retail/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> ☕️
@@ -0,0 +1,7 @@
# Configuration for the Blunderbuss GitHub app. For more info see
# https://github.com/googleapis/repo-automation-bots/tree/master/packages/blunderbuss
assign_prs_by:
- labels:
- samples
to:
- googleapis/java-samples-reviewers
@@ -0,0 +1,7 @@
externalManifests:
- type: json
file: 'synth.metadata'
jsonpath: '$.generatedFiles[*]'
- type: json
file: '.github/readme/synth.metadata/synth.metadata'
jsonpath: '$.generatedFiles[*]'
@@ -0,0 +1,19 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""This script is used to synthesize generated the README for this library."""

from synthtool.languages import java

java.custom_templates(["java_library/README.md"])
@@ -0,0 +1,2 @@
releaseType: java-yoshi
bumpMinorPreMajor: true
Empty file.
@@ -0,0 +1,2 @@
trustedContributors:
- renovate-bot
@@ -0,0 +1,54 @@
on:
pull_request:
name: auto-merge-readme
jobs:
approve:
runs-on: ubuntu-latest
if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme'
steps:
- uses: actions/github-script@v3
with:
github-token: ${{secrets.YOSHI_APPROVER_TOKEN}}
script: |
// only approve PRs from yoshi-automation
if (context.payload.pull_request.user.login !== "yoshi-automation") {
return;
}
// only approve PRs like "chore: release <release version>"
if (!context.payload.pull_request.title === "chore: regenerate README") {
return;
}
// only approve PRs with README.md and synth.metadata changes
const files = new Set(
(
await github.paginate(
github.pulls.listFiles.endpoint({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.pull_request.number,
})
)
).map(file => file.filename)
);
if (files.size != 2 || !files.has("README.md") || !files.has(".github/readme/synth.metadata/synth.metadata")) {
return;
}
// approve README regeneration PR
await github.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Rubber stamped PR!',
pull_number: context.payload.pull_request.number,
event: 'APPROVE'
});
// attach automerge label
await github.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.pull_request.number,
labels: ['automerge']
});
@@ -0,0 +1,88 @@
on:
pull_request:
name: auto-release
jobs:
approve:
runs-on: ubuntu-latest
if: contains(github.head_ref, 'release-v')
steps:
- uses: actions/github-script@v3
with:
github-token: ${{secrets.YOSHI_APPROVER_TOKEN}}
debug: true
script: |
// only approve PRs from release-please[bot]
if (context.payload.pull_request.user.login !== "release-please[bot]") {
return;
}
// only approve PRs like "chore: release <release version>"
if ( !context.payload.pull_request.title.startsWith("chore: release") ) {
return;
}
// only approve PRs with pom.xml and versions.txt changes
const filesPromise = github.pulls.listFiles.endpoint({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.pull_request.number,
});
const changed_files = await github.paginate(filesPromise)
if ( changed_files.length < 1 ) {
console.log( "Not proceeding since PR is empty!" )
return;
}
if ( !changed_files.some(v => v.filename.includes("pom")) || !changed_files.some(v => v.filename.includes("versions.txt")) ) {
console.log( "PR file changes do not have pom.xml or versions.txt -- something is wrong. PTAL!" )
return;
}
// trigger auto-release when
// 1) it is a SNAPSHOT release (auto-generated post regular release)
// 2) there are dependency updates only
// 3) there are no open dependency update PRs in this repo (to avoid multiple releases)
if (
context.payload.pull_request.body.includes("Fix") ||
context.payload.pull_request.body.includes("Build") ||
context.payload.pull_request.body.includes("Documentation") ||
context.payload.pull_request.body.includes("BREAKING CHANGES") ||
context.payload.pull_request.body.includes("Features")
) {
console.log( "Not auto-releasing since it is not a dependency-update-only release." );
return;
}
const promise = github.pulls.list.endpoint({
owner: context.repo.owner,
repo: context.repo.repo,
state: 'open'
});
const open_pulls = await github.paginate(promise)
if ( open_pulls.length > 1 && !context.payload.pull_request.title.includes("SNAPSHOT") ) {
for ( const pull of open_pulls ) {
if ( pull.title.startsWith("deps: update dependency") ) {
console.log( "Not auto-releasing yet since there are dependency update PRs open in this repo." );
return;
}
}
}
// approve release PR
await github.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Rubber stamped release!',
pull_number: context.payload.pull_request.number,
event: 'APPROVE'
});
// attach kokoro:force-run and automerge labels
await github.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.pull_request.number,
labels: ['kokoro:force-run', 'automerge']
});
@@ -0,0 +1,79 @@
on:
push:
branches:
- master
pull_request:
name: ci
jobs:
units:
runs-on: ubuntu-latest
strategy:
matrix:
java: [7, 8, 11]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{matrix.java}}
- run: java -version
- run: .kokoro/build.sh
env:
JOB_TYPE: test
- name: coverage
uses: codecov/codecov-action@v1
with:
name: actions ${{matrix.java}}
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- run: java -version
- run: .kokoro/build.bat
env:
JOB_TYPE: test
dependencies:
runs-on: ubuntu-latest
strategy:
matrix:
java: [8, 11]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{matrix.java}}
- run: java -version
- run: .kokoro/dependencies.sh
linkage-monitor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- run: java -version
- run: .kokoro/linkage-monitor.sh
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- run: java -version
- run: .kokoro/build.sh
env:
JOB_TYPE: lint
clirr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- run: java -version
- run: .kokoro/build.sh
env:
JOB_TYPE: clirr
@@ -0,0 +1,25 @@
on:
pull_request_target:
types: [opened, synchronize]
branches:
- master
name: format
jobs:
format-code:
runs-on: ubuntu-latest
env:
ACCESS_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
steps:
- uses: actions/checkout@v2
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- uses: actions/setup-java@v1
with:
java-version: 11
- run: "mvn com.coveo:fmt-maven-plugin:format"
- uses: googleapis/code-suggester@v1
with:
command: review
pull_number: ${{ github.event.pull_request.number }}
git_dir: '.'

0 comments on commit d946135

Please sign in to comment.