接口 VirtualServiceOuterClass.HTTPRouteOrBuilder
-
- 所有超级接口:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
public static interface VirtualServiceOuterClass.HTTPRouteOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
方法概要
所有方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 VirtualServiceOuterClass.CorsPolicygetCorsPolicy()Cross-Origin Resource Sharing policy (CORS).VirtualServiceOuterClass.CorsPolicyOrBuildergetCorsPolicyOrBuilder()Cross-Origin Resource Sharing policy (CORS).VirtualServiceOuterClass.DelegategetDelegate()Delegate is used to specify the particular VirtualService which can be used to define delegate HTTPRoute.VirtualServiceOuterClass.DelegateOrBuildergetDelegateOrBuilder()Delegate is used to specify the particular VirtualService which can be used to define delegate HTTPRoute.VirtualServiceOuterClass.HTTPFaultInjectiongetFault()Fault injection policy to apply on HTTP traffic at the client side.VirtualServiceOuterClass.HTTPFaultInjectionOrBuildergetFaultOrBuilder()Fault injection policy to apply on HTTP traffic at the client side.VirtualServiceOuterClass.HeadersgetHeaders()Header manipulation rulesVirtualServiceOuterClass.HeadersOrBuildergetHeadersOrBuilder()Header manipulation rulesVirtualServiceOuterClass.HTTPMatchRequestgetMatch(int index)Match conditions to be satisfied for the rule to be activated.intgetMatchCount()Match conditions to be satisfied for the rule to be activated.java.util.List<VirtualServiceOuterClass.HTTPMatchRequest>getMatchList()Match conditions to be satisfied for the rule to be activated.VirtualServiceOuterClass.HTTPMatchRequestOrBuildergetMatchOrBuilder(int index)Match conditions to be satisfied for the rule to be activated.java.util.List<? extends VirtualServiceOuterClass.HTTPMatchRequestOrBuilder>getMatchOrBuilderList()Match conditions to be satisfied for the rule to be activated.VirtualServiceOuterClass.DestinationgetMirror()Mirror HTTP traffic to a another destination in addition to forwarding the requests to the intended destination.VirtualServiceOuterClass.DestinationOrBuildergetMirrorOrBuilder()Mirror HTTP traffic to a another destination in addition to forwarding the requests to the intended destination.com.google.protobuf.UInt32ValuegetMirrorPercent()已过时。VirtualServiceOuterClass.PercentgetMirrorPercentage()Percentage of the traffic to be mirrored by the `mirror` field.VirtualServiceOuterClass.PercentOrBuildergetMirrorPercentageOrBuilder()Percentage of the traffic to be mirrored by the `mirror` field.com.google.protobuf.UInt32ValueOrBuildergetMirrorPercentOrBuilder()已过时。java.lang.StringgetName()The name assigned to the route for debugging purposes.com.google.protobuf.ByteStringgetNameBytes()The name assigned to the route for debugging purposes.VirtualServiceOuterClass.HTTPRedirectgetRedirect()A HTTP rule can either redirect or forward (default) traffic.VirtualServiceOuterClass.HTTPRedirectOrBuildergetRedirectOrBuilder()A HTTP rule can either redirect or forward (default) traffic.VirtualServiceOuterClass.HTTPRetrygetRetries()Retry policy for HTTP requests.VirtualServiceOuterClass.HTTPRetryOrBuildergetRetriesOrBuilder()Retry policy for HTTP requests.VirtualServiceOuterClass.HTTPRewritegetRewrite()Rewrite HTTP URIs and Authority headers.VirtualServiceOuterClass.HTTPRewriteOrBuildergetRewriteOrBuilder()Rewrite HTTP URIs and Authority headers.VirtualServiceOuterClass.HTTPRouteDestinationgetRoute(int index)A HTTP rule can either redirect or forward (default) traffic.intgetRouteCount()A HTTP rule can either redirect or forward (default) traffic.java.util.List<VirtualServiceOuterClass.HTTPRouteDestination>getRouteList()A HTTP rule can either redirect or forward (default) traffic.VirtualServiceOuterClass.HTTPRouteDestinationOrBuildergetRouteOrBuilder(int index)A HTTP rule can either redirect or forward (default) traffic.java.util.List<? extends VirtualServiceOuterClass.HTTPRouteDestinationOrBuilder>getRouteOrBuilderList()A HTTP rule can either redirect or forward (default) traffic.com.google.protobuf.DurationgetTimeout()Timeout for HTTP requests, default is disabled.com.google.protobuf.DurationOrBuildergetTimeoutOrBuilder()Timeout for HTTP requests, default is disabled.booleanhasCorsPolicy()Cross-Origin Resource Sharing policy (CORS).booleanhasDelegate()Delegate is used to specify the particular VirtualService which can be used to define delegate HTTPRoute.booleanhasFault()Fault injection policy to apply on HTTP traffic at the client side.booleanhasHeaders()Header manipulation rulesbooleanhasMirror()Mirror HTTP traffic to a another destination in addition to forwarding the requests to the intended destination.booleanhasMirrorPercent()已过时。booleanhasMirrorPercentage()Percentage of the traffic to be mirrored by the `mirror` field.booleanhasRedirect()A HTTP rule can either redirect or forward (default) traffic.booleanhasRetries()Retry policy for HTTP requests.booleanhasRewrite()Rewrite HTTP URIs and Authority headers.booleanhasTimeout()Timeout for HTTP requests, default is disabled.
-
-
-
方法详细资料
-
getName
java.lang.String getName()
The name assigned to the route for debugging purposes. The route's name will be concatenated with the match's name and will be logged in the access logs for requests matching this route/match.
string name = 17;- 返回:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
The name assigned to the route for debugging purposes. The route's name will be concatenated with the match's name and will be logged in the access logs for requests matching this route/match.
string name = 17;- 返回:
- The bytes for name.
-
getMatchList
java.util.List<VirtualServiceOuterClass.HTTPMatchRequest> getMatchList()
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.HTTPMatchRequest match = 1;
-
getMatch
VirtualServiceOuterClass.HTTPMatchRequest getMatch(int index)
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.HTTPMatchRequest match = 1;
-
getMatchCount
int getMatchCount()
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.HTTPMatchRequest match = 1;
-
getMatchOrBuilderList
java.util.List<? extends VirtualServiceOuterClass.HTTPMatchRequestOrBuilder> getMatchOrBuilderList()
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.HTTPMatchRequest match = 1;
-
getMatchOrBuilder
VirtualServiceOuterClass.HTTPMatchRequestOrBuilder getMatchOrBuilder(int index)
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.HTTPMatchRequest match = 1;
-
getRouteList
java.util.List<VirtualServiceOuterClass.HTTPRouteDestination> getRouteList()
A HTTP rule can either redirect or forward (default) traffic. The forwarding target can be one of several versions of a service (see glossary in beginning of document). Weights associated with the service version determine the proportion of traffic it receives.
repeated .istio.networking.v1alpha3.HTTPRouteDestination route = 2;
-
getRoute
VirtualServiceOuterClass.HTTPRouteDestination getRoute(int index)
A HTTP rule can either redirect or forward (default) traffic. The forwarding target can be one of several versions of a service (see glossary in beginning of document). Weights associated with the service version determine the proportion of traffic it receives.
repeated .istio.networking.v1alpha3.HTTPRouteDestination route = 2;
-
getRouteCount
int getRouteCount()
A HTTP rule can either redirect or forward (default) traffic. The forwarding target can be one of several versions of a service (see glossary in beginning of document). Weights associated with the service version determine the proportion of traffic it receives.
repeated .istio.networking.v1alpha3.HTTPRouteDestination route = 2;
-
getRouteOrBuilderList
java.util.List<? extends VirtualServiceOuterClass.HTTPRouteDestinationOrBuilder> getRouteOrBuilderList()
A HTTP rule can either redirect or forward (default) traffic. The forwarding target can be one of several versions of a service (see glossary in beginning of document). Weights associated with the service version determine the proportion of traffic it receives.
repeated .istio.networking.v1alpha3.HTTPRouteDestination route = 2;
-
getRouteOrBuilder
VirtualServiceOuterClass.HTTPRouteDestinationOrBuilder getRouteOrBuilder(int index)
A HTTP rule can either redirect or forward (default) traffic. The forwarding target can be one of several versions of a service (see glossary in beginning of document). Weights associated with the service version determine the proportion of traffic it receives.
repeated .istio.networking.v1alpha3.HTTPRouteDestination route = 2;
-
hasRedirect
boolean hasRedirect()
A HTTP rule can either redirect or forward (default) traffic. If traffic passthrough option is specified in the rule, route/redirect will be ignored. The redirect primitive can be used to send a HTTP 301 redirect to a different URI or Authority.
.istio.networking.v1alpha3.HTTPRedirect redirect = 3;- 返回:
- Whether the redirect field is set.
-
getRedirect
VirtualServiceOuterClass.HTTPRedirect getRedirect()
A HTTP rule can either redirect or forward (default) traffic. If traffic passthrough option is specified in the rule, route/redirect will be ignored. The redirect primitive can be used to send a HTTP 301 redirect to a different URI or Authority.
.istio.networking.v1alpha3.HTTPRedirect redirect = 3;- 返回:
- The redirect.
-
getRedirectOrBuilder
VirtualServiceOuterClass.HTTPRedirectOrBuilder getRedirectOrBuilder()
A HTTP rule can either redirect or forward (default) traffic. If traffic passthrough option is specified in the rule, route/redirect will be ignored. The redirect primitive can be used to send a HTTP 301 redirect to a different URI or Authority.
.istio.networking.v1alpha3.HTTPRedirect redirect = 3;
-
hasDelegate
boolean hasDelegate()
Delegate is used to specify the particular VirtualService which can be used to define delegate HTTPRoute. It can be set only when `Route` and `Redirect` are empty, and the route rules of the delegate VirtualService will be merged with that in the current one. **NOTE**: 1. Only one level delegation is supported. 2. The delegate's HTTPMatchRequest must be a strict subset of the root's, otherwise there is a conflict and the HTTPRoute will not take effect..istio.networking.v1alpha3.Delegate delegate = 20;- 返回:
- Whether the delegate field is set.
-
getDelegate
VirtualServiceOuterClass.Delegate getDelegate()
Delegate is used to specify the particular VirtualService which can be used to define delegate HTTPRoute. It can be set only when `Route` and `Redirect` are empty, and the route rules of the delegate VirtualService will be merged with that in the current one. **NOTE**: 1. Only one level delegation is supported. 2. The delegate's HTTPMatchRequest must be a strict subset of the root's, otherwise there is a conflict and the HTTPRoute will not take effect..istio.networking.v1alpha3.Delegate delegate = 20;- 返回:
- The delegate.
-
getDelegateOrBuilder
VirtualServiceOuterClass.DelegateOrBuilder getDelegateOrBuilder()
Delegate is used to specify the particular VirtualService which can be used to define delegate HTTPRoute. It can be set only when `Route` and `Redirect` are empty, and the route rules of the delegate VirtualService will be merged with that in the current one. **NOTE**: 1. Only one level delegation is supported. 2. The delegate's HTTPMatchRequest must be a strict subset of the root's, otherwise there is a conflict and the HTTPRoute will not take effect..istio.networking.v1alpha3.Delegate delegate = 20;
-
hasRewrite
boolean hasRewrite()
Rewrite HTTP URIs and Authority headers. Rewrite cannot be used with Redirect primitive. Rewrite will be performed before forwarding.
.istio.networking.v1alpha3.HTTPRewrite rewrite = 4;- 返回:
- Whether the rewrite field is set.
-
getRewrite
VirtualServiceOuterClass.HTTPRewrite getRewrite()
Rewrite HTTP URIs and Authority headers. Rewrite cannot be used with Redirect primitive. Rewrite will be performed before forwarding.
.istio.networking.v1alpha3.HTTPRewrite rewrite = 4;- 返回:
- The rewrite.
-
getRewriteOrBuilder
VirtualServiceOuterClass.HTTPRewriteOrBuilder getRewriteOrBuilder()
Rewrite HTTP URIs and Authority headers. Rewrite cannot be used with Redirect primitive. Rewrite will be performed before forwarding.
.istio.networking.v1alpha3.HTTPRewrite rewrite = 4;
-
hasTimeout
boolean hasTimeout()
Timeout for HTTP requests, default is disabled.
.google.protobuf.Duration timeout = 6;- 返回:
- Whether the timeout field is set.
-
getTimeout
com.google.protobuf.Duration getTimeout()
Timeout for HTTP requests, default is disabled.
.google.protobuf.Duration timeout = 6;- 返回:
- The timeout.
-
getTimeoutOrBuilder
com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
Timeout for HTTP requests, default is disabled.
.google.protobuf.Duration timeout = 6;
-
hasRetries
boolean hasRetries()
Retry policy for HTTP requests.
.istio.networking.v1alpha3.HTTPRetry retries = 7;- 返回:
- Whether the retries field is set.
-
getRetries
VirtualServiceOuterClass.HTTPRetry getRetries()
Retry policy for HTTP requests.
.istio.networking.v1alpha3.HTTPRetry retries = 7;- 返回:
- The retries.
-
getRetriesOrBuilder
VirtualServiceOuterClass.HTTPRetryOrBuilder getRetriesOrBuilder()
Retry policy for HTTP requests.
.istio.networking.v1alpha3.HTTPRetry retries = 7;
-
hasFault
boolean hasFault()
Fault injection policy to apply on HTTP traffic at the client side. Note that timeouts or retries will not be enabled when faults are enabled on the client side.
.istio.networking.v1alpha3.HTTPFaultInjection fault = 8;- 返回:
- Whether the fault field is set.
-
getFault
VirtualServiceOuterClass.HTTPFaultInjection getFault()
Fault injection policy to apply on HTTP traffic at the client side. Note that timeouts or retries will not be enabled when faults are enabled on the client side.
.istio.networking.v1alpha3.HTTPFaultInjection fault = 8;- 返回:
- The fault.
-
getFaultOrBuilder
VirtualServiceOuterClass.HTTPFaultInjectionOrBuilder getFaultOrBuilder()
Fault injection policy to apply on HTTP traffic at the client side. Note that timeouts or retries will not be enabled when faults are enabled on the client side.
.istio.networking.v1alpha3.HTTPFaultInjection fault = 8;
-
hasMirror
boolean hasMirror()
Mirror HTTP traffic to a another destination in addition to forwarding the requests to the intended destination. Mirrored traffic is on a best effort basis where the sidecar/gateway will not wait for the mirrored cluster to respond before returning the response from the original destination. Statistics will be generated for the mirrored destination.
.istio.networking.v1alpha3.Destination mirror = 9;- 返回:
- Whether the mirror field is set.
-
getMirror
VirtualServiceOuterClass.Destination getMirror()
Mirror HTTP traffic to a another destination in addition to forwarding the requests to the intended destination. Mirrored traffic is on a best effort basis where the sidecar/gateway will not wait for the mirrored cluster to respond before returning the response from the original destination. Statistics will be generated for the mirrored destination.
.istio.networking.v1alpha3.Destination mirror = 9;- 返回:
- The mirror.
-
getMirrorOrBuilder
VirtualServiceOuterClass.DestinationOrBuilder getMirrorOrBuilder()
Mirror HTTP traffic to a another destination in addition to forwarding the requests to the intended destination. Mirrored traffic is on a best effort basis where the sidecar/gateway will not wait for the mirrored cluster to respond before returning the response from the original destination. Statistics will be generated for the mirrored destination.
.istio.networking.v1alpha3.Destination mirror = 9;
-
hasMirrorPercent
@Deprecated boolean hasMirrorPercent()
已过时。Percentage of the traffic to be mirrored by the `mirror` field. Use of integer `mirror_percent` value is deprecated. Use the double `mirror_percentage` field instead
.google.protobuf.UInt32Value mirror_percent = 18 [deprecated = true];- 返回:
- Whether the mirrorPercent field is set.
-
getMirrorPercent
@Deprecated com.google.protobuf.UInt32Value getMirrorPercent()
已过时。Percentage of the traffic to be mirrored by the `mirror` field. Use of integer `mirror_percent` value is deprecated. Use the double `mirror_percentage` field instead
.google.protobuf.UInt32Value mirror_percent = 18 [deprecated = true];- 返回:
- The mirrorPercent.
-
getMirrorPercentOrBuilder
@Deprecated com.google.protobuf.UInt32ValueOrBuilder getMirrorPercentOrBuilder()
已过时。Percentage of the traffic to be mirrored by the `mirror` field. Use of integer `mirror_percent` value is deprecated. Use the double `mirror_percentage` field instead
.google.protobuf.UInt32Value mirror_percent = 18 [deprecated = true];
-
hasMirrorPercentage
boolean hasMirrorPercentage()
Percentage of the traffic to be mirrored by the `mirror` field. If this field is absent, all the traffic (100%) will be mirrored. Max value is 100.
.istio.networking.v1alpha3.Percent mirror_percentage = 19;- 返回:
- Whether the mirrorPercentage field is set.
-
getMirrorPercentage
VirtualServiceOuterClass.Percent getMirrorPercentage()
Percentage of the traffic to be mirrored by the `mirror` field. If this field is absent, all the traffic (100%) will be mirrored. Max value is 100.
.istio.networking.v1alpha3.Percent mirror_percentage = 19;- 返回:
- The mirrorPercentage.
-
getMirrorPercentageOrBuilder
VirtualServiceOuterClass.PercentOrBuilder getMirrorPercentageOrBuilder()
Percentage of the traffic to be mirrored by the `mirror` field. If this field is absent, all the traffic (100%) will be mirrored. Max value is 100.
.istio.networking.v1alpha3.Percent mirror_percentage = 19;
-
hasCorsPolicy
boolean hasCorsPolicy()
Cross-Origin Resource Sharing policy (CORS). Refer to [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) for further details about cross origin resource sharing.
.istio.networking.v1alpha3.CorsPolicy cors_policy = 10;- 返回:
- Whether the corsPolicy field is set.
-
getCorsPolicy
VirtualServiceOuterClass.CorsPolicy getCorsPolicy()
Cross-Origin Resource Sharing policy (CORS). Refer to [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) for further details about cross origin resource sharing.
.istio.networking.v1alpha3.CorsPolicy cors_policy = 10;- 返回:
- The corsPolicy.
-
getCorsPolicyOrBuilder
VirtualServiceOuterClass.CorsPolicyOrBuilder getCorsPolicyOrBuilder()
Cross-Origin Resource Sharing policy (CORS). Refer to [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) for further details about cross origin resource sharing.
.istio.networking.v1alpha3.CorsPolicy cors_policy = 10;
-
hasHeaders
boolean hasHeaders()
Header manipulation rules
.istio.networking.v1alpha3.Headers headers = 16;- 返回:
- Whether the headers field is set.
-
getHeaders
VirtualServiceOuterClass.Headers getHeaders()
Header manipulation rules
.istio.networking.v1alpha3.Headers headers = 16;- 返回:
- The headers.
-
getHeadersOrBuilder
VirtualServiceOuterClass.HeadersOrBuilder getHeadersOrBuilder()
Header manipulation rules
.istio.networking.v1alpha3.Headers headers = 16;
-
-