@@ -61,8 +61,10 @@ public final class ExtensionChainExtension extends com.google.api.client.json.Ge
6161
6262 /**
6363 * Optional. The metadata provided here is included as part of the `metadata_context` (of type
64- * `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The
65- * metadata is available under the namespace `com.google....`. For example:
64+ * `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. For
65+ * `AuthzExtension` resources, the metadata is available under the namespace
66+ * `com.google.authz_extension.`. For other types of extensions, the metadata is available under
67+ * the namespace `com.google....`. For example:
6668 * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. The following variables are
6769 * supported in the metadata: `{forwarding_rule_id}` - substituted with the forwarding rule's
6870 * fully qualified resource name. This field must not be set for plugin extensions. Setting it
@@ -79,15 +81,41 @@ public final class ExtensionChainExtension extends com.google.api.client.json.Ge
7981 private java .util .Map <String , java .lang .Object > metadata ;
8082
8183 /**
82- * Required . The name for this extension. The name is logged as part of the HTTP request logs. The
84+ * Optional . The name for this extension. The name is logged as part of the HTTP request logs. The
8385 * name must conform with RFC-1034, is restricted to lower-cased letters, numbers and hyphens, and
8486 * can have a maximum length of 63 characters. Additionally, the first character must be a letter
85- * and the last a letter or a number.
87+ * and the last a letter or a number. This field is required except for AuthzExtension.
8688 * The value may be {@code null}.
8789 */
8890 @ com .google .api .client .util .Key
8991 private java .lang .String name ;
9092
93+ /**
94+ * Optional. Configures the send mode for request body processing. The field can only be set if
95+ * `supported_events` includes `REQUEST_BODY`. If `supported_events` includes `REQUEST_BODY`, but
96+ * `request_body_send_mode` is unset, the default value `STREAMED` is used. When this field is set
97+ * to `FULL_DUPLEX_STREAMED`, `supported_events` must include both `REQUEST_BODY` and
98+ * `REQUEST_TRAILERS`. This field can be set only for `LbTrafficExtension` and `LbRouteExtension`
99+ * resources, and only when the `service` field of the extension points to a `BackendService`.
100+ * Only `FULL_DUPLEX_STREAMED` mode is supported for `LbRouteExtension` resources.
101+ * The value may be {@code null}.
102+ */
103+ @ com .google .api .client .util .Key
104+ private java .lang .String requestBodySendMode ;
105+
106+ /**
107+ * Optional. Configures the send mode for response processing. If unspecified, the default value
108+ * `STREAMED` is used. The field can only be set if `supported_events` includes `RESPONSE_BODY`.
109+ * If `supported_events` includes `RESPONSE_BODY`, but `response_body_send_mode` is unset, the
110+ * default value `STREAMED` is used. When this field is set to `FULL_DUPLEX_STREAMED`,
111+ * `supported_events` must include both `RESPONSE_BODY` and `RESPONSE_TRAILERS`. This field can be
112+ * set only for `LbTrafficExtension` resources, and only when the `service` field of the extension
113+ * points to a `BackendService`.
114+ * The value may be {@code null}.
115+ */
116+ @ com .google .api .client .util .Key
117+ private java .lang .String responseBodySendMode ;
118+
91119 /**
92120 * Required. The reference to the service that runs the extension. To configure a callout
93121 * extension, `service` must be a fully-qualified reference to a [backend
@@ -111,7 +139,9 @@ public final class ExtensionChainExtension extends com.google.api.client.json.Ge
111139 * called. For the `LbTrafficExtension` resource, this field is required. For the
112140 * `LbRouteExtension` resource, this field is optional. If unspecified, `REQUEST_HEADERS` event is
113141 * assumed as supported. For the `LbEdgeExtension` resource, this field is required and must only
114- * contain `REQUEST_HEADERS` event.
142+ * contain `REQUEST_HEADERS` event. For the `AuthzExtension` resource, this field is optional.
143+ * `REQUEST_HEADERS` is the only supported event. If unspecified, `REQUEST_HEADERS` event is
144+ * assumed as supported.
115145 * The value may be {@code null}.
116146 */
117147 @ com .google .api .client .util .Key
@@ -197,8 +227,10 @@ public ExtensionChainExtension setForwardHeaders(java.util.List<java.lang.String
197227
198228 /**
199229 * Optional. The metadata provided here is included as part of the `metadata_context` (of type
200- * `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The
201- * metadata is available under the namespace `com.google....`. For example:
230+ * `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. For
231+ * `AuthzExtension` resources, the metadata is available under the namespace
232+ * `com.google.authz_extension.`. For other types of extensions, the metadata is available under
233+ * the namespace `com.google....`. For example:
202234 * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. The following variables are
203235 * supported in the metadata: `{forwarding_rule_id}` - substituted with the forwarding rule's
204236 * fully qualified resource name. This field must not be set for plugin extensions. Setting it
@@ -217,8 +249,10 @@ public java.util.Map<String, java.lang.Object> getMetadata() {
217249
218250 /**
219251 * Optional. The metadata provided here is included as part of the `metadata_context` (of type
220- * `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The
221- * metadata is available under the namespace `com.google....`. For example:
252+ * `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. For
253+ * `AuthzExtension` resources, the metadata is available under the namespace
254+ * `com.google.authz_extension.`. For other types of extensions, the metadata is available under
255+ * the namespace `com.google....`. For example:
222256 * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. The following variables are
223257 * supported in the metadata: `{forwarding_rule_id}` - substituted with the forwarding rule's
224258 * fully qualified resource name. This field must not be set for plugin extensions. Setting it
@@ -237,28 +271,86 @@ public ExtensionChainExtension setMetadata(java.util.Map<String, java.lang.Objec
237271 }
238272
239273 /**
240- * Required . The name for this extension. The name is logged as part of the HTTP request logs. The
274+ * Optional . The name for this extension. The name is logged as part of the HTTP request logs. The
241275 * name must conform with RFC-1034, is restricted to lower-cased letters, numbers and hyphens, and
242276 * can have a maximum length of 63 characters. Additionally, the first character must be a letter
243- * and the last a letter or a number.
277+ * and the last a letter or a number. This field is required except for AuthzExtension.
244278 * @return value or {@code null} for none
245279 */
246280 public java .lang .String getName () {
247281 return name ;
248282 }
249283
250284 /**
251- * Required . The name for this extension. The name is logged as part of the HTTP request logs. The
285+ * Optional . The name for this extension. The name is logged as part of the HTTP request logs. The
252286 * name must conform with RFC-1034, is restricted to lower-cased letters, numbers and hyphens, and
253287 * can have a maximum length of 63 characters. Additionally, the first character must be a letter
254- * and the last a letter or a number.
288+ * and the last a letter or a number. This field is required except for AuthzExtension.
255289 * @param name name or {@code null} for none
256290 */
257291 public ExtensionChainExtension setName (java .lang .String name ) {
258292 this .name = name ;
259293 return this ;
260294 }
261295
296+ /**
297+ * Optional. Configures the send mode for request body processing. The field can only be set if
298+ * `supported_events` includes `REQUEST_BODY`. If `supported_events` includes `REQUEST_BODY`, but
299+ * `request_body_send_mode` is unset, the default value `STREAMED` is used. When this field is set
300+ * to `FULL_DUPLEX_STREAMED`, `supported_events` must include both `REQUEST_BODY` and
301+ * `REQUEST_TRAILERS`. This field can be set only for `LbTrafficExtension` and `LbRouteExtension`
302+ * resources, and only when the `service` field of the extension points to a `BackendService`.
303+ * Only `FULL_DUPLEX_STREAMED` mode is supported for `LbRouteExtension` resources.
304+ * @return value or {@code null} for none
305+ */
306+ public java .lang .String getRequestBodySendMode () {
307+ return requestBodySendMode ;
308+ }
309+
310+ /**
311+ * Optional. Configures the send mode for request body processing. The field can only be set if
312+ * `supported_events` includes `REQUEST_BODY`. If `supported_events` includes `REQUEST_BODY`, but
313+ * `request_body_send_mode` is unset, the default value `STREAMED` is used. When this field is set
314+ * to `FULL_DUPLEX_STREAMED`, `supported_events` must include both `REQUEST_BODY` and
315+ * `REQUEST_TRAILERS`. This field can be set only for `LbTrafficExtension` and `LbRouteExtension`
316+ * resources, and only when the `service` field of the extension points to a `BackendService`.
317+ * Only `FULL_DUPLEX_STREAMED` mode is supported for `LbRouteExtension` resources.
318+ * @param requestBodySendMode requestBodySendMode or {@code null} for none
319+ */
320+ public ExtensionChainExtension setRequestBodySendMode (java .lang .String requestBodySendMode ) {
321+ this .requestBodySendMode = requestBodySendMode ;
322+ return this ;
323+ }
324+
325+ /**
326+ * Optional. Configures the send mode for response processing. If unspecified, the default value
327+ * `STREAMED` is used. The field can only be set if `supported_events` includes `RESPONSE_BODY`.
328+ * If `supported_events` includes `RESPONSE_BODY`, but `response_body_send_mode` is unset, the
329+ * default value `STREAMED` is used. When this field is set to `FULL_DUPLEX_STREAMED`,
330+ * `supported_events` must include both `RESPONSE_BODY` and `RESPONSE_TRAILERS`. This field can be
331+ * set only for `LbTrafficExtension` resources, and only when the `service` field of the extension
332+ * points to a `BackendService`.
333+ * @return value or {@code null} for none
334+ */
335+ public java .lang .String getResponseBodySendMode () {
336+ return responseBodySendMode ;
337+ }
338+
339+ /**
340+ * Optional. Configures the send mode for response processing. If unspecified, the default value
341+ * `STREAMED` is used. The field can only be set if `supported_events` includes `RESPONSE_BODY`.
342+ * If `supported_events` includes `RESPONSE_BODY`, but `response_body_send_mode` is unset, the
343+ * default value `STREAMED` is used. When this field is set to `FULL_DUPLEX_STREAMED`,
344+ * `supported_events` must include both `RESPONSE_BODY` and `RESPONSE_TRAILERS`. This field can be
345+ * set only for `LbTrafficExtension` resources, and only when the `service` field of the extension
346+ * points to a `BackendService`.
347+ * @param responseBodySendMode responseBodySendMode or {@code null} for none
348+ */
349+ public ExtensionChainExtension setResponseBodySendMode (java .lang .String responseBodySendMode ) {
350+ this .responseBodySendMode = responseBodySendMode ;
351+ return this ;
352+ }
353+
262354 /**
263355 * Required. The reference to the service that runs the extension. To configure a callout
264356 * extension, `service` must be a fully-qualified reference to a [backend
@@ -303,7 +395,9 @@ public ExtensionChainExtension setService(java.lang.String service) {
303395 * called. For the `LbTrafficExtension` resource, this field is required. For the
304396 * `LbRouteExtension` resource, this field is optional. If unspecified, `REQUEST_HEADERS` event is
305397 * assumed as supported. For the `LbEdgeExtension` resource, this field is required and must only
306- * contain `REQUEST_HEADERS` event.
398+ * contain `REQUEST_HEADERS` event. For the `AuthzExtension` resource, this field is optional.
399+ * `REQUEST_HEADERS` is the only supported event. If unspecified, `REQUEST_HEADERS` event is
400+ * assumed as supported.
307401 * @return value or {@code null} for none
308402 */
309403 public java .util .List <java .lang .String > getSupportedEvents () {
@@ -315,7 +409,9 @@ public java.util.List<java.lang.String> getSupportedEvents() {
315409 * called. For the `LbTrafficExtension` resource, this field is required. For the
316410 * `LbRouteExtension` resource, this field is optional. If unspecified, `REQUEST_HEADERS` event is
317411 * assumed as supported. For the `LbEdgeExtension` resource, this field is required and must only
318- * contain `REQUEST_HEADERS` event.
412+ * contain `REQUEST_HEADERS` event. For the `AuthzExtension` resource, this field is optional.
413+ * `REQUEST_HEADERS` is the only supported event. If unspecified, `REQUEST_HEADERS` event is
414+ * assumed as supported.
319415 * @param supportedEvents supportedEvents or {@code null} for none
320416 */
321417 public ExtensionChainExtension setSupportedEvents (java .util .List <java .lang .String > supportedEvents ) {
0 commit comments