Package com.google.cloud.compute.v1
Interface UrlMapTestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
UrlMapTest,UrlMapTest.Builder
@Generated
public interface UrlMapTestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionDescription of this test case.com.google.protobuf.ByteStringDescription of this test case.The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters.com.google.protobuf.ByteStringThe expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters.intFor rules with urlRedirect, the test passes only ifexpectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response.getHeaders(int index) HTTP headers for this request.intHTTP headers for this request.HTTP headers for this request.getHeadersOrBuilder(int index) HTTP headers for this request.List<? extends UrlMapTestHeaderOrBuilder>HTTP headers for this request.getHost()Host portion of the URL.com.google.protobuf.ByteStringHost portion of the URL.getPath()Path portion of the URL.com.google.protobuf.ByteStringPath portion of the URL.Expected BackendService or BackendBucket resource the given URL should be mapped to.com.google.protobuf.ByteStringExpected BackendService or BackendBucket resource the given URL should be mapped to.booleanDescription of this test case.booleanThe expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters.booleanFor rules with urlRedirect, the test passes only ifexpectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response.booleanhasHost()Host portion of the URL.booleanhasPath()Path portion of the URL.booleanExpected BackendService or BackendBucket resource the given URL should be mapped to.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
-
hasDescription
boolean hasDescription()Description of this test case.
optional string description = 422937596;- Returns:
- Whether the description field is set.
-
getDescription
String getDescription()Description of this test case.
optional string description = 422937596;- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()Description of this test case.
optional string description = 422937596;- Returns:
- The bytes for description.
-
hasExpectedOutputUrl
boolean hasExpectedOutputUrl()The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters. For rules that forward requests to backends, the test passes only whenexpectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matcheshostRewrite and pathPrefixRewrite in theurlRewrite action. When service is specified,expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only ifexpectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifieshttps_redirect, the test passes only if the scheme inexpectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any query parameters. expectedOutputUrl is optional whenservice is specified.
optional string expected_output_url = 433967384;- Returns:
- Whether the expectedOutputUrl field is set.
-
getExpectedOutputUrl
String getExpectedOutputUrl()The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters. For rules that forward requests to backends, the test passes only whenexpectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matcheshostRewrite and pathPrefixRewrite in theurlRewrite action. When service is specified,expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only ifexpectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifieshttps_redirect, the test passes only if the scheme inexpectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any query parameters. expectedOutputUrl is optional whenservice is specified.
optional string expected_output_url = 433967384;- Returns:
- The expectedOutputUrl.
-
getExpectedOutputUrlBytes
com.google.protobuf.ByteString getExpectedOutputUrlBytes()The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters. For rules that forward requests to backends, the test passes only whenexpectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matcheshostRewrite and pathPrefixRewrite in theurlRewrite action. When service is specified,expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only ifexpectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifieshttps_redirect, the test passes only if the scheme inexpectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any query parameters. expectedOutputUrl is optional whenservice is specified.
optional string expected_output_url = 433967384;- Returns:
- The bytes for expectedOutputUrl.
-
hasExpectedRedirectResponseCode
boolean hasExpectedRedirectResponseCode()For rules with urlRedirect, the test passes only ifexpectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response. expectedRedirectResponseCode cannot be set whenservice is set.
optional int32 expected_redirect_response_code = 18888047;- Returns:
- Whether the expectedRedirectResponseCode field is set.
-
getExpectedRedirectResponseCode
int getExpectedRedirectResponseCode()For rules with urlRedirect, the test passes only ifexpectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response. expectedRedirectResponseCode cannot be set whenservice is set.
optional int32 expected_redirect_response_code = 18888047;- Returns:
- The expectedRedirectResponseCode.
-
getHeadersList
List<UrlMapTestHeader> getHeadersList()HTTP headers for this request. If headers contains a host header, then host must also match the header value.
repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998; -
getHeaders
HTTP headers for this request. If headers contains a host header, then host must also match the header value.
repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998; -
getHeadersCount
int getHeadersCount()HTTP headers for this request. If headers contains a host header, then host must also match the header value.
repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998; -
getHeadersOrBuilderList
List<? extends UrlMapTestHeaderOrBuilder> getHeadersOrBuilderList()HTTP headers for this request. If headers contains a host header, then host must also match the header value.
repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998; -
getHeadersOrBuilder
HTTP headers for this request. If headers contains a host header, then host must also match the header value.
repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998; -
hasHost
boolean hasHost()Host portion of the URL. If headers contains a host header, then host must also match the header value.
optional string host = 3208616;- Returns:
- Whether the host field is set.
-
getHost
String getHost()Host portion of the URL. If headers contains a host header, then host must also match the header value.
optional string host = 3208616;- Returns:
- The host.
-
getHostBytes
com.google.protobuf.ByteString getHostBytes()Host portion of the URL. If headers contains a host header, then host must also match the header value.
optional string host = 3208616;- Returns:
- The bytes for host.
-
hasPath
boolean hasPath()Path portion of the URL.
optional string path = 3433509;- Returns:
- Whether the path field is set.
-
getPath
String getPath()Path portion of the URL.
optional string path = 3433509;- Returns:
- The path.
-
getPathBytes
com.google.protobuf.ByteString getPathBytes()Path portion of the URL.
optional string path = 3433509;- Returns:
- The bytes for path.
-
hasService
boolean hasService()Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.
optional string service = 373540533;- Returns:
- Whether the service field is set.
-
getService
String getService()Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.
optional string service = 373540533;- Returns:
- The service.
-
getServiceBytes
com.google.protobuf.ByteString getServiceBytes()Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.
optional string service = 373540533;- Returns:
- The bytes for service.
-