Interface HttpRoute.DestinationOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
HttpRoute.Destination,HttpRoute.Destination.Builder
- Enclosing class:
- HttpRoute
public static interface HttpRoute.DestinationOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionOptional.Optional.Optional.Optional.The URL of a BackendService to route traffic to.com.google.protobuf.ByteStringThe URL of a BackendService to route traffic to.intSpecifies the proportion of requests forwarded to the backend referenced by the serviceName field.booleanOptional.booleanOptional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getServiceName
String getServiceName()The URL of a BackendService to route traffic to.
string service_name = 1 [(.google.api.resource_reference) = { ... }- Returns:
- The serviceName.
-
getServiceNameBytes
com.google.protobuf.ByteString getServiceNameBytes()The URL of a BackendService to route traffic to.
string service_name = 1 [(.google.api.resource_reference) = { ... }- Returns:
- The bytes for serviceName.
-
getWeight
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:
- The weight.
-
hasRequestHeaderModifier
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:
- Whether the requestHeaderModifier field is set.
-
getRequestHeaderModifier
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:
- The requestHeaderModifier.
-
getRequestHeaderModifierOrBuilder
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]; -
hasResponseHeaderModifier
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:
- Whether the responseHeaderModifier field is set.
-
getResponseHeaderModifier
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:
- The responseHeaderModifier.
-
getResponseHeaderModifierOrBuilder
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];
-