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

feat(generator): update protoc to v3.15.3 #123

Merged
merged 1 commit into from Mar 1, 2021
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
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