Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 17e95c1

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 <[email protected]>
1 parent 3ab8a8d commit 17e95c1

File tree

59 files changed

+12211
-1209
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+12211
-1209
lines changed

clirr-ignored-differences.xml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- see http://www.mojohaus.org/clirr-maven-plugin/examples/ignored-differences.html -->
3+
<differences>
4+
<difference>
5+
<differenceType>7012</differenceType>
6+
<className>io/grafeas/v1/*OrBuilder</className>
7+
<method>* get*(*)</method>
8+
</difference>
9+
<difference>
10+
<differenceType>7012</differenceType>
11+
<className>io/grafeas/v1/*OrBuilder</className>
12+
<method>boolean contains*(*)</method>
13+
</difference>
14+
<difference>
15+
<differenceType>7012</differenceType>
16+
<className>io/grafeas/v1/*OrBuilder</className>
17+
<method>boolean has*(*)</method>
18+
</difference>
19+
</differences>

src/main/java/io/grafeas/v1/BatchCreateNotesRequest.java

+50-18
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
147147
* the notes are to be created.
148148
* </pre>
149149
*
150-
* <code>string parent = 1;</code>
150+
* <code>
151+
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
152+
* </code>
151153
*
152154
* @return The parent.
153155
*/
@@ -170,7 +172,9 @@ public java.lang.String getParent() {
170172
* the notes are to be created.
171173
* </pre>
172174
*
173-
* <code>string parent = 1;</code>
175+
* <code>
176+
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
177+
* </code>
174178
*
175179
* @return The bytes for parent.
176180
*/
@@ -218,7 +222,8 @@ public int getNotesCount() {
218222
* The notes to create. Max allowed length is 1000.
219223
* </pre>
220224
*
221-
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
225+
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
226+
* </code>
222227
*/
223228
public boolean containsNotes(java.lang.String key) {
224229
if (key == null) {
@@ -238,7 +243,8 @@ public java.util.Map<java.lang.String, io.grafeas.v1.Note> getNotes() {
238243
* The notes to create. Max allowed length is 1000.
239244
* </pre>
240245
*
241-
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
246+
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
247+
* </code>
242248
*/
243249
public java.util.Map<java.lang.String, io.grafeas.v1.Note> getNotesMap() {
244250
return internalGetNotes().getMap();
@@ -250,7 +256,8 @@ public java.util.Map<java.lang.String, io.grafeas.v1.Note> getNotesMap() {
250256
* The notes to create. Max allowed length is 1000.
251257
* </pre>
252258
*
253-
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
259+
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
260+
* </code>
254261
*/
255262
public io.grafeas.v1.Note getNotesOrDefault(
256263
java.lang.String key, io.grafeas.v1.Note defaultValue) {
@@ -267,7 +274,8 @@ public io.grafeas.v1.Note getNotesOrDefault(
267274
* The notes to create. Max allowed length is 1000.
268275
* </pre>
269276
*
270-
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
277+
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
278+
* </code>
271279
*/
272280
public io.grafeas.v1.Note getNotesOrThrow(java.lang.String key) {
273281
if (key == null) {
@@ -647,7 +655,9 @@ public Builder mergeFrom(
647655
* the notes are to be created.
648656
* </pre>
649657
*
650-
* <code>string parent = 1;</code>
658+
* <code>
659+
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
660+
* </code>
651661
*
652662
* @return The parent.
653663
*/
@@ -670,7 +680,9 @@ public java.lang.String getParent() {
670680
* the notes are to be created.
671681
* </pre>
672682
*
673-
* <code>string parent = 1;</code>
683+
* <code>
684+
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
685+
* </code>
674686
*
675687
* @return The bytes for parent.
676688
*/
@@ -693,7 +705,9 @@ public com.google.protobuf.ByteString getParentBytes() {
693705
* the notes are to be created.
694706
* </pre>
695707
*
696-
* <code>string parent = 1;</code>
708+
* <code>
709+
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
710+
* </code>
697711
*
698712
* @param value The parent to set.
699713
* @return This builder for chaining.
@@ -715,7 +729,9 @@ public Builder setParent(java.lang.String value) {
715729
* the notes are to be created.
716730
* </pre>
717731
*
718-
* <code>string parent = 1;</code>
732+
* <code>
733+
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
734+
* </code>
719735
*
720736
* @return This builder for chaining.
721737
*/
@@ -733,7 +749,9 @@ public Builder clearParent() {
733749
* the notes are to be created.
734750
* </pre>
735751
*
736-
* <code>string parent = 1;</code>
752+
* <code>
753+
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
754+
* </code>
737755
*
738756
* @param value The bytes for parent to set.
739757
* @return This builder for chaining.
@@ -781,7 +799,9 @@ public int getNotesCount() {
781799
* The notes to create. Max allowed length is 1000.
782800
* </pre>
783801
*
784-
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
802+
* <code>
803+
* map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
804+
* </code>
785805
*/
786806
public boolean containsNotes(java.lang.String key) {
787807
if (key == null) {
@@ -801,7 +821,9 @@ public java.util.Map<java.lang.String, io.grafeas.v1.Note> getNotes() {
801821
* The notes to create. Max allowed length is 1000.
802822
* </pre>
803823
*
804-
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
824+
* <code>
825+
* map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
826+
* </code>
805827
*/
806828
public java.util.Map<java.lang.String, io.grafeas.v1.Note> getNotesMap() {
807829
return internalGetNotes().getMap();
@@ -813,7 +835,9 @@ public java.util.Map<java.lang.String, io.grafeas.v1.Note> getNotesMap() {
813835
* The notes to create. Max allowed length is 1000.
814836
* </pre>
815837
*
816-
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
838+
* <code>
839+
* map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
840+
* </code>
817841
*/
818842
public io.grafeas.v1.Note getNotesOrDefault(
819843
java.lang.String key, io.grafeas.v1.Note defaultValue) {
@@ -830,7 +854,9 @@ public io.grafeas.v1.Note getNotesOrDefault(
830854
* The notes to create. Max allowed length is 1000.
831855
* </pre>
832856
*
833-
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
857+
* <code>
858+
* map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
859+
* </code>
834860
*/
835861
public io.grafeas.v1.Note getNotesOrThrow(java.lang.String key) {
836862
if (key == null) {
@@ -854,7 +880,9 @@ public Builder clearNotes() {
854880
* The notes to create. Max allowed length is 1000.
855881
* </pre>
856882
*
857-
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
883+
* <code>
884+
* map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
885+
* </code>
858886
*/
859887
public Builder removeNotes(java.lang.String key) {
860888
if (key == null) {
@@ -875,7 +903,9 @@ public java.util.Map<java.lang.String, io.grafeas.v1.Note> getMutableNotes() {
875903
* The notes to create. Max allowed length is 1000.
876904
* </pre>
877905
*
878-
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
906+
* <code>
907+
* map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
908+
* </code>
879909
*/
880910
public Builder putNotes(java.lang.String key, io.grafeas.v1.Note value) {
881911
if (key == null) {
@@ -894,7 +924,9 @@ public Builder putNotes(java.lang.String key, io.grafeas.v1.Note value) {
894924
* The notes to create. Max allowed length is 1000.
895925
* </pre>
896926
*
897-
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
927+
* <code>
928+
* map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
929+
* </code>
898930
*/
899931
public Builder putAllNotes(java.util.Map<java.lang.String, io.grafeas.v1.Note> values) {
900932
internalGetMutableNotes().getMutableMap().putAll(values);

src/main/java/io/grafeas/v1/BatchCreateNotesRequestOrBuilder.java

+16-7
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ public interface BatchCreateNotesRequestOrBuilder
3232
* the notes are to be created.
3333
* </pre>
3434
*
35-
* <code>string parent = 1;</code>
35+
* <code>
36+
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
37+
* </code>
3638
*
3739
* @return The parent.
3840
*/
@@ -45,7 +47,9 @@ public interface BatchCreateNotesRequestOrBuilder
4547
* the notes are to be created.
4648
* </pre>
4749
*
48-
* <code>string parent = 1;</code>
50+
* <code>
51+
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
52+
* </code>
4953
*
5054
* @return The bytes for parent.
5155
*/
@@ -58,7 +62,8 @@ public interface BatchCreateNotesRequestOrBuilder
5862
* The notes to create. Max allowed length is 1000.
5963
* </pre>
6064
*
61-
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
65+
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
66+
* </code>
6267
*/
6368
int getNotesCount();
6469
/**
@@ -68,7 +73,8 @@ public interface BatchCreateNotesRequestOrBuilder
6873
* The notes to create. Max allowed length is 1000.
6974
* </pre>
7075
*
71-
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
76+
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
77+
* </code>
7278
*/
7379
boolean containsNotes(java.lang.String key);
7480
/** Use {@link #getNotesMap()} instead. */
@@ -81,7 +87,8 @@ public interface BatchCreateNotesRequestOrBuilder
8187
* The notes to create. Max allowed length is 1000.
8288
* </pre>
8389
*
84-
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
90+
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
91+
* </code>
8592
*/
8693
java.util.Map<java.lang.String, io.grafeas.v1.Note> getNotesMap();
8794
/**
@@ -91,7 +98,8 @@ public interface BatchCreateNotesRequestOrBuilder
9198
* The notes to create. Max allowed length is 1000.
9299
* </pre>
93100
*
94-
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
101+
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
102+
* </code>
95103
*/
96104
io.grafeas.v1.Note getNotesOrDefault(java.lang.String key, io.grafeas.v1.Note defaultValue);
97105
/**
@@ -101,7 +109,8 @@ public interface BatchCreateNotesRequestOrBuilder
101109
* The notes to create. Max allowed length is 1000.
102110
* </pre>
103111
*
104-
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2;</code>
112+
* <code>map&lt;string, .grafeas.v1.Note&gt; notes = 2 [(.google.api.field_behavior) = REQUIRED];
113+
* </code>
105114
*/
106115
io.grafeas.v1.Note getNotesOrThrow(java.lang.String key);
107116
}

0 commit comments

Comments
 (0)