public static interface HttpRoute.DestinationOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getRequestHeaderModifier()
public abstract HttpRoute.HeaderModifier getRequestHeaderModifier()
Optional. The specification for modifying the headers of a matching request prior to delivery of the request to the destination. If HeaderModifiers are set on both the Destination and the RouteAction, they will be merged. Conflicts between the two will not be resolved on the configuration.
.google.cloud.networkservices.v1.HttpRoute.HeaderModifier request_header_modifier = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
HttpRoute.HeaderModifier |
The requestHeaderModifier. |
getRequestHeaderModifierOrBuilder()
public abstract HttpRoute.HeaderModifierOrBuilder getRequestHeaderModifierOrBuilder()
Optional. The specification for modifying the headers of a matching request prior to delivery of the request to the destination. If HeaderModifiers are set on both the Destination and the RouteAction, they will be merged. Conflicts between the two will not be resolved on the configuration.
.google.cloud.networkservices.v1.HttpRoute.HeaderModifier request_header_modifier = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
HttpRoute.HeaderModifierOrBuilder |
getResponseHeaderModifier()
public abstract HttpRoute.HeaderModifier getResponseHeaderModifier()
Optional. The specification for modifying the headers of a response prior to sending the response back to the client. If HeaderModifiers are set on both the Destination and the RouteAction, they will be merged. Conflicts between the two will not be resolved on the configuration.
.google.cloud.networkservices.v1.HttpRoute.HeaderModifier response_header_modifier = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
HttpRoute.HeaderModifier |
The responseHeaderModifier. |
getResponseHeaderModifierOrBuilder()
public abstract HttpRoute.HeaderModifierOrBuilder getResponseHeaderModifierOrBuilder()
Optional. The specification for modifying the headers of a response prior to sending the response back to the client. If HeaderModifiers are set on both the Destination and the RouteAction, they will be merged. Conflicts between the two will not be resolved on the configuration.
.google.cloud.networkservices.v1.HttpRoute.HeaderModifier response_header_modifier = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
HttpRoute.HeaderModifierOrBuilder |
getServiceName()
public abstract String getServiceName()
The URL of a BackendService to route traffic to.
string service_name = 1 [(.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String |
The serviceName. |
getServiceNameBytes()
public abstract ByteString getServiceNameBytes()
The URL of a BackendService to route traffic to.
string service_name = 1 [(.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for serviceName. |
getWeight()
public abstract int getWeight()
Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as:
weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports.
If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend.
If weights are specified for any one service name, they need to be specified for all of them.
If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them.
int32 weight = 2;
Returns | |
---|---|
Type | Description |
int |
The weight. |
hasRequestHeaderModifier()
public abstract boolean hasRequestHeaderModifier()
Optional. The specification for modifying the headers of a matching request prior to delivery of the request to the destination. If HeaderModifiers are set on both the Destination and the RouteAction, they will be merged. Conflicts between the two will not be resolved on the configuration.
.google.cloud.networkservices.v1.HttpRoute.HeaderModifier request_header_modifier = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the requestHeaderModifier field is set. |
hasResponseHeaderModifier()
public abstract boolean hasResponseHeaderModifier()
Optional. The specification for modifying the headers of a response prior to sending the response back to the client. If HeaderModifiers are set on both the Destination and the RouteAction, they will be merged. Conflicts between the two will not be resolved on the configuration.
.google.cloud.networkservices.v1.HttpRoute.HeaderModifier response_header_modifier = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the responseHeaderModifier field is set. |