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

Commit

Permalink
feat(generator): update protoc to v3.15.3 (#123)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/85ff6015-d55c-4478-8392-d9259b8d2bde/targets

- [ ] To automatically regenerate this PR, check this box.

PiperOrigin-RevId: 359781040
Source-Link: googleapis/googleapis@f6dd7e4
  • Loading branch information
yoshi-automation committed Mar 1, 2021
1 parent bef4a21 commit 6e4c513
Show file tree
Hide file tree
Showing 9 changed files with 467 additions and 3 deletions.
Expand Up @@ -621,6 +621,22 @@ public com.google.api.BackendRule.PathTranslation getPathTranslation() {
}

public static final int JWT_AUDIENCE_FIELD_NUMBER = 7;
/**
*
*
* <pre>
* The JWT audience is used when generating a JWT ID token for the backend.
* This ID token will be added in the HTTP "authorization" header, and sent
* to the backend.
* </pre>
*
* <code>string jwt_audience = 7;</code>
*
* @return Whether the jwtAudience field is set.
*/
public boolean hasJwtAudience() {
return authenticationCase_ == 7;
}
/**
*
*
Expand Down Expand Up @@ -681,6 +697,24 @@ public com.google.protobuf.ByteString getJwtAudienceBytes() {
}

public static final int DISABLE_AUTH_FIELD_NUMBER = 8;
/**
*
*
* <pre>
* When disable_auth is true, a JWT ID token won't be generated and the
* original "Authorization" HTTP header will be preserved. If the header is
* used to carry the original token and is expected by the backend, this
* field must be set to true to preserve the header.
* </pre>
*
* <code>bool disable_auth = 8;</code>
*
* @return Whether the disableAuth field is set.
*/
@java.lang.Override
public boolean hasDisableAuth() {
return authenticationCase_ == 8;
}
/**
*
*
Expand Down Expand Up @@ -1788,6 +1822,23 @@ public Builder clearPathTranslation() {
return this;
}

/**
*
*
* <pre>
* The JWT audience is used when generating a JWT ID token for the backend.
* This ID token will be added in the HTTP "authorization" header, and sent
* to the backend.
* </pre>
*
* <code>string jwt_audience = 7;</code>
*
* @return Whether the jwtAudience field is set.
*/
@java.lang.Override
public boolean hasJwtAudience() {
return authenticationCase_ == 7;
}
/**
*
*
Expand Down Expand Up @@ -1917,6 +1968,23 @@ public Builder setJwtAudienceBytes(com.google.protobuf.ByteString value) {
return this;
}

/**
*
*
* <pre>
* When disable_auth is true, a JWT ID token won't be generated and the
* original "Authorization" HTTP header will be preserved. If the header is
* used to carry the original token and is expected by the backend, this
* field must be set to true to preserve the header.
* </pre>
*
* <code>bool disable_auth = 8;</code>
*
* @return Whether the disableAuth field is set.
*/
public boolean hasDisableAuth() {
return authenticationCase_ == 8;
}
/**
*
*
Expand Down
Expand Up @@ -158,6 +158,20 @@ public interface BackendRuleOrBuilder
*/
com.google.api.BackendRule.PathTranslation getPathTranslation();

/**
*
*
* <pre>
* The JWT audience is used when generating a JWT ID token for the backend.
* This ID token will be added in the HTTP "authorization" header, and sent
* to the backend.
* </pre>
*
* <code>string jwt_audience = 7;</code>
*
* @return Whether the jwtAudience field is set.
*/
boolean hasJwtAudience();
/**
*
*
Expand Down Expand Up @@ -187,6 +201,21 @@ public interface BackendRuleOrBuilder
*/
com.google.protobuf.ByteString getJwtAudienceBytes();

/**
*
*
* <pre>
* When disable_auth is true, a JWT ID token won't be generated and the
* original "Authorization" HTTP header will be preserved. If the header is
* used to carry the original token and is expected by the backend, this
* field must be set to true to preserve the header.
* </pre>
*
* <code>bool disable_auth = 8;</code>
*
* @return Whether the disableAuth field is set.
*/
boolean hasDisableAuth();
/**
*
*
Expand Down
147 changes: 147 additions & 0 deletions proto-google-common-protos/src/main/java/com/google/api/HttpRule.java
Expand Up @@ -521,6 +521,21 @@ public com.google.protobuf.ByteString getSelectorBytes() {
}

public static final int GET_FIELD_NUMBER = 2;
/**
*
*
* <pre>
* Maps to HTTP GET. Used for listing and getting information about
* resources.
* </pre>
*
* <code>string get = 2;</code>
*
* @return Whether the get field is set.
*/
public boolean hasGet() {
return patternCase_ == 2;
}
/**
*
*
Expand Down Expand Up @@ -579,6 +594,20 @@ public com.google.protobuf.ByteString getGetBytes() {
}

public static final int PUT_FIELD_NUMBER = 3;
/**
*
*
* <pre>
* Maps to HTTP PUT. Used for replacing a resource.
* </pre>
*
* <code>string put = 3;</code>
*
* @return Whether the put field is set.
*/
public boolean hasPut() {
return patternCase_ == 3;
}
/**
*
*
Expand Down Expand Up @@ -635,6 +664,20 @@ public com.google.protobuf.ByteString getPutBytes() {
}

public static final int POST_FIELD_NUMBER = 4;
/**
*
*
* <pre>
* Maps to HTTP POST. Used for creating a resource or performing an action.
* </pre>
*
* <code>string post = 4;</code>
*
* @return Whether the post field is set.
*/
public boolean hasPost() {
return patternCase_ == 4;
}
/**
*
*
Expand Down Expand Up @@ -691,6 +734,20 @@ public com.google.protobuf.ByteString getPostBytes() {
}

public static final int DELETE_FIELD_NUMBER = 5;
/**
*
*
* <pre>
* Maps to HTTP DELETE. Used for deleting a resource.
* </pre>
*
* <code>string delete = 5;</code>
*
* @return Whether the delete field is set.
*/
public boolean hasDelete() {
return patternCase_ == 5;
}
/**
*
*
Expand Down Expand Up @@ -747,6 +804,20 @@ public com.google.protobuf.ByteString getDeleteBytes() {
}

public static final int PATCH_FIELD_NUMBER = 6;
/**
*
*
* <pre>
* Maps to HTTP PATCH. Used for updating a resource.
* </pre>
*
* <code>string patch = 6;</code>
*
* @return Whether the patch field is set.
*/
public boolean hasPatch() {
return patternCase_ == 6;
}
/**
*
*
Expand Down Expand Up @@ -1961,6 +2032,22 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) {
return this;
}

/**
*
*
* <pre>
* Maps to HTTP GET. Used for listing and getting information about
* resources.
* </pre>
*
* <code>string get = 2;</code>
*
* @return Whether the get field is set.
*/
@java.lang.Override
public boolean hasGet() {
return patternCase_ == 2;
}
/**
*
*
Expand Down Expand Up @@ -2085,6 +2172,21 @@ public Builder setGetBytes(com.google.protobuf.ByteString value) {
return this;
}

/**
*
*
* <pre>
* Maps to HTTP PUT. Used for replacing a resource.
* </pre>
*
* <code>string put = 3;</code>
*
* @return Whether the put field is set.
*/
@java.lang.Override
public boolean hasPut() {
return patternCase_ == 3;
}
/**
*
*
Expand Down Expand Up @@ -2204,6 +2306,21 @@ public Builder setPutBytes(com.google.protobuf.ByteString value) {
return this;
}

/**
*
*
* <pre>
* Maps to HTTP POST. Used for creating a resource or performing an action.
* </pre>
*
* <code>string post = 4;</code>
*
* @return Whether the post field is set.
*/
@java.lang.Override
public boolean hasPost() {
return patternCase_ == 4;
}
/**
*
*
Expand Down Expand Up @@ -2323,6 +2440,21 @@ public Builder setPostBytes(com.google.protobuf.ByteString value) {
return this;
}

/**
*
*
* <pre>
* Maps to HTTP DELETE. Used for deleting a resource.
* </pre>
*
* <code>string delete = 5;</code>
*
* @return Whether the delete field is set.
*/
@java.lang.Override
public boolean hasDelete() {
return patternCase_ == 5;
}
/**
*
*
Expand Down Expand Up @@ -2442,6 +2574,21 @@ public Builder setDeleteBytes(com.google.protobuf.ByteString value) {
return this;
}

/**
*
*
* <pre>
* Maps to HTTP PATCH. Used for updating a resource.
* </pre>
*
* <code>string patch = 6;</code>
*
* @return Whether the patch field is set.
*/
@java.lang.Override
public boolean hasPatch() {
return patternCase_ == 6;
}
/**
*
*
Expand Down

0 comments on commit 6e4c513

Please sign in to comment.