Skip to content
Permalink
Browse files
feat!: remove features from Endpoint. add service_root_url to Docum…
…entation add UNIMPLEMENTED, PRELAUNCH LaunchStage values add monitoried_resource_types to MetricDescriptor (#35)

BREAKING CHANGE: `features` removed from Endpoint

* chore: fix glob for allowed proto interface changes

* chore: regenerate common templates

* chore: allow features field removal

Co-authored-by: Jeff Ching <chingor@google.com>
  • Loading branch information
yoshi-automation and chingor13 committed Sep 22, 2020
1 parent 3dc5426 commit cdd4e5633b1e4f5dc199ddc513ea7f238d2150d5
Showing with 13,457 additions and 1,216 deletions.
  1. +2 −0 .github/CODEOWNERS
  2. +69 −0 .github/workflows/auto-release.yaml
  3. +0 −12 .kokoro/continuous/dependencies.cfg
  4. +0 −7 .kokoro/continuous/integration.cfg
  5. +0 −7 .kokoro/continuous/java11.cfg
  6. +0 −7 .kokoro/continuous/java7.cfg
  7. +0 −3 .kokoro/continuous/java8-osx.cfg
  8. +0 −3 .kokoro/continuous/java8-win.cfg
  9. +0 −13 .kokoro/continuous/lint.cfg
  10. +0 −53 .kokoro/continuous/propose_release.cfg
  11. +0 −31 .kokoro/continuous/samples.cfg
  12. +0 −12 .kokoro/nightly/dependencies.cfg
  13. +0 −13 .kokoro/nightly/lint.cfg
  14. +3 −28 .kokoro/release/stage.cfg
  15. +15 −3 proto-google-common-protos/clirr-ignored-differences.xml
  16. +2 −0 proto-google-common-protos/src/main/java/com/google/api/Advice.java
  17. +78 −35 proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java
  18. +18 −10 proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java
  19. +4 −0 proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java
  20. +10 −0 proto-google-common-protos/src/main/java/com/google/api/Authentication.java
  21. +12 −0 proto-google-common-protos/src/main/java/com/google/api/AuthenticationRule.java
  22. +5 −0 proto-google-common-protos/src/main/java/com/google/api/Backend.java
  23. +24 −0 proto-google-common-protos/src/main/java/com/google/api/BackendRule.java
  24. +41 −14 proto-google-common-protos/src/main/java/com/google/api/Billing.java
  25. +4 −0 proto-google-common-protos/src/main/java/com/google/api/ChangeType.java
  26. +16 −0 proto-google-common-protos/src/main/java/com/google/api/ConfigChange.java
  27. +5 −0 proto-google-common-protos/src/main/java/com/google/api/Context.java
  28. +2 −0 proto-google-common-protos/src/main/java/com/google/api/ContextRule.java
  29. +2 −0 proto-google-common-protos/src/main/java/com/google/api/Control.java
  30. +4 −0 proto-google-common-protos/src/main/java/com/google/api/CustomHttpPattern.java
  31. +63 −0 proto-google-common-protos/src/main/java/com/google/api/Distribution.java
  32. +216 −0 proto-google-common-protos/src/main/java/com/google/api/Documentation.java
  33. +31 −0 proto-google-common-protos/src/main/java/com/google/api/DocumentationOrBuilder.java
  34. +12 −11 proto-google-common-protos/src/main/java/com/google/api/DocumentationProto.java
  35. +6 −0 proto-google-common-protos/src/main/java/com/google/api/DocumentationRule.java
  36. +6 −276 proto-google-common-protos/src/main/java/com/google/api/Endpoint.java
  37. +0 −51 proto-google-common-protos/src/main/java/com/google/api/EndpointOrBuilder.java
  38. +7 −7 proto-google-common-protos/src/main/java/com/google/api/EndpointProto.java
  39. +4 −0 proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java
  40. +7 −0 proto-google-common-protos/src/main/java/com/google/api/Http.java
  41. +9 −0 proto-google-common-protos/src/main/java/com/google/api/HttpBody.java
  42. +27 −0 proto-google-common-protos/src/main/java/com/google/api/HttpRule.java
  43. +6 −0 proto-google-common-protos/src/main/java/com/google/api/JwtLocation.java
  44. +13 −0 proto-google-common-protos/src/main/java/com/google/api/LabelDescriptor.java
  45. +48 −0 proto-google-common-protos/src/main/java/com/google/api/LaunchStage.java
  46. +7 −6 proto-google-common-protos/src/main/java/com/google/api/LaunchStageProto.java
  47. +11 −0 proto-google-common-protos/src/main/java/com/google/api/LogDescriptor.java
  48. +12 −0 proto-google-common-protos/src/main/java/com/google/api/Logging.java
  49. +12 −0 proto-google-common-protos/src/main/java/com/google/api/Metric.java
  50. +676 −69 proto-google-common-protos/src/main/java/com/google/api/MetricDescriptor.java
  51. +132 −13 proto-google-common-protos/src/main/java/com/google/api/MetricDescriptorOrBuilder.java
  52. +19 −17 proto-google-common-protos/src/main/java/com/google/api/MetricProto.java
  53. +12 −0 proto-google-common-protos/src/main/java/com/google/api/MetricRule.java
  54. +12 −0 proto-google-common-protos/src/main/java/com/google/api/MonitoredResource.java
  55. +300 −66 proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptor.java
  56. +60 −14 proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptorOrBuilder.java
  57. +13 −0 proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadata.java
  58. +12 −0 proto-google-common-protos/src/main/java/com/google/api/Monitoring.java
  59. +2 −0 proto-google-common-protos/src/main/java/com/google/api/OAuthRequirements.java
  60. +9 −0 proto-google-common-protos/src/main/java/com/google/api/Page.java
  61. +5 −0 proto-google-common-protos/src/main/java/com/google/api/ProjectProperties.java
  62. +13 −0 proto-google-common-protos/src/main/java/com/google/api/Property.java
  63. +10 −0 proto-google-common-protos/src/main/java/com/google/api/Quota.java
  64. +35 −28 proto-google-common-protos/src/main/java/com/google/api/QuotaLimit.java
  65. +2 −8 proto-google-common-protos/src/main/java/com/google/api/QuotaLimitOrBuilder.java
  66. +624 −21 proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptor.java
  67. +85 −6 proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptorOrBuilder.java
  68. +20 −17 proto-google-common-protos/src/main/java/com/google/api/ResourceProto.java
  69. +60 −0 proto-google-common-protos/src/main/java/com/google/api/ResourceReference.java
  70. +16 −0 proto-google-common-protos/src/main/java/com/google/api/ResourceReferenceOrBuilder.java
  71. +106 −14 proto-google-common-protos/src/main/java/com/google/api/Service.java
  72. +6 −4 proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java
  73. +5 −0 proto-google-common-protos/src/main/java/com/google/api/SourceInfo.java
  74. +6 −0 proto-google-common-protos/src/main/java/com/google/api/SystemParameter.java
  75. +7 −0 proto-google-common-protos/src/main/java/com/google/api/SystemParameterRule.java
  76. +5 −0 proto-google-common-protos/src/main/java/com/google/api/SystemParameters.java
  77. +7 −0 proto-google-common-protos/src/main/java/com/google/api/Usage.java
  78. +6 −0 proto-google-common-protos/src/main/java/com/google/api/UsageRule.java
  79. +1,015 −66 proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLog.java
  80. +129 −0 proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogOrBuilder.java
  81. +120 −27 proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogProto.java
  82. +1,574 −8 proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfo.java
  83. +221 −2 proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfoOrBuilder.java
  84. +341 −7 proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfo.java
  85. +49 −2 proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfoOrBuilder.java
  86. +941 −0 proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadata.java
  87. +148 −0 proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadataOrBuilder.java
  88. +1,166 −0 proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocation.java
  89. +175 −0 proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocationOrBuilder.java
  90. +3,012 −0 proto-google-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfo.java
  91. +111 −0 ...gle-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfoOrBuilder.java
  92. +6 −0 proto-google-common-protos/src/main/java/com/google/geo/type/Viewport.java
  93. +31 −0 proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequest.java
  94. +3 −2 proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequestProto.java
  95. +4 −0 proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverity.java
  96. +3 −2 proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverityProto.java
  97. +2 −0 proto-google-common-protos/src/main/java/com/google/longrunning/CancelOperationRequest.java
  98. +2 −0 proto-google-common-protos/src/main/java/com/google/longrunning/DeleteOperationRequest.java
  99. +2 −0 proto-google-common-protos/src/main/java/com/google/longrunning/GetOperationRequest.java
  100. +8 −0 proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequest.java
  101. +7 −0 proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsResponse.java
  102. +19 −0 proto-google-common-protos/src/main/java/com/google/longrunning/Operation.java
  103. +4 −0 proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfo.java
  104. +5 −0 proto-google-common-protos/src/main/java/com/google/longrunning/WaitOperationRequest.java
  105. +9 −0 proto-google-common-protos/src/main/java/com/google/rpc/BadRequest.java
  106. +4 −0 proto-google-common-protos/src/main/java/com/google/rpc/Code.java
  107. +2 −0 proto-google-common-protos/src/main/java/com/google/rpc/DebugInfo.java
  108. +56 −35 proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfo.java
  109. +12 −10 proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfoOrBuilder.java
  110. +9 −0 proto-google-common-protos/src/main/java/com/google/rpc/Help.java
  111. +4 −0 proto-google-common-protos/src/main/java/com/google/rpc/LocalizedMessage.java
  112. +11 −0 proto-google-common-protos/src/main/java/com/google/rpc/PreconditionFailure.java
  113. +9 −0 proto-google-common-protos/src/main/java/com/google/rpc/QuotaFailure.java
  114. +4 −0 proto-google-common-protos/src/main/java/com/google/rpc/RequestInfo.java
  115. +8 −0 proto-google-common-protos/src/main/java/com/google/rpc/ResourceInfo.java
  116. +3 −0 proto-google-common-protos/src/main/java/com/google/rpc/RetryInfo.java
  117. +9 −0 proto-google-common-protos/src/main/java/com/google/rpc/Status.java
  118. +658 −53 proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContext.java
  119. +51 −0 proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContextOrBuilder.java
  120. +58 −48 proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContextProto.java
  121. +4 −0 proto-google-common-protos/src/main/java/com/google/type/CalendarPeriod.java
  122. +9 −0 proto-google-common-protos/src/main/java/com/google/type/Color.java
  123. +6 −0 proto-google-common-protos/src/main/java/com/google/type/Date.java
  124. +4 −0 proto-google-common-protos/src/main/java/com/google/type/DayOfWeek.java
  125. +8 −0 proto-google-common-protos/src/main/java/com/google/type/Expr.java
  126. +4 −0 proto-google-common-protos/src/main/java/com/google/type/Fraction.java
  127. +4 −0 proto-google-common-protos/src/main/java/com/google/type/LatLng.java
  128. +6 −0 proto-google-common-protos/src/main/java/com/google/type/Money.java
  129. +18 −0 proto-google-common-protos/src/main/java/com/google/type/PostalAddress.java
  130. +8 −0 proto-google-common-protos/src/main/java/com/google/type/Quaternion.java
  131. +8 −0 proto-google-common-protos/src/main/java/com/google/type/TimeOfDay.java
  132. +294 −75 synth.metadata
  133. +1 −0 synth.py
Validating CODEOWNERS rules …
@@ -4,5 +4,7 @@
# 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,69 @@
on:
pull_request:
name: auto-release
jobs:
approve:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v3.0.0
with:
github-token: ${{secrets.GITHUB_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;
}
// 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']
});

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

@@ -13,32 +13,7 @@ action {
}
}

# Fetch the token needed for reporting release status to GitHub
before_action {
fetch_keystore {
keystore_resource {
keystore_config_id: 73713
keyname: "yoshi-automation-github-key"
}
}
}

# Fetch magictoken to use with Magic Github Proxy
before_action {
fetch_keystore {
keystore_resource {
keystore_config_id: 73713
keyname: "releasetool-magictoken"
}
}
}

# Fetch api key to use with Magic Github Proxy
before_action {
fetch_keystore {
keystore_resource {
keystore_config_id: 73713
keyname: "magic-github-proxy-api-key"
}
}
env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem"
}
@@ -3,17 +3,29 @@
<differences>
<difference>
<differenceType>7012</differenceType>
<className>com/google/*/*OrBuilder</className>
<className>com/google/**/*OrBuilder</className>
<method>* get*(*)</method>
</difference>
<difference>
<differenceType>7012</differenceType>
<className>com/google/*/*OrBuilder</className>
<className>com/google/**/*OrBuilder</className>
<method>boolean contains*(*)</method>
</difference>
<difference>
<differenceType>7012</differenceType>
<className>com/google/*/*OrBuilder</className>
<className>com/google/**/*OrBuilder</className>
<method>boolean has*(*)</method>
</difference>

<!-- TODO: remove after 2.0.0 -->
<difference>
<differenceType>6011</differenceType>
<className>com/google/api/Endpoint</className>
<field>FEATURES_FIELD_NUMBER</field>
</difference>
<difference>
<differenceType>7002</differenceType>
<className>com/google/api/Endpoint*</className>
<method>* *Features*(*)</method>
</difference>
</differences>
@@ -123,6 +123,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
@@ -146,6 +147,7 @@ public java.lang.String getDescription() {
*
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {

0 comments on commit cdd4e56

Please sign in to comment.