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

feat: add upgrade classes #21

Merged
merged 2 commits into from Jan 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 19 additions & 0 deletions clirr-ignored-differences.xml
@@ -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>
68 changes: 50 additions & 18 deletions src/main/java/io/grafeas/v1/BatchCreateNotesRequest.java
Expand Up @@ -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.
*/
Expand All @@ -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.
*/
Expand Down Expand Up @@ -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) {
Expand All @@ -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();
Expand All @@ -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) {
Expand All @@ -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) {
Expand Down Expand Up @@ -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.
*/
Expand All @@ -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.
*/
Expand All @@ -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.
Expand All @@ -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.
*/
Expand All @@ -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.
Expand Down Expand Up @@ -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) {
Expand All @@ -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();
Expand All @@ -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) {
Expand All @@ -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) {
Expand All @@ -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) {
Expand All @@ -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) {
Expand All @@ -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);
Expand Down
23 changes: 16 additions & 7 deletions src/main/java/io/grafeas/v1/BatchCreateNotesRequestOrBuilder.java
Expand Up @@ -32,7 +32,9 @@ public interface BatchCreateNotesRequestOrBuilder
* 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.
*/
Expand All @@ -45,7 +47,9 @@ public interface BatchCreateNotesRequestOrBuilder
* 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.
*/
Expand All @@ -58,7 +62,8 @@ public interface BatchCreateNotesRequestOrBuilder
* 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();
/**
Expand All @@ -68,7 +73,8 @@ public interface BatchCreateNotesRequestOrBuilder
* 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. */
Expand All @@ -81,7 +87,8 @@ public interface BatchCreateNotesRequestOrBuilder
* 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();
/**
Expand All @@ -91,7 +98,8 @@ public interface BatchCreateNotesRequestOrBuilder
* 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);
/**
Expand All @@ -101,7 +109,8 @@ public interface BatchCreateNotesRequestOrBuilder
* 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);
}