Skip to content
Permalink
Browse files
feat: add upgrade classes (#21)
* [CHANGE ME] Re-generated  to pick up changes in the API or client library generator.

* fix: allow proto interface changes

Co-authored-by: Jeff Ching <chingor@google.com>
  • Loading branch information
yoshi-automation and chingor13 committed Jan 14, 2020
1 parent 3ab8a8d commit 17e95c1c95a1e85addd5745fca9f28691d29fa46
Showing with 12,211 additions and 1,209 deletions.
  1. +19 −0 clirr-ignored-differences.xml
  2. +50 −18 src/main/java/io/grafeas/v1/BatchCreateNotesRequest.java
  3. +16 −7 src/main/java/io/grafeas/v1/BatchCreateNotesRequestOrBuilder.java
  4. +90 −30 src/main/java/io/grafeas/v1/BatchCreateOccurrencesRequest.java
  5. +21 −7 src/main/java/io/grafeas/v1/BatchCreateOccurrencesRequestOrBuilder.java
  6. +5 −5 src/main/java/io/grafeas/v1/Common.java
  7. +40 −26 src/main/java/io/grafeas/v1/CreateNoteRequest.java
  8. +11 −7 src/main/java/io/grafeas/v1/CreateNoteRequestOrBuilder.java
  9. +33 −19 src/main/java/io/grafeas/v1/CreateOccurrenceRequest.java
  10. +9 −5 src/main/java/io/grafeas/v1/CreateOccurrenceRequestOrBuilder.java
  11. +21 −7 src/main/java/io/grafeas/v1/DeleteNoteRequest.java
  12. +6 −2 src/main/java/io/grafeas/v1/DeleteNoteRequestOrBuilder.java
  13. +23 −9 src/main/java/io/grafeas/v1/DeleteOccurrenceRequest.java
  14. +6 −2 src/main/java/io/grafeas/v1/DeleteOccurrenceRequestOrBuilder.java
  15. +25 −19 src/main/java/io/grafeas/v1/Discovery.java
  16. +450 −0 src/main/java/io/grafeas/v1/DiscoveryOccurrence.java
  17. +60 −0 src/main/java/io/grafeas/v1/DiscoveryOccurrenceOrBuilder.java
  18. +21 −7 src/main/java/io/grafeas/v1/GetNoteRequest.java
  19. +6 −2 src/main/java/io/grafeas/v1/GetNoteRequestOrBuilder.java
  20. +21 −7 src/main/java/io/grafeas/v1/GetOccurrenceNoteRequest.java
  21. +6 −2 src/main/java/io/grafeas/v1/GetOccurrenceNoteRequestOrBuilder.java
  22. +21 −7 src/main/java/io/grafeas/v1/GetOccurrenceRequest.java
  23. +6 −2 src/main/java/io/grafeas/v1/GetOccurrenceRequestOrBuilder.java
  24. +171 −131 src/main/java/io/grafeas/v1/GrafeasOuterClass.java
  25. +21 −7 src/main/java/io/grafeas/v1/ListNoteOccurrencesRequest.java
  26. +6 −2 src/main/java/io/grafeas/v1/ListNoteOccurrencesRequestOrBuilder.java
  27. +21 −7 src/main/java/io/grafeas/v1/ListNotesRequest.java
  28. +6 −2 src/main/java/io/grafeas/v1/ListNotesRequestOrBuilder.java
  29. +21 −7 src/main/java/io/grafeas/v1/ListOccurrencesRequest.java
  30. +6 −2 src/main/java/io/grafeas/v1/ListOccurrencesRequestOrBuilder.java
  31. +293 −0 src/main/java/io/grafeas/v1/Note.java
  32. +22 −0 src/main/java/io/grafeas/v1/NoteKind.java
  33. +35 −0 src/main/java/io/grafeas/v1/NoteOrBuilder.java
  34. +295 −0 src/main/java/io/grafeas/v1/Occurrence.java
  35. +35 −0 src/main/java/io/grafeas/v1/OccurrenceOrBuilder.java
  36. +33 −19 src/main/java/io/grafeas/v1/UpdateNoteRequest.java
  37. +9 −5 src/main/java/io/grafeas/v1/UpdateNoteRequestOrBuilder.java
  38. +33 −19 src/main/java/io/grafeas/v1/UpdateOccurrenceRequest.java
  39. +9 −5 src/main/java/io/grafeas/v1/UpdateOccurrenceRequestOrBuilder.java
  40. +155 −0 src/main/java/io/grafeas/v1/Upgrade.java
  41. +1,290 −0 src/main/java/io/grafeas/v1/UpgradeDistribution.java
  42. +160 −0 src/main/java/io/grafeas/v1/UpgradeDistributionOrBuilder.java
  43. +1,660 −0 src/main/java/io/grafeas/v1/UpgradeNote.java
  44. +176 −0 src/main/java/io/grafeas/v1/UpgradeNoteOrBuilder.java
  45. +1,473 −0 src/main/java/io/grafeas/v1/UpgradeOccurrence.java
  46. +165 −0 src/main/java/io/grafeas/v1/UpgradeOccurrenceOrBuilder.java
  47. +49 −42 src/main/java/io/grafeas/v1/Vulnerability.java
  48. +635 −0 src/main/java/io/grafeas/v1/VulnerabilityNote.java
  49. +41 −0 src/main/java/io/grafeas/v1/VulnerabilityNoteOrBuilder.java
  50. +7 −14 src/main/java/io/grafeas/v1/VulnerabilityOccurrence.java
  51. +2 −4 src/main/java/io/grafeas/v1/VulnerabilityOccurrenceOrBuilder.java
  52. +3,898 −0 src/main/java/io/grafeas/v1/WindowsUpdate.java
  53. +278 −0 src/main/java/io/grafeas/v1/WindowsUpdateOrBuilder.java
  54. +2 −0 src/main/proto/grafeas/v1/common.proto
  55. +7 −0 src/main/proto/grafeas/v1/discovery.proto
  56. +102 −23 src/main/proto/grafeas/v1/grafeas.proto
  57. +114 −0 src/main/proto/grafeas/v1/upgrade.proto
  58. +12 −2 src/main/proto/grafeas/v1/vulnerability.proto
  59. +3 −728 synth.metadata
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- see http://www.mojohaus.org/clirr-maven-plugin/examples/ignored-differences.html -->
<differences>
<difference>
<differenceType>7012</differenceType>
<className>io/grafeas/v1/*OrBuilder</className>
<method>* get*(*)</method>
</difference>
<difference>
<differenceType>7012</differenceType>
<className>io/grafeas/v1/*OrBuilder</className>
<method>boolean contains*(*)</method>
</difference>
<difference>
<differenceType>7012</differenceType>
<className>io/grafeas/v1/*OrBuilder</className>
<method>boolean has*(*)</method>
</difference>
</differences>
@@ -147,7 +147,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
* the notes are to be created.
* </pre>
*
* <code>string parent = 1;</code>
* <code>
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
* </code>
*
* @return The parent.
*/
@@ -170,7 +172,9 @@ public java.lang.String getParent() {
* the notes are to be created.
* </pre>
*
* <code>string parent = 1;</code>
* <code>
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
* </code>
*
* @return The bytes for parent.
*/
@@ -218,7 +222,8 @@ public int getNotesCount() {
* The notes to create. Max allowed length is 1000.
* </pre>
*
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*/
public boolean containsNotes(java.lang.String key) {
if (key == null) {
@@ -238,7 +243,8 @@ public java.util.Map<java.lang.String, io.grafeas.v1.Note> getNotes() {
* The notes to create. Max allowed length is 1000.
* </pre>
*
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*/
public java.util.Map<java.lang.String, io.grafeas.v1.Note> getNotesMap() {
return internalGetNotes().getMap();
@@ -250,7 +256,8 @@ public java.util.Map<java.lang.String, io.grafeas.v1.Note> getNotesMap() {
* The notes to create. Max allowed length is 1000.
* </pre>
*
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*/
public io.grafeas.v1.Note getNotesOrDefault(
java.lang.String key, io.grafeas.v1.Note defaultValue) {
@@ -267,7 +274,8 @@ public io.grafeas.v1.Note getNotesOrDefault(
* The notes to create. Max allowed length is 1000.
* </pre>
*
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*/
public io.grafeas.v1.Note getNotesOrThrow(java.lang.String key) {
if (key == null) {
@@ -647,7 +655,9 @@ public Builder mergeFrom(
* the notes are to be created.
* </pre>
*
* <code>string parent = 1;</code>
* <code>
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
* </code>
*
* @return The parent.
*/
@@ -670,7 +680,9 @@ public java.lang.String getParent() {
* the notes are to be created.
* </pre>
*
* <code>string parent = 1;</code>
* <code>
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
* </code>
*
* @return The bytes for parent.
*/
@@ -693,7 +705,9 @@ public com.google.protobuf.ByteString getParentBytes() {
* the notes are to be created.
* </pre>
*
* <code>string parent = 1;</code>
* <code>
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
* </code>
*
* @param value The parent to set.
* @return This builder for chaining.
@@ -715,7 +729,9 @@ public Builder setParent(java.lang.String value) {
* the notes are to be created.
* </pre>
*
* <code>string parent = 1;</code>
* <code>
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
* </code>
*
* @return This builder for chaining.
*/
@@ -733,7 +749,9 @@ public Builder clearParent() {
* the notes are to be created.
* </pre>
*
* <code>string parent = 1;</code>
* <code>
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
* </code>
*
* @param value The bytes for parent to set.
* @return This builder for chaining.
@@ -781,7 +799,9 @@ public int getNotesCount() {
* The notes to create. Max allowed length is 1000.
* </pre>
*
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
* <code>
* map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*/
public boolean containsNotes(java.lang.String key) {
if (key == null) {
@@ -801,7 +821,9 @@ public java.util.Map<java.lang.String, io.grafeas.v1.Note> getNotes() {
* The notes to create. Max allowed length is 1000.
* </pre>
*
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
* <code>
* map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*/
public java.util.Map<java.lang.String, io.grafeas.v1.Note> getNotesMap() {
return internalGetNotes().getMap();
@@ -813,7 +835,9 @@ public java.util.Map<java.lang.String, io.grafeas.v1.Note> getNotesMap() {
* The notes to create. Max allowed length is 1000.
* </pre>
*
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
* <code>
* map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*/
public io.grafeas.v1.Note getNotesOrDefault(
java.lang.String key, io.grafeas.v1.Note defaultValue) {
@@ -830,7 +854,9 @@ public io.grafeas.v1.Note getNotesOrDefault(
* The notes to create. Max allowed length is 1000.
* </pre>
*
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
* <code>
* map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*/
public io.grafeas.v1.Note getNotesOrThrow(java.lang.String key) {
if (key == null) {
@@ -854,7 +880,9 @@ public Builder clearNotes() {
* The notes to create. Max allowed length is 1000.
* </pre>
*
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
* <code>
* map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*/
public Builder removeNotes(java.lang.String key) {
if (key == null) {
@@ -875,7 +903,9 @@ public java.util.Map<java.lang.String, io.grafeas.v1.Note> getMutableNotes() {
* The notes to create. Max allowed length is 1000.
* </pre>
*
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
* <code>
* map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*/
public Builder putNotes(java.lang.String key, io.grafeas.v1.Note value) {
if (key == null) {
@@ -894,7 +924,9 @@ public Builder putNotes(java.lang.String key, io.grafeas.v1.Note value) {
* The notes to create. Max allowed length is 1000.
* </pre>
*
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
* <code>
* map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*/
public Builder putAllNotes(java.util.Map<java.lang.String, io.grafeas.v1.Note> values) {
internalGetMutableNotes().getMutableMap().putAll(values);
@@ -32,7 +32,9 @@
* the notes are to be created.
* </pre>
*
* <code>string parent = 1;</code>
* <code>
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
* </code>
*
* @return The parent.
*/
@@ -45,7 +47,9 @@
* the notes are to be created.
* </pre>
*
* <code>string parent = 1;</code>
* <code>
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
* </code>
*
* @return The bytes for parent.
*/
@@ -58,7 +62,8 @@
* The notes to create. Max allowed length is 1000.
* </pre>
*
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*/
int getNotesCount();
/**
@@ -68,7 +73,8 @@
* The notes to create. Max allowed length is 1000.
* </pre>
*
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*/
boolean containsNotes(java.lang.String key);
/** Use {@link #getNotesMap()} instead. */
@@ -81,7 +87,8 @@
* The notes to create. Max allowed length is 1000.
* </pre>
*
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*/
java.util.Map<java.lang.String, io.grafeas.v1.Note> getNotesMap();
/**
@@ -91,7 +98,8 @@
* The notes to create. Max allowed length is 1000.
* </pre>
*
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*/
io.grafeas.v1.Note getNotesOrDefault(java.lang.String key, io.grafeas.v1.Note defaultValue);
/**
@@ -101,7 +109,8 @@
* The notes to create. Max allowed length is 1000.
* </pre>
*
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*/
io.grafeas.v1.Note getNotesOrThrow(java.lang.String key);
}

0 comments on commit 17e95c1

Please sign in to comment.