@@ -136,11 +136,9 @@ public final class HttpRouteRule extends com.google.api.client.json.GenericJson
136
136
/**
137
137
* In response to a matching matchRule, the load balancer performs advanced routing actions, such
138
138
* as URL rewrites and header transformations, before forwarding the request to the selected
139
- * backend. If routeAction specifies any weightedBackendServices, service must not be set.
140
- * Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one
141
- * of urlRedirect, service or routeAction.weightedBackendService must be set. URL maps for classic
142
- * Application Load Balancers only support the urlRewrite action within a route rule's
143
- * routeAction.
139
+ * backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL
140
+ * maps for classic Application Load Balancers only support the urlRewrite action within a route
141
+ * rule's routeAction.
144
142
* The value may be {@code null}.
145
143
*/
146
144
@ com .google .api .client .util .Key
@@ -149,19 +147,17 @@ public final class HttpRouteRule extends com.google.api.client.json.GenericJson
149
147
/**
150
148
* The full or partial URL of the backend service resource to which traffic is directed if this
151
149
* rule is matched. If routeAction is also specified, advanced routing actions, such as URL
152
- * rewrites, take effect before sending the request to the backend. However, if service is
153
- * specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction
154
- * specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect,
155
- * service or routeAction.weightedBackendService must be set.
150
+ * rewrites, take effect before sending the request to the backend. Only one of urlRedirect,
151
+ * service or routeAction.weightedBackendService can be set.
156
152
* The value may be {@code null}.
157
153
*/
158
154
@ com .google .api .client .util .Key
159
155
private java .lang .String service ;
160
156
161
157
/**
162
- * When this rule is matched, the request is redirected to a URL specified by urlRedirect. If
163
- * urlRedirect is specified , service or routeAction must not be set. Not supported when the URL
164
- * map is bound to a target gRPC proxy.
158
+ * When this rule is matched, the request is redirected to a URL specified by urlRedirect. Only
159
+ * one of urlRedirect , service or routeAction.weightedBackendService can be set. Not supported
160
+ * when the URL map is bound to a target gRPC proxy.
165
161
* The value may be {@code null}.
166
162
*/
167
163
@ com .google .api .client .util .Key
@@ -373,11 +369,9 @@ public HttpRouteRule setPriority(java.lang.Integer priority) {
373
369
/**
374
370
* In response to a matching matchRule, the load balancer performs advanced routing actions, such
375
371
* as URL rewrites and header transformations, before forwarding the request to the selected
376
- * backend. If routeAction specifies any weightedBackendServices, service must not be set.
377
- * Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one
378
- * of urlRedirect, service or routeAction.weightedBackendService must be set. URL maps for classic
379
- * Application Load Balancers only support the urlRewrite action within a route rule's
380
- * routeAction.
372
+ * backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL
373
+ * maps for classic Application Load Balancers only support the urlRewrite action within a route
374
+ * rule's routeAction.
381
375
* @return value or {@code null} for none
382
376
*/
383
377
public HttpRouteAction getRouteAction () {
@@ -387,11 +381,9 @@ public HttpRouteAction getRouteAction() {
387
381
/**
388
382
* In response to a matching matchRule, the load balancer performs advanced routing actions, such
389
383
* as URL rewrites and header transformations, before forwarding the request to the selected
390
- * backend. If routeAction specifies any weightedBackendServices, service must not be set.
391
- * Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one
392
- * of urlRedirect, service or routeAction.weightedBackendService must be set. URL maps for classic
393
- * Application Load Balancers only support the urlRewrite action within a route rule's
394
- * routeAction.
384
+ * backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL
385
+ * maps for classic Application Load Balancers only support the urlRewrite action within a route
386
+ * rule's routeAction.
395
387
* @param routeAction routeAction or {@code null} for none
396
388
*/
397
389
public HttpRouteRule setRouteAction (HttpRouteAction routeAction ) {
@@ -402,10 +394,8 @@ public HttpRouteRule setRouteAction(HttpRouteAction routeAction) {
402
394
/**
403
395
* The full or partial URL of the backend service resource to which traffic is directed if this
404
396
* rule is matched. If routeAction is also specified, advanced routing actions, such as URL
405
- * rewrites, take effect before sending the request to the backend. However, if service is
406
- * specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction
407
- * specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect,
408
- * service or routeAction.weightedBackendService must be set.
397
+ * rewrites, take effect before sending the request to the backend. Only one of urlRedirect,
398
+ * service or routeAction.weightedBackendService can be set.
409
399
* @return value or {@code null} for none
410
400
*/
411
401
public java .lang .String getService () {
@@ -415,10 +405,8 @@ public java.lang.String getService() {
415
405
/**
416
406
* The full or partial URL of the backend service resource to which traffic is directed if this
417
407
* rule is matched. If routeAction is also specified, advanced routing actions, such as URL
418
- * rewrites, take effect before sending the request to the backend. However, if service is
419
- * specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction
420
- * specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect,
421
- * service or routeAction.weightedBackendService must be set.
408
+ * rewrites, take effect before sending the request to the backend. Only one of urlRedirect,
409
+ * service or routeAction.weightedBackendService can be set.
422
410
* @param service service or {@code null} for none
423
411
*/
424
412
public HttpRouteRule setService (java .lang .String service ) {
@@ -427,19 +415,19 @@ public HttpRouteRule setService(java.lang.String service) {
427
415
}
428
416
429
417
/**
430
- * When this rule is matched, the request is redirected to a URL specified by urlRedirect. If
431
- * urlRedirect is specified , service or routeAction must not be set. Not supported when the URL
432
- * map is bound to a target gRPC proxy.
418
+ * When this rule is matched, the request is redirected to a URL specified by urlRedirect. Only
419
+ * one of urlRedirect , service or routeAction.weightedBackendService can be set. Not supported
420
+ * when the URL map is bound to a target gRPC proxy.
433
421
* @return value or {@code null} for none
434
422
*/
435
423
public HttpRedirectAction getUrlRedirect () {
436
424
return urlRedirect ;
437
425
}
438
426
439
427
/**
440
- * When this rule is matched, the request is redirected to a URL specified by urlRedirect. If
441
- * urlRedirect is specified , service or routeAction must not be set. Not supported when the URL
442
- * map is bound to a target gRPC proxy.
428
+ * When this rule is matched, the request is redirected to a URL specified by urlRedirect. Only
429
+ * one of urlRedirect , service or routeAction.weightedBackendService can be set. Not supported
430
+ * when the URL map is bound to a target gRPC proxy.
443
431
* @param urlRedirect urlRedirect or {@code null} for none
444
432
*/
445
433
public HttpRouteRule setUrlRedirect (HttpRedirectAction urlRedirect ) {
0 commit comments